/* Progress Bar */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px auto 40px;
    max-width: 700px;
    padding: 0 10px;
}
.wizard-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.wizard-progress .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background-color 0.3s ease;
}
.wizard-progress .step.completed:not(:last-child)::after {
    background: var(--teal);
}
.wizard-progress .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}
.wizard-progress .step.active .step-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}
.wizard-progress .step.completed .step-circle {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}
.wizard-progress .step-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}
.wizard-progress .step.active .step-label {
    color: var(--primary);
    font-weight: 500;
}
.wizard-progress .step.completed .step-label {
    color: var(--teal);
    font-weight: 500;
}

/* Wizard Container */
.wizard-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}
.wizard-step.active {
    display: block;
}
.wizard-step h2 {
    margin-bottom: 8px;
}
.wizard-step .step-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 28px;
}
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}
.wizard-actions .btn {
    min-width: 120px;
}

/* Segmented Toggle (SSN / EIN) */
.toggle-group {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 6px;
}
.toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.toggle-option:last-child {
    border-right: none;
}
.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.toggle-option:hover {
    background: var(--primary-light);
}
.toggle-option.selected {
    background: var(--primary);
    color: white;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-card);
}
.radio-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.radio-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--primary);
}
.radio-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.radio-option .radio-label {
    font-weight: 500;
    color: var(--text-primary);
}
.radio-option .radio-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Entity Type Toggle */
.entity-type-more {
    margin-top: 10px;
}
.entity-type-toggle {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--teal);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.entity-type-toggle:hover {
    border-color: var(--teal);
    background: var(--teal-light);
}

/* Search results */
.search-results {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-card);
}
.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: default;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item .name { font-weight: 500; color: var(--text-primary); }
.search-result-item .detail { font-size: 0.8125rem; color: var(--text-muted); }

/* File Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-card);
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--teal);
    background: var(--teal-light);
}
.upload-zone .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.upload-zone .upload-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
.upload-zone .upload-hint {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 4px;
}
.upload-progress {
    margin-top: 16px;
}
.upload-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}
.upload-progress .progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 3px;
    transition: width 0.3s;
}
.uploaded-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--success-light);
    border-radius: var(--radius);
    margin-top: 16px;
}
.uploaded-file .file-name {
    font-weight: 500;
    flex: 1;
    color: var(--teal);
}
.uploaded-file .file-size {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Review section */
.review-section {
    margin-bottom: 24px;
}
.review-section h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.review-section .review-value {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.review-section .edit-link {
    font-size: 0.8125rem;
    color: var(--teal);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

/* ---- Shared Disclosure Box (used by NDA + 1099 consent) ---- */
.disclosure-box {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--bg-elevated);
    scroll-behavior: smooth;
}
.disclosure-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.disclosure-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.disclosure-box p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.disclosure-box p:last-child {
    margin-bottom: 0;
}
.disclosure-box .disclosure-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 16px;
}
.disclosure-box .nda-section {
    margin-bottom: 16px;
}
.disclosure-box .nda-section:last-child {
    margin-bottom: 0;
}
/* Legacy class aliases so old markup still works */
.consent-disclosure { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg-elevated); }
.consent-disclosure h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.consent-disclosure p { font-size: 0.875rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 10px; }
.consent-disclosure p:last-child { margin-bottom: 0; }
.nda-disclosure { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg-elevated); }

/* ---- Consent Checkbox Row ---- */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, background 0.15s;
}
.consent-check:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.consent-check.checked {
    border-color: var(--teal);
    background: var(--success-light);
}
.consent-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--teal);
    cursor: pointer;
}
.consent-check span {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-primary);
}
.consent-check-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 30px;
}

/* Consent checkbox group spacing */
.consent-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ---- NDA Signature Field ---- */
.nda-signature-section {
    margin-top: 24px;
}
.nda-signature-field {
    margin-top: 20px;
}
.nda-signature-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.nda-signature-input {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--text-primary);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
    width: 100%;
    color: var(--text-primary);
}
.nda-signature-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
    box-shadow: none;
}
.nda-signature-input::placeholder {
    font-style: normal;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-muted);
    letter-spacing: 0;
}

/* ---- E-Sign Legal Notice ---- */
.esign-notice {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}
.esign-notice p {
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* Resend link button */
.btn-link {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.btn-link:hover {
    color: var(--teal-hover);
}
.btn-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

/* Success page */
.success-container {
    text-align: center;
    padding: 60px 20px;
}
.success-container .checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--teal);
}

/* Responsive for wizard */
@media (max-width: 600px) {
    .wizard-progress .step-label { display: none; }
    .wizard-progress .step-circle { width: 28px; height: 28px; font-size: 0.75rem; }
    .wizard-container { padding: 0 16px 40px; }
    .wizard-actions { flex-direction: column-reverse; }
    .wizard-actions .btn { min-width: auto; }
}
