/* ============================================
   SCPI Souscription — Design System
   Palette: Beige / Teal / Dark
   Fonts: Zodiak (display) + Satoshi (body)
   ============================================ */

:root {
    /* Colors — Light mode */
    --bg-primary: #FAF7F2;
    --bg-secondary: #F2EDE5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FDFCFA;
    --text-primary: #1A1A1A;
    --text-secondary: #5C5A56;
    --text-muted: #9A9690;
    --teal: #1A7A6D;
    --teal-dark: #135E54;
    --teal-light: #E6F5F2;
    --teal-glow: rgba(26, 122, 109, 0.25);
    --accent: #D4A853;
    --accent-light: #FFF8E7;
    --border: #E5E0D8;
    --border-focus: #1A7A6D;
    --error: #D94F4F;
    --error-bg: #FEF2F2;
    --success: #2E8B57;
    --success-bg: #F0FFF4;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
    --font-display: 'Zodiak', Georgia, 'Times New Roman', serif;
    --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #111110;
        --bg-secondary: #1A1918;
        --bg-card: #222120;
        --bg-card-hover: #2A2928;
        --text-primary: #F5F0E8;
        --text-secondary: #B5B0A8;
        --text-muted: #7A756D;
        --teal: #3ECFB8;
        --teal-dark: #2DB8A2;
        --teal-light: rgba(62, 207, 184, 0.1);
        --teal-glow: rgba(62, 207, 184, 0.2);
        --accent: #E4B863;
        --accent-light: rgba(228, 184, 99, 0.1);
        --border: #333230;
        --border-focus: #3ECFB8;
        --error: #F87171;
        --error-bg: rgba(248, 113, 113, 0.08);
        --success: #4ADE80;
        --success-bg: rgba(74, 222, 128, 0.08);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
        --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
    }
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--teal-dark);
}

fieldset {
    border: none;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-alfa {
    color: var(--teal);
    font-weight: 900;
    font-family: var(--font-display);
}

.logo-assurance {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-light);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.top-bar-phone:hover {
    background: var(--teal-glow);
    transform: translateY(-1px);
}

/* ============================================
   Stepper / Progress
   ============================================ */
.progress-wrapper {
    background: var(--bg-secondary);
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition-spring);
    position: relative;
    z-index: 2;
}

.step.active .step-circle {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
    box-shadow: 0 0 0 6px var(--teal-glow);
    transform: scale(1.1);
}

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

.step.completed .step-circle::after {
    content: '✓';
    font-size: 1rem;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.step.active .step-label {
    color: var(--teal);
}

.step.completed .step-label {
    color: var(--teal);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 50px;
    margin: 0 12px;
    margin-bottom: 26px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--teal);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-line.filled .step-line-fill {
    width: 100%;
}

/* ============================================
   Form Main
   ============================================ */
.form-main {
    flex: 1;
    padding: 40px 0 60px;
}

.form-step {
    display: none;
    animation: stepFadeIn 0.5s ease forwards;
}

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

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Step title */
.step-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.2;
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-light);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-left: 50px;
}

/* ============================================
   Field Styles
   ============================================ */
.field-group {
    margin-bottom: 22px;
}

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field-label.required::after {
    content: ' *';
    color: var(--error);
}

.field-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.field-input:hover {
    border-color: var(--text-muted);
}

.field-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--teal-glow);
}

.field-input::placeholder {
    color: var(--text-muted);
}

.field-input[readonly] {
    background: var(--bg-secondary);
    cursor: default;
    color: var(--text-secondary);
}

.field-input-highlight {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--teal) !important;
}

.field-input-mono {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 5px;
    min-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
}

.field-error.visible {
    opacity: 1;
    transform: translateY(0);
    min-height: 18px;
}

.field-input.invalid {
    border-color: var(--error);
    background: var(--error-bg);
}

.field-input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(217, 79, 79, 0.15);
}

/* Select arrow */
select.field-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9690' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Field rows */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ============================================
   Radio Pills
   ============================================ */
.radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    cursor: pointer;
    position: relative;
}

.pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-text {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    user-select: none;
}

.pill:hover .pill-text {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

.pill input:checked+.pill-text {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
    box-shadow: 0 4px 12px var(--teal-glow);
    transform: scale(1.02);
}

/* ============================================
   Checkbox Cards
   ============================================ */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-card {
    cursor: pointer;
    position: relative;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    user-select: none;
}

.checkbox-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

.checkbox-card:hover .checkbox-card-inner {
    border-color: var(--teal);
    background: var(--teal-light);
}

.checkbox-card input:checked+.checkbox-card-inner {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 0 0 1px var(--teal);
}

.checkbox-card input:checked+.checkbox-card-inner .checkbox-text {
    color: var(--teal);
    font-weight: 600;
}

/* ============================================
   Calculation Summary
   ============================================ */
.calc-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
    animation: stepFadeIn 0.3s ease forwards;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.calc-row+.calc-row {
    border-top: 1px dashed var(--border);
}

.calc-row-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--teal);
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--teal) !important;
}

/* ============================================
   Consent Section
   ============================================ */
.consent-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.consent-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    padding: 10px 0;
}

.consent-row+.consent-row {
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.consent-row input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--teal);
    cursor: pointer;
}

.consent-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consent-text a {
    text-decoration: underline;
}

.required-star {
    color: var(--error);
}

/* ============================================
   AMF Disclaimer
   ============================================ */
.amf-disclaimer {
    display: flex;
    gap: 14px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 28px;
}

.amf-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.amf-content strong {
    font-size: 0.88rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.amf-content p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Form Navigation Buttons
   ============================================ */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: var(--teal);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px var(--teal-glow);
    position: relative;
    overflow: hidden;
}

.btn-next::before,
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--teal-glow);
}

.btn-next:hover::before,
.btn-submit:hover::before {
    left: 100%;
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-prev:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Submit button loading state */
.btn-submit-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-submit.loading .btn-submit-text {
    display: none;
}

.btn-submit.loading .btn-submit-loader {
    display: inline-flex;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Success Screen
   ============================================ */
.success-screen {
    display: none;
    flex: 1;
    padding: 80px 0;
    text-align: center;
}

.success-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    max-width: 600px;
    margin: 0 auto;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }

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

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.success-circle {
    stroke: var(--teal);
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: drawCircle 0.8s ease forwards 0.2s;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.success-check {
    stroke: var(--teal);
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.5s ease forwards 0.8s;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Référence + Montant côte à côte */
.success-meta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.success-ref {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 28px;
    min-width: 160px;
    text-align: left;
}

.success-ref-amount {
    background: var(--teal-light);
    border-color: var(--teal);
}

.success-ref-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
}

.success-ref-value {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.04em;
}

.success-ref-value-amount {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0;
}

/* Récapitulatif des conditions choisies */
.success-recap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 22px;
    text-align: left;
}

.success-recap-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.success-recap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.recap-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recap-item-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.recap-item-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recap-item-value.highlight {
    color: var(--teal);
    font-size: 1rem;
}

.success-next {
    background: var(--teal-light);
    border: 1px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: left;
}

.success-next strong {
    color: var(--teal);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--teal);
    border: 1.5px solid var(--teal);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.btn-back-home:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--teal-glow);
}


/* ============================================
   Footer
   ============================================ */
.form-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-footer a {
    font-weight: 600;
}

/* ============================================
   Responsive — Mobile-first breakpoints
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .top-bar-phone span {
        display: none;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .step-line {
        min-width: 30px;
        margin: 0 6px;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .step-desc {
        padding-left: 0;
        font-size: 0.88rem;
    }

    .field-row,
    .field-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .radio-pills {
        gap: 8px;
    }

    .pill-text {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .form-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-next,
    .btn-submit,
    .btn-prev {
        width: 100%;
        justify-content: center;
    }

    .calc-summary {
        padding: 16px 18px;
    }

    .amf-disclaimer {
        flex-direction: column;
        gap: 10px;
    }

    .success-recap-grid {
        grid-template-columns: 1fr;
    }

    .success-meta-row {
        gap: 10px;
    }

    .success-ref {
        min-width: 0;
        width: 100%;
    }

    .consent-section {
        padding: 18px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .field-row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Micro-animations & polish
   ============================================ */
.field-input,
.pill-text,
.checkbox-card-inner {
    will-change: border-color, box-shadow;
}

/* Subtle shimmer on focused card */
.checkbox-card input:focus-visible+.checkbox-card-inner,
.pill input:focus-visible+.pill-text {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Input group animation on step appear */
.form-step.active .field-group {
    animation: fieldSlideIn 0.4s ease forwards;
    opacity: 0;
}

.form-step.active .field-group:nth-child(1) {
    animation-delay: 0.05s;
}

.form-step.active .field-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-step.active .field-group:nth-child(3) {
    animation-delay: 0.15s;
}

.form-step.active .field-group:nth-child(4) {
    animation-delay: 0.2s;
}

.form-step.active .field-group:nth-child(5) {
    animation-delay: 0.25s;
}

.form-step.active .field-group:nth-child(6) {
    animation-delay: 0.3s;
}

.form-step.active .field-group:nth-child(7) {
    animation-delay: 0.35s;
}

.form-step.active .field-group:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes fieldSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Pulse animation on step circle */
.step.active .step-circle {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 6px var(--teal-glow);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(26, 122, 109, 0.1);
    }
}

/* Consent animation */
.consent-section {
    animation: fieldSlideIn 0.4s ease forwards;
    animation-delay: 0.35s;
    opacity: 0;
}

.amf-disclaimer {
    animation: fieldSlideIn 0.4s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}