/* Onboarding Specific Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Step Indicators */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-line);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--text-primary);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--text-primary);
    opacity: 0.4;
}

/* Headers */
.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.1;
}

.step-subtitle {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 16px;
}

/* Success CTA Layout */
.success-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.success-cta-stack .btn {
    width: 100%;
}

.success-dashboard-btn {
    margin-top: 0;
}

/* Test Call Section */
.test-call-section {
    text-align: center;
    padding: 24px;
    background: #FAFAFA;
    border-radius: 16px;
    margin-top: 0;
}

.save-number-section {
    text-align: center;
    padding: 24px;
    background: #FAFAFA;
    border-radius: 16px;
    margin-top: 24px;
}

.phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 16px;
}

/* Steps Logic */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Icon */
.success-icon-large {
    width: 80px;
    height: 80px;
    background: #F0FDF4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: #166534;
}

.success-icon-large svg {
    width: 40px;
    height: 40px;
}

button {
    width: 100%;
}

.confirm-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    cursor: pointer;
}

.skip-link {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
}

/* Verification Code Input */
.verification-input-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.verification-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--accent-line);
    border-radius: 12px;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.verification-digit:focus {
    border-color: var(--text-primary);
    outline: none;
}

.verification-digit.filled {
    border-color: var(--text-primary);
}

.resend-section {
    text-align: center;
    margin-top: 24px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.resend-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.resend-timer {
    font-size: 14px;
    color: var(--text-secondary);
}

.existing-account-modal-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.existing-account-modal-body p {
    margin: 0;
}

/* Override the page-level full-width button rule for the shared modal header. */
#existing-account-modal .modal-title {
    flex: 1;
    padding-right: 12px;
}

#existing-account-modal .modal-close {
    width: auto;
    flex: 0 0 auto;
}
