/* 
 * Notary Multi-Step Form Styles - Final Design
 * File: assets/css/form-styles.css
 */

:root {
    --msf-primary-color: #2d4a6e;
    --msf-primary-hover: #1e3454;
    --msf-secondary-color: #6c757d;
    --msf-success-color: #22c55e;
    --msf-teal-color: #09a2b9;
    --msf-border-color: #e2e8f0;
    --msf-bg-light: #f8fafc;
    --msf-bg-lighter: #f1f5f9;
    --msf-text-dark: #1e293b;
    --msf-text-muted: #64748b;
    --msf-white: #ffffff;
}

* {
    box-sizing: border-box;
}


/**
 * Upload Progress Styles - New Elements Only
 * File: assets/css/upload-progress.css
 * Version: 1.0.0
 * Add this to your existing CSS file
 */

/* ============================================
   Upload Progress Container (NEW)
   ============================================ */
.upload-progress {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none; /* Hidden by default, shown during upload */
}

/* ============================================
   Progress Bar (NEW)
   ============================================ */
.progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Animated stripe effect for progress bar */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

/* Progress percentage text (NEW) */
.progress-text {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* ============================================
   Upload Success State (NEW)
   ============================================ */
.btn-upload.upload-success,
.btn-upload-video.upload-success,
.btn-use-recording.upload-success {
    background-color: #28a745;
    cursor: default;
}

.btn-upload.upload-success:hover,
.btn-upload-video.upload-success:hover,
.btn-use-recording.upload-success:hover {
    background-color: #28a745;
    transform: none;
}

/* ============================================
   Uploaded File Item (NEW)
   ============================================ */
.file-item.uploaded {
    background: #d4edda;
    border-color: #c3e6cb;
}

.file-item.uploaded .file-name {
    color: #155724;
    font-weight: 500;
}

/* ============================================
   Hidden Input for Uploaded File ID (NEW)
   ============================================ */
.uploaded-file-id {
    display: none;
}

.info-box.no-upload-required {
    background-color: #fdf6eb;
    border-color: #fadcb4;
}

.info-box.no-upload-required {
    display: flex;
    flex-direction: row;
}

.notary-form-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Progress Bar with connecting lines */
.notary-progress-bar {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 0 40px;
    position: relative;
}

/* Connecting line between steps */
.notary-progress-bar::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--msf-border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.dashboard-header-actions a {
    color: #ffff;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--msf-white);
    border: 2px solid var(--msf-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--msf-text-muted);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

/* Step 7 active — center align the left column */
.form-step.active[data-step="7"] .step-main-content {
  display: flex;                /* switch from grid to flex for centering */
  justify-content: center;      /* horizontal centering */
}

/* Keep the left column fixed width and centered */
.form-step.active[data-step="7"] .step-left {
  width: 900px;                 /* or whatever width you want (e.g., 500–700px) */
  max-width: 100%;
}

/* Hide the right column if it exists */
.form-step.active[data-step="7"] .step-right {
  display: none !important;
}



.progress-step.active .step-circle {
    background: var(--msf-teal-color);
    msf-border-color: var(--msf-teal-color);
    color: var(--msf-white);
}

.progress-step.completed .step-circle {
    background: var(--msf-success-color);
    msf-border-color: var(--msf-success-color);
    color: var(--msf-white);
}

.step-check {
    display: none;
}

.progress-step.completed .step-check {
    display: block;
}

.progress-step.completed .step-number {
    display: none;
}

.step-label {
    font-size: 13px;
    color: var(--msf-text-muted);
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--msf-text-dark);
    font-weight: 600;
}

/* Form Layout - Title outside boxes */
.notary-form {
    background: transparent;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step title and subtitle - CENTERED and OUTSIDE the box */
.step-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--msf-text-dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-align: center;
}

.step-subtitle {
    font-size: 15px;
    color: var(--msf-text-muted);
    margin: 0 0 40px 0;
    text-align: center;
}

.step-main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Main content box - with border */
.step-left {
    background: var(--msf-white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--msf-border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.step-right {
    position: sticky;
    top: 20px;
}

/* Form Fields */
.step-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--msf-text-muted);
    margin: 0;
}

.field-label {
    font-weight: 600;
    color: var(--msf-text-dark);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-description {
    font-size: 13px;
    color: var(--msf-text-muted);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--msf-border-color);
    color: var(--msf-text-muted);
    font-size: 12px;
    cursor: help;
}

/* Info Box - with border */
.info-box {
    background: #f6f6f7;
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-icon-bullet {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content strong {
    display: block;
    font-size: 14px;
    color: var(--msf-text-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.info-content p {
    font-size: 13px;
    color: var(--msf-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Radio Groups */
.notary-radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notary-radio-option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--msf-white);
    position: relative;
}

.notary-radio-option:hover {
    msf-border-color: var(--msf-teal-color);
}

.notary-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom radio button */
.notary-radio-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--msf-border-color);
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--msf-white);
    transition: all 0.2s ease;
}

.notary-radio-option input[type="radio"]:checked ~ .radio-content {
    /* Trigger update when checked */
}

.notary-radio-option:has(input[type="radio"]:checked) {
    msf-border-color: var(--msf-primary-color);
    background: #f0f9ff;
}

.notary-radio-option:has(input[type="radio"]:checked)::before {
    msf-border-color: var(--msf-primary-color);
    background: var(--msf-primary-color);
    box-shadow: inset 0 0 0 3px msf-white;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--msf-text-dark);
}

.radio-content .description {
    display: block;
    font-size: 14px;
    color: var(--msf-text-muted);
    line-height: 1.5;
}

/* Services Group */
.services-section-wrapper {
    display: none;
}

.services-section-wrapper.visible {
    display: block;
}

.services-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Service Counter */
.notary-service-counter {
    padding: 20px;
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    background: var(--msf-white);
    transition: all 0.2s ease;
}

.notary-service-counter.selected {
    msf-border-color: var(--msf-teal-color);
    background: #f0f9ff;
}

.service-main {
    margin-bottom: 0;
}

.service-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 14px;
}

.service-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--msf-border-color);
    border-radius: 50%;
    background: var(--msf-white);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.service-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--msf-primary-color);
    msf-border-color: var(--msf-primary-color);
}

.service-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--msf-white);
    font-size: 12px;
    font-weight: bold;
}

.service-info {
    flex: 1;
}

.service-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.service-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msf-text-dark);
    flex-shrink: 0;
}

.service-icon svg {
    width: 18px;
    height: 18px;
}

.service-title-row strong {
    font-size: 16px;
    color: var(--msf-text-dark);
}

.service-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--msf-bg-light);
    border-radius: 12px;
    color: var(--msf-text-muted);
    font-weight: 600;
}

.service-description {
    font-size: 14px;
    color: var(--msf-text-muted);
    margin: 0;
    line-height: 1.5;
}

.counter-wrapper {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--msf-border-color);
}

.notary-service-counter.selected .counter-wrapper {
    display: flex;
}

.counter-wrapper label {
    font-size: 14px;
    color: var(--msf-text-dark);
    font-weight: 500;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid var(--msf-border-color) !important;
    background: var(--msf-white) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    color: var(--msf-text-dark) !important;
    font-weight: 400 !important;
}

.counter-btn:hover:not(:disabled) {
    background: var(--msf-bg-light) !important;
    border-color: var(--msf-text-dark) !important;
}

.counter-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.counter-input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    background: transparent;
    pointer-events: none;
}

h1.wp-block-post-title {
    display: none;
}

.counter-input:focus {
    outline: none;
}

/* Document Card - with clear border */
.document-card {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 25px;
}

.document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.document-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--msf-text-dark);
    margin: 0;
}

.document-badge {
    font-size: 12px;
    padding: 6px 12px;
    background: var(--msf-bg-light);
    border: 1px solid var(--msf-border-color);
    border-radius: 20px;
    color: var(--msf-text-muted);
    font-weight: 600;
}

.document-field {
    margin-bottom: 24px;
}

.document-field:last-child {
    margin-bottom: 0;
}

/* Text Inputs */
.notary-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--msf-border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: msf-border-color 0.2s ease;
    font-family: inherit;
    background: var(--msf-white);
}

.notary-text-input:focus {
    outline: none;
    msf-border-color: var(--msf-teal-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.notary-text-input::placeholder {
    color: #94a3b8;
}

/* Video Field */
.notary-video-field {
    width: 100%;
}

.video-method-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.video-method-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--msf-text-dark);
    padding: 10px 16px;
    border: 1px solid var(--msf-border-color);
    border-radius: 8px;
    background: var(--msf-white);
    transition: all 0.2s ease;
    flex: 1;
}

.video-method-option:hover {
    msf-border-color: var(--msf-teal-color);
    background: #f0f9ff;
}

.video-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.video-method-option input[type="radio"]:checked ~ svg,
.video-method-option:has(input[type="radio"]:checked) svg {
    color: var(--msf-teal-color);
}

.video-method-option:has(input[type="radio"]:checked) {
    msf-border-color: var(--msf-teal-color);
    background: #f0f9ff;
}

.video-method-option svg {
    flex-shrink: 0;
    transition: color 0.2s ease;
    color: var(--msf-text-muted);
}

/* Upload Area */
.video-upload-area,
.notary-file-upload {
    position: relative;
    width: 100%;
}

.video-file-input,
.notary-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    border: 2px dashed var(--msf-border-color);
    border-radius: 10px;
    background: var(--msf-bg-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-placeholder:hover {
    msf-border-color: var(--msf-teal-color);
    background: #f0f9ff;
}

.upload-icon {
    margin-bottom: 12px;
    color: var(--msf-teal-color);
}

.upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.upload-text .text {
    font-weight: 600;
    color: var(--msf-text-dark);
    font-size: 15px;
}

.upload-text .subtext {
    font-size: 13px;
    color: var(--msf-text-muted);
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #e0f2fe;
    border: 1px solid var(--msf-teal-color);
    border-radius: 8px;
    margin-top: 12px;
}

.file-preview .file-name {
    font-size: 14px;
    color: var(--msf-text-dark);
    font-weight: 500;
}

.file-preview .remove-file {
    background: transparent;
    border: none;
    color: var(--msf-text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.file-preview .remove-file:hover {
    color: #dc2626;
}

/* Video Recording Area */
.video-record-area {
    width: 100%;
}

.video-preview {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background: #000;
    margin-bottom: 16px;
    object-fit: cover;
}

.video-canvas {
    display: none;
}

.record-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
}

.btn-record,
.btn-stop-record,
.btn-use-recording {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-record {
    background: var(--msf-teal-color);
    color: msf-white;
}

.btn-record:hover {
    background: #0284c7;
}

.btn-record svg {
    width: 18px;
    height: 18px;
}

.btn-stop-record {
    background: #dc2626;
    color: msf-white;
}

.btn-stop-record:hover {
    background: #b91c1c;
}

.btn-use-recording {
    background: var(--msf-success-color);
    color: msf-white;
}

.btn-use-recording:hover {
    background: #16a34a;
}

.btn-use-recording:disabled {
    background: var(--msf-success-color);
    opacity: 0.8;
    cursor: default;
}

/* Camera permission message */
.camera-permission-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--msf-bg-light);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    margin-bottom: 16px;
}

.camera-permission-message svg {
    width: 48px;
    height: 48px;
    color: var(--msf-text-muted);
    margin-bottom: 16px;
}

.camera-permission-message h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin: 0 0 8px 0;
}

.camera-permission-message p {
    font-size: 14px;
    color: var(--msf-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Pricing Summary - with border like other boxes */
.pricing-summary {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pricing-summary h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--msf-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-description {
    font-size: 13px;
    color: var(--msf-text-muted);
    margin: 0 0 24px 0;
}

.pricing-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--msf-border-color);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pricing-row span:first-child {
    color: var(--msf-text-dark);
}

.pricing-row span:last-child {
    font-weight: 600;
    color: var(--msf-text-dark);
}

.additional-docs-row {
    transition: all 0.3s ease;
}

.pricing-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.pricing-total strong:first-child {
    color: var(--msf-text-dark);
}

.total-price {
    color: var(--msf-text-dark);
    font-size: 24px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--msf-border-color);
    gap: 16px;
}

#notary-multi-step-form .btn-primary,
#notary-multi-step-form .btn-secondary {
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    font-family: inherit !important;
}


#notary-multi-step-form .btn-primary {
    background: var(--msf-primary-color) !important;
    color: var(--msf-white) !important;
}

#notary-multi-step-form .btn-primary:hover {
    background: var(--msf-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(45, 74, 110, 0.2) !important;
}

#notary-multi-step-form .btn-secondary {
    background: transparent !important;
    color: var(--msf-text-dark) !important;
    border: 1px solid var(--msf-border-color) !important;
}

#notary-multi-step-form .btn-secondary:hover {
    background: var(--msf-bg-light) !important;
    border-color: var(--msf-text-muted) !important;
}

/* Error States */
.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

.notary-text-input.error {
    border-color: #dc2626;
}

/* Loading State */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Additional Services */
.additional-services-field {
    margin-top: 30px;
}

.additional-service-option {
    padding: 20px;
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    background: var(--msf-white);
    transition: all 0.2s ease;
}

.additional-service-option:has(.additional-service-checkbox:checked) {
    border-color: var(--msf-primary-color);
    background: #f0f9ff;
}

.additional-service-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 14px;
}

.additional-service-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.additional-service-custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--msf-border-color);
    border-radius: 50%;
    background: var(--msf-white);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.additional-service-checkbox:checked ~ .additional-service-custom-radio {
    border-color: var(--msf-primary-color);
    background: var(--msf-primary-color);
    box-shadow: inset 0 0 0 3px msf-white;
}

.additional-service-content {
    flex: 1;
}

.additional-service-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--msf-text-dark);
    font-weight: 600;
}



/* Identity Verification Sections */
.id-upload-section,
.selfie-upload-section {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.upload-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--msf-text-dark);
    margin: 0 0 8px 0;
}

.upload-section-description {
    font-size: 14px;
    color: var(--msf-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.id-upload-field,
.selfie-upload-field {
    margin-top: 16px;
}

.selfie-tips {
    margin-top: 20px;
    padding: 16px;
    background: var(--msf-bg-lighter);
    border-radius: 8px;
    border: 1px solid var(--msf-border-color);
}

.selfie-tips strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin-bottom: 8px;
}

.selfie-tips ul {
    margin: 0;
    padding-left: 20px;
}

.selfie-tips li {
    font-size: 13px;
    color: var(--msf-text-muted);
    line-height: 1.6;
    margin-bottom: 4px;
}

.face-detection-result {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.face-detection-result.success {
    background: #d1fae5;
    color: #065f46;
}

.face-detection-result.error {
    background: #fee2e2;
    color: #991b1b;
}

.selfie-preview-img {
    display: block;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid var(--msf-border-color);
}


/* Personal Information Cards */
.personal-info-card,
.address-info-card {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-subtitle-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin: 0 0 20px 0;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-item {
    display: flex;
    flex-direction: column;
}

.form-grid-item.grid-full {
    grid-column: span 2;
}

.form-grid-item.grid-half {
    grid-column: span 1;
}

.required-mark {
    color: #dc2626;
}

/* Select Input */
.notary-select-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--msf-border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: msf-border-color 0.2s ease;
    font-family: inherit;
    background: var(--msf-white);
    cursor: pointer;
}

.notary-select-input:focus {
    outline: none;
    border-color: var(--msf-teal-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Date Input */
.notary-date-input {
    cursor: pointer;
}

.notary-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    color: var(--msf-text-muted);
}

/* Postage Note */
.postage-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--msf-bg-lighter);
    border-radius: 6px;
    font-size: 14px;
    color: var(--msf-text-dark);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid-item.grid-full,
    .form-grid-item.grid-half {
        grid-column: span 1;
    }
}


/* Terms & Conditions Section */
.terms-section-card {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.terms-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin: 0 0 16px 0;
}

.terms-content-box {
    background: var(--msf-bg-lighter);
    border: 1px solid var(--msf-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.terms-content-box p {
    font-size: 14px;
    color: var(--msf-text-dark);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.terms-content-box p:last-child {
    margin-bottom: 0;
}

/* Terms Checkbox */
.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
    padding: 4px 0;
}

.terms-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.terms-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--msf-border-color);
    border-radius: 4px;
    background: var(--msf-white);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.terms-checkbox-input:checked ~ .terms-checkbox-custom {
    background: var(--msf-primary-color);
    border-color: var(--msf-primary-color);
}

.terms-checkbox-input:checked ~ .terms-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--msf-white);
    font-size: 14px;
    font-weight: bold;
}

.terms-checkbox-text {
    font-size: 14px;
    color: var(--msf-text-dark);
    line-height: 1.5;
    flex: 1;
}

.terms-checkbox-text .required-mark {
    color: #dc2626;
    margin-left: 2px;
}

/* Validation for terms checkboxes */
.terms-checkbox-input.error ~ .terms-checkbox-custom {
    border-color: #dc2626;
}

.terms-checkbox-label.error {
    border: 1px solid #dc2626;
    border-radius: 6px;
    padding: 12px;
    background: #fee2e2;
}

@media (max-width: 768px) {
    .terms-section-card {
        padding: 20px;
    }
    
    .terms-content-box {
        padding: 16px;
    }
}


/* Payment Section */
.payment-section-wrapper {
    width: 100%;
}

.payment-info-card {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 24px;
}

.payment-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin: 0 0 8px 0;
}

.payment-section-description {
    font-size: 14px;
    color: var(--msf-text-muted);
    margin: 0 0 24px 0;
}

/* Stripe Payment Element */
#stripe-payment-element {
    margin-bottom: 20px;
}

.stripe-errors {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px;
    background: #fee2e2;
    border-radius: 6px;
    display: none;
}

.stripe-errors.show {
    display: block;
}

/* Stripe Elements Styling Override */
.StripeElement {
    background: var(--msf-white);
    padding: 12px 16px;
    border: 1px solid var(--msf-border-color);
    border-radius: 8px;
    transition: msf-border-color 0.2s ease;
}

.StripeElement--focus {
    border-color: var(--msf-teal-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.StripeElement--invalid {
    border-color: #dc2626;
}

/* Payment Processing State */
.payment-processing {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .payment-info-card {
        padding: 20px;
    }
}

.additional-service-content p {
    font-size: 14px;
    color: var(--msf-text-muted);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.additional-service-price {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--msf-text-dark);
}

.apostille-service-row {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .step-main-content {
        grid-template-columns: 1fr;
    }
    
    .step-right {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .notary-form-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .step-left {
        padding: 24px;
    }
    
    .document-card {
        padding: 20px;
    }
    
    .notary-progress-bar {
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .notary-progress-bar::before {
        display: none;
    }
    
    .step-title {
        font-size: 24px;
    }
    
    .step-label {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .form-navigation {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 24px;
    }
    
    .pricing-summary {
        padding: 20px;
    }
    
    .counter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .video-method-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .notary-radio-option {
        padding: 14px 16px;
    }
    
    .radio-content strong {
        font-size: 15px;
    }
    
    .service-title-row strong {
        font-size: 15px;
    }
    
    .document-card {
        padding: 16px;
    }
}


/* Review Step Styles */

/* Success Message Box */
.success-message-box {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 12px 0;
}

.success-description {
    font-size: 15px;
    color: #047857;
    margin: 0;
    line-height: 1.6;
}

/* Review Summary Card */
.review-summary-card {
    background: var(--msf-white);
    border: 1px solid var(--msf-border-color);
    border-radius: 10px;
    padding: 28px;
}

.review-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--msf-text-dark);
    margin: 0 0 24px 0;
}

/* Review Row */
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--msf-border-color);
    gap: 20px;
}

.review-row:last-of-type {
    border-bottom: none;
}

.review-label {
    font-size: 14px;
    color: var(--msf-text-dark);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 180px;
}

.review-value {
    font-size: 14px;
    color: var(--msf-text-dark);
    text-align: right;
    flex: 1;
}

/* Review Service & Document Items */
.review-service-item,
.review-document-item {
    margin-bottom: 6px;
    text-align: right;
}

.review-service-item:last-child,
.review-document-item:last-child {
    margin-bottom: 0;
}

/* Review Total Row */
.review-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 16px 0;
    margin-top: 16px;
    border-top: 2px solid var(--msf-border-color);
}

.review-total-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--msf-text-dark);
}

.review-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--msf-text-dark);
}

/* Cost Breakdown */
.review-cost-breakdown {
    font-size: 13px;
    color: var(--msf-text-muted);
    text-align: left;
    padding-top: 8px;
}

/* Review Loading State */
.review-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--msf-text-muted);
}

.review-loading p {
    font-size: 15px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .review-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .review-label {
        min-width: auto;
        font-weight: 600;
    }
    
    .review-value {
        text-align: left;
        padding-left: 0;
    }
    
    .review-service-item,
    .review-document-item {
        text-align: left;
    }
    
    .review-summary-card {
        padding: 20px;
    }
    
    .success-message-box {
        padding: 24px 20px;
    }
    
    .success-title {
        font-size: 20px;
    }
}
