/*
 * APPLY.CSS — Senior Citizens Tax Credit Application Portal
 * Design: "Civic Warmth" — Trustworthy, Accessible, Personal
 *
 * Typography: Libre Baskerville (headings) + Atkinson Hyperlegible (body)
 * Palette:    Deep navy primary (#003C4C), rusty red accents (#BF6359), cream backgrounds
 * Target:     WCAG AA minimum, 18px+ base, 44px+ touch targets
 *
 * Built on top of Bootstrap 5 — uses Bootstrap grid, utilities, and
 * form controls, overriding where needed for the Civic Warmth look.
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* ---- Colors ---- */
    --apply-primary:        #003C4C;
    --apply-primary-hover:  #002d39;
    --apply-primary-light:  #e6edef;
    --apply-primary-faint:  #f2f6f7;

    --apply-accent:         #BF6359;
    --apply-accent-hover:   #a8564d;
    --apply-accent-light:   #faf0ee;

    --apply-success:        #1a7742;
    --apply-success-light:  #e6f5ed;
    --apply-success-dark:   #145e34;

    --apply-error:          #c03524;
    --apply-error-light:    #fde8e5;

    --apply-warning:        #92610e;
    --apply-warning-light:  #fff6e5;

    --apply-bg:             #f8f5f0;
    --apply-surface:        #ffffff;
    --apply-border:         #d5cfc4;
    --apply-border-hover:   #b0a89a;
    --apply-border-focus:   #003C4C;

    --apply-text:           #1a1715;
    --apply-text-secondary: #5c5550;
    --apply-text-muted:     #6e6762;
    --apply-text-inverse:   #ffffff;

    /* ---- Typography ---- */
    --apply-font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --apply-font-body:    'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;

    --apply-text-sm:   1rem;
    --apply-text-base: 1.125rem;   /* 18px */
    --apply-text-lg:   1.25rem;    /* 20px */
    --apply-text-xl:   1.5rem;     /* 24px */
    --apply-text-2xl:  1.875rem;   /* 30px */
    --apply-text-3xl:  2.25rem;    /* 36px */

    /* ---- Spacing ---- */
    --apply-space-xs:  0.25rem;
    --apply-space-sm:  0.5rem;
    --apply-space-md:  1rem;
    --apply-space-lg:  1.5rem;
    --apply-space-xl:  2rem;
    --apply-space-2xl: 3rem;
    --apply-space-3xl: 4rem;

    /* ---- Layout ---- */
    --apply-radius-sm:  0.375rem;
    --apply-radius-md:  0.5rem;
    --apply-radius-lg:  0.75rem;
    --apply-radius-xl:  1rem;

    --apply-shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --apply-shadow-md:  0 2px 8px rgba(0,0,0,0.1);
    --apply-shadow-lg:  0 4px 16px rgba(0,0,0,0.12);

    --apply-container-max: 680px;
}


/* ============================================================
   2. BASE / RESET
   ============================================================ */
.apply-portal {
    font-family: var(--apply-font-body);
    font-size: var(--apply-text-base);
    line-height: 1.6;
    color: var(--apply-text);
    background-color: var(--apply-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.apply-portal *,
.apply-portal *::before,
.apply-portal *::after {
    box-sizing: border-box;
}

.apply-portal h1,
.apply-portal h2,
.apply-portal h3,
.apply-portal h4 {
    font-family: var(--apply-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--apply-text);
    margin-top: 0;
}

.apply-portal h1 { font-size: var(--apply-text-3xl); }
.apply-portal h2 { font-size: var(--apply-text-2xl); }
.apply-portal h3 { font-size: var(--apply-text-xl); }
.apply-portal h4 { font-size: var(--apply-text-lg); }

.apply-portal p {
    margin-top: 0;
    margin-bottom: var(--apply-space-md);
}

.apply-portal a {
    color: var(--apply-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.apply-portal a:hover {
    color: var(--apply-primary-hover);
}


/* ============================================================
   3. HEADER
   ============================================================ */
.apply-header {
    background-color: var(--apply-primary);
    color: var(--apply-text-inverse);
    padding: var(--apply-space-lg) 0;
    border-bottom: 4px solid var(--apply-accent);
}

.apply-header .header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--apply-space-lg);
    display: flex;
    align-items: center;
    gap: var(--apply-space-lg);
}

.apply-header--no-seal .header-inner {
    max-width: var(--apply-container-max);
}

.apply-header .county-seal {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    overflow: hidden;
}

.apply-header .county-seal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Hide alt text rendering while the image is loading. The parent
       .county-seal still has font-size/uppercase from the original text
       fallback, which would otherwise paint the alt text ("RICE COUNTY
       SEAL") for a frame on refresh. The alt remains for screen readers. */
    font-size: 0;
    color: transparent;
}

.apply-header .header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apply-header .county-name {
    font-family: var(--apply-font-heading);
    font-size: var(--apply-text-lg);
    font-weight: 700;
}

.apply-header .portal-name {
    font-size: var(--apply-text-sm);
    opacity: 0.85;
}


/* ============================================================
   4. FOOTER
   ============================================================ */
.apply-footer {
    background-color: var(--apply-text);
    color: rgba(255,255,255,0.75);
    padding: var(--apply-space-xl) 0;
    margin-top: var(--apply-space-3xl);
    font-size: var(--apply-text-sm);
}

.apply-footer .footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--apply-space-lg);
    text-align: center;
}

.apply-footer .footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--apply-space-lg) var(--apply-space-xl);
    margin-bottom: var(--apply-space-md);
}

.apply-footer .footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--apply-space-sm);
}

.apply-footer .footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
}

.apply-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.apply-footer a:hover {
    color: #fff;
}

.apply-footer p {
    margin: 0;
    opacity: 0.65;
}

.apply-footer .footer-legal {
    margin-top: var(--apply-space-md);
    font-size: 0.875rem;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--apply-space-sm);
}

/* Phone-handoff session: trimmed chrome — no header, lighter footer.
   The applicant scanned a QR from their desktop just to upload images, so
   the page should feel like a focused tool rather than a full portal. */
.apply-footer--phone {
    padding: var(--apply-space-md) 0;
    margin-top: var(--apply-space-xl);
}

.apply-footer--phone .footer-phone-tagline {
    margin: 0 0 var(--apply-space-xs);
    opacity: 0.75;
}

.apply-footer--phone .footer-legal {
    margin-top: var(--apply-space-xs);
}

.apply-portal--phone .apply-container {
    padding-top: var(--apply-space-lg);
}


/* ============================================================
   5. MAIN CONTENT AREA
   ============================================================ */
.apply-container {
    max-width: var(--apply-container-max);
    margin: 0 auto;
    padding: var(--apply-space-xl) var(--apply-space-lg) var(--apply-space-lg);
}


/* ============================================================
   6. PROGRESS BAR (Wizard Steps)
   ============================================================ */
.apply-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--apply-space-2xl);
    padding: 0;
    list-style: none;
    counter-reset: step;
    position: relative;
}

/* Connector line */
.apply-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--apply-border);
    z-index: 0;
}

.apply-progress .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--apply-space-xs);
    position: relative;
    z-index: 1;
    flex: 1;
}

.apply-progress .step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--apply-surface);
    border: 2px solid var(--apply-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--apply-text-sm);
    color: var(--apply-text-muted);
    transition: all 0.2s ease;
}

.apply-progress .step-label {
    font-size: 0.8125rem;
    color: var(--apply-text-muted);
    text-align: center;
    white-space: nowrap;
}

.apply-progress .step-check {
    display: none;
    width: 18px;
    height: 18px;
}

/* Active step */
.apply-progress .progress-step.active .step-indicator {
    background: var(--apply-primary);
    border-color: var(--apply-primary);
    color: var(--apply-text-inverse);
}

.apply-progress .progress-step.active .step-label {
    color: var(--apply-primary);
    font-weight: 700;
}

/* Completed step */
.apply-progress .progress-step.completed .step-indicator {
    background: var(--apply-success);
    border-color: var(--apply-success);
    color: var(--apply-text-inverse);
}

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

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

.apply-progress .progress-step.completed .step-label {
    color: var(--apply-success-dark);
}

.apply-progress a.progress-step.completed {
    cursor: pointer;
}
.apply-progress a.progress-step.completed:hover .step-indicator {
    background: var(--apply-success-dark);
    border-color: var(--apply-success-dark);
}
.apply-progress a.progress-step.completed:hover .step-label {
    text-decoration: underline;
}

/* Responsive: hide labels on small screens */
@media (max-width: 480px) {
    .apply-progress .step-label {
        font-size: 0.6875rem;
    }

    .apply-progress .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }

    .apply-progress::before {
        top: 14px;
        left: 20px;
        right: 20px;
    }
}


/* ============================================================
   7. PAGE TITLES
   ============================================================ */
.apply-portal .page-title {
    font-size: var(--apply-text-2xl);
    margin-bottom: var(--apply-space-sm);
}

.apply-portal .page-subtitle {
    color: var(--apply-text-secondary);
    font-size: var(--apply-text-lg);
    margin-bottom: var(--apply-space-xl);
}


/* ============================================================
   8. CARDS
   ============================================================ */
.apply-card {
    background: var(--apply-surface);
    border: 1px solid var(--apply-border);
    border-radius: var(--apply-radius-lg);
    padding: var(--apply-space-xl);
    box-shadow: var(--apply-shadow-sm);
}

.apply-card + .apply-card {
    margin-top: var(--apply-space-lg);
}

.apply-card-header {
    font-family: var(--apply-font-heading);
    font-size: var(--apply-text-lg);
    font-weight: 700;
    margin-bottom: var(--apply-space-lg);
    padding-bottom: var(--apply-space-md);
    border-bottom: 1px solid var(--apply-border);
}


/* ============================================================
   9. FORM STYLES
   ============================================================ */

/* Override Bootstrap form controls in the portal context */
.apply-portal .form-label {
    font-weight: 700;
    font-size: var(--apply-text-sm);
    color: var(--apply-text);
    margin-bottom: var(--apply-space-xs);
}

.apply-portal .form-control,
.apply-portal .form-select {
    font-family: var(--apply-font-body);
    font-size: var(--apply-text-base);
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--apply-border);
    border-radius: var(--apply-radius-md);
    background-color: var(--apply-surface);
    color: var(--apply-text);
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-portal .form-control:focus,
.apply-portal .form-select:focus {
    border-color: var(--apply-border-focus);
    box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.15);
    outline: none;
}

.apply-portal .form-control::placeholder {
    color: var(--apply-text-muted);
    font-style: italic;
}

.apply-portal .form-text {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-secondary);
    margin-top: var(--apply-space-xs);
}

/* Validation states */
.apply-portal .form-control.is-invalid,
.apply-portal .form-select.is-invalid {
    border-color: var(--apply-error);
}

.apply-portal .invalid-feedback {
    color: var(--apply-error);
    font-size: var(--apply-text-sm);
    font-weight: 600;
}

/* Form groups */
.apply-portal .mb-3 {
    margin-bottom: var(--apply-space-lg) !important;
}

/* Read-only fields */
.apply-portal .form-control-plaintext {
    font-family: var(--apply-font-body);
    font-size: var(--apply-text-base);
    color: var(--apply-text);
    padding: 0.625rem 0;
    border-bottom: 1px dashed var(--apply-border);
}

/* Read-only field with unlock button */
.apply-field-locked {
    position: relative;
}

.apply-field-locked .form-control {
    background-color: var(--apply-primary-faint);
    border-style: dashed;
}

.apply-field-locked .form-control:disabled,
.apply-field-locked .form-control[readonly] {
    background-color: var(--apply-primary-faint);
    opacity: 1;
    color: var(--apply-text);
}

.apply-unlock-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--apply-border);
    border-radius: var(--apply-radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--apply-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.apply-unlock-btn:hover {
    background-color: var(--apply-primary-light);
    border-color: var(--apply-primary);
}


/* ============================================================
   10. RADIO & CHECKBOX GROUPS
   ============================================================ */
.apply-portal .form-check {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    margin-bottom: var(--apply-space-sm);
    border: 2px solid var(--apply-border);
    border-radius: var(--apply-radius-md);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.apply-portal .form-check:hover {
    border-color: var(--apply-border-hover);
    background-color: var(--apply-primary-faint);
}

.apply-portal .form-check-input {
    margin-left: -1.5rem;
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
}

.apply-portal .form-check-input:checked {
    background-color: var(--apply-primary);
    border-color: var(--apply-primary);
}

.apply-portal .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.15);
    border-color: var(--apply-primary);
}

.apply-portal .form-check-label {
    font-size: var(--apply-text-base);
    cursor: pointer;
    line-height: 1.4;
}

/* Checked state card highlight */
.apply-portal .form-check:has(.form-check-input:checked) {
    border-color: var(--apply-primary);
    background-color: var(--apply-primary-light);
}


/* ============================================================
   11. BUTTONS
   ============================================================ */
.apply-portal .btn {
    font-family: var(--apply-font-body);
    font-weight: 700;
    font-size: var(--apply-text-base);
    padding: 0.75rem 1.5rem;
    border-radius: var(--apply-radius-md);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--apply-space-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.apply-portal .btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Primary button */
.apply-portal .btn-primary {
    background-color: var(--apply-primary);
    border-color: var(--apply-primary);
    color: var(--apply-text-inverse);
}

.apply-portal .btn-primary:hover,
.apply-portal .btn-primary:focus-visible {
    background-color: var(--apply-primary-hover);
    border-color: var(--apply-primary-hover);
    color: var(--apply-text-inverse);
}

.apply-portal .btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.3);
}

/* Outline / secondary button */
.apply-portal .btn-outline-primary {
    background-color: transparent;
    border-color: var(--apply-primary);
    color: var(--apply-primary);
}

.apply-portal .btn-outline-primary:hover,
.apply-portal .btn-outline-primary:focus-visible {
    background-color: var(--apply-primary-light);
    border-color: var(--apply-primary-hover);
    color: var(--apply-primary-hover);
}

/* Text button (back links) */
.apply-portal .btn-text {
    background: none;
    border: none;
    color: var(--apply-text-secondary);
    padding: 0.75rem 0.5rem;
    text-decoration: none;
}

.apply-portal .btn-text:hover {
    color: var(--apply-primary);
}

/* Large button */
.apply-portal .btn-lg {
    padding: 1rem 2rem;
    font-size: var(--apply-text-lg);
    min-height: 56px;
}

/* Button group (navigation bar at bottom of each step) */
.apply-btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--apply-space-xl);
    margin-top: var(--apply-space-xl);
    border-top: 1px solid var(--apply-border);
    gap: var(--apply-space-md);
}

.apply-btn-group--center {
    justify-content: center;
}


/* ============================================================
   12. LANDING PAGE
   ============================================================ */
.apply-landing-seal {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--apply-space-xl);
    color: var(--apply-primary);
}

.apply-landing-seal svg {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.apply-landing-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.apply-landing-hero {
    text-align: center;
    margin-bottom: var(--apply-space-2xl);
}

.apply-landing-hero h1 {
    color: var(--apply-primary);
    margin-bottom: var(--apply-space-md);
}

.apply-landing-hero p {
    font-size: var(--apply-text-lg);
    color: var(--apply-text-secondary);
    max-width: 540px;
    margin: 0 auto;
}


/* ============================================================
   13. ELIGIBILITY CALLOUT
   ============================================================ */
.apply-eligibility {
    background: var(--apply-accent-light);
    border: 1px solid var(--apply-accent);
    border-left: 4px solid var(--apply-accent);
    border-radius: var(--apply-radius-md);
    padding: var(--apply-space-lg) var(--apply-space-xl);
    margin-bottom: var(--apply-space-2xl);
}

.apply-eligibility h2 {
    font-size: var(--apply-text-lg);
    color: #9c4a43;
    margin-bottom: var(--apply-space-md);
}

.apply-eligibility ul {
    margin: 0;
    padding-left: var(--apply-space-xl);
}

.apply-eligibility li {
    margin-bottom: var(--apply-space-sm);
    line-height: 1.5;
}

.apply-eligibility li:last-child {
    margin-bottom: 0;
}


/* ============================================================
   13b. PROGRAM SELECTION CARDS
   ============================================================ */
.apply-program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--apply-space-lg);
    margin: 0 0 var(--apply-space-xl);
    padding: 0;
    border: 0;
    min-width: 0;
}

@media (max-width: 720px) {
    .apply-program-grid {
        grid-template-columns: 1fr;
    }
}

.apply-program-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--apply-surface);
    border: 2px solid var(--apply-border);
    border-radius: var(--apply-radius-md);
    padding: var(--apply-space-lg) var(--apply-space-xl);
}

/* CTA pinned to the bottom of each card. flex-grow on the body above
   keeps both cards' CTAs vertically aligned even when descriptions differ. */
.apply-program-card-body {
    flex: 1 1 auto;
}

.apply-program-card-cta {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    font: inherit;
    cursor: pointer;

    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: var(--apply-space-xs);
    margin-top: var(--apply-space-lg);
    padding: var(--apply-space-sm) var(--apply-space-lg);
    background: var(--apply-primary);
    color: #fff;
    border-radius: var(--apply-radius-sm, 4px);
    font-weight: 600;
    font-size: var(--apply-text-base);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.apply-program-card-cta:hover {
    background: var(--apply-primary-hover);
    transform: translateX(2px);
}

.apply-program-card-cta:focus-visible {
    outline: 3px solid var(--apply-primary);
    outline-offset: 2px;
}

.apply-program-card-cta:active {
    transform: translateY(1px);
}

.apply-program-card-cta svg {
    width: 18px;
    height: 18px;
}

.apply-program-card-title {
    font-size: var(--apply-text-lg);
    margin: 0 0 var(--apply-space-xs);
    padding-right: var(--apply-space-2xl);
}

.apply-program-card-desc {
    color: var(--apply-text-muted);
    margin: 0 0 var(--apply-space-md);
}

.apply-program-card-criteria-title {
    font-size: var(--apply-text-base);
    margin: 0 0 var(--apply-space-xs);
}

.apply-program-card-criteria {
    margin: 0;
    padding-left: var(--apply-space-xl);
}

.apply-program-card-criteria li {
    margin-bottom: var(--apply-space-xs);
    line-height: 1.5;
}

.apply-program-card-criteria li:last-child {
    margin-bottom: 0;
}


/* ============================================================
   14. SEARCH FORM & RESULTS
   ============================================================ */
.apply-search-form {
    margin-bottom: var(--apply-space-xl);
}

.apply-search-form .input-group {
    max-width: 100%;
}

.apply-search-form .form-control {
    font-size: var(--apply-text-lg);
    padding: 0.75rem 1rem;
    min-height: 56px;
}

/* Search results */
.apply-search-results {
    margin-top: var(--apply-space-xl);
}

.apply-search-results-title {
    font-size: var(--apply-text-lg);
    margin-bottom: var(--apply-space-lg);
    color: var(--apply-text-secondary);
    font-family: var(--apply-font-body);
    font-weight: 700;
}

.apply-portal .apply-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--apply-surface);
    border: 2px solid var(--apply-border);
    border-radius: var(--apply-radius-lg);
    padding: var(--apply-space-lg);
    text-decoration: none;
    color: var(--apply-text);
    transition: all 0.2s ease;
    margin-bottom: var(--apply-space-md);
    gap: var(--apply-space-md);
}

.apply-portal .apply-result-card:hover,
.apply-portal .apply-result-card.active {
    border-color: var(--apply-primary);
    box-shadow: var(--apply-shadow-md);
    color: var(--apply-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.apply-result-address {
    font-family: var(--apply-font-heading);
    font-size: var(--apply-text-lg);
    font-weight: 700;
    margin-bottom: 0;
}

.apply-result-meta {
    display: flex;
    gap: var(--apply-space-xl);
    margin-bottom: var(--apply-space-sm);
    font-size: var(--apply-text-sm);
    color: var(--apply-text-secondary);
}

.apply-result-meta dt {
    display: inline;
    font-weight: 400;
    color: var(--apply-text-muted);
}

.apply-result-meta dd {
    display: inline;
    margin-left: var(--apply-space-xs);
    font-weight: 600;
    color: var(--apply-text);
}

.apply-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--apply-space-sm);
    border-top: 1px solid var(--apply-border);
}

.apply-result-owner {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-secondary);
}

.apply-result-select {
    display: inline-flex;
    align-items: center;
    gap: var(--apply-space-xs);
    font-weight: 700;
    color: var(--apply-primary);
    font-size: var(--apply-text-sm);
    background: var(--apply-primary-light);
    padding: var(--apply-space-xs) var(--apply-space-md);
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.apply-portal .apply-result-card:hover .apply-result-select,
.apply-portal .apply-result-card.active .apply-result-select {
    background: var(--apply-primary);
    color: var(--apply-text-inverse);
}

.apply-result-select svg {
    width: 16px;
    height: 16px;
}

/* Search spinner */
.apply-search-spinner {
    display: none;
    text-align: center;
    padding: var(--apply-space-2xl);
    color: var(--apply-text-muted);
}

.apply-search-spinner.active {
    display: block;
}

.apply-search-spinner .apply-spinner {
    margin: 0 auto;
}

/* Search empty/error states */
.apply-search-empty,
.apply-search-error {
    text-align: center;
    padding: var(--apply-space-2xl);
    color: var(--apply-text-muted);
}

.apply-search-error {
    color: var(--apply-error);
}

/* Search help text */
.apply-search-help {
    margin-top: var(--apply-space-xl);
    padding: var(--apply-space-lg);
    background: var(--apply-primary-faint);
    border-radius: var(--apply-radius-md);
    text-align: center;
    font-size: var(--apply-text-sm);
}

.apply-search-help p {
    margin: 0;
}


/* ============================================================
   15. REVIEW / SUMMARY SECTIONS
   ============================================================ */
.apply-review-section {
    margin-bottom: var(--apply-space-xl);
}

.apply-review-section h3 {
    font-size: var(--apply-text-lg);
    padding-bottom: var(--apply-space-sm);
    border-bottom: 2px solid var(--apply-primary);
    margin-bottom: var(--apply-space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-review-section .edit-link {
    font-family: var(--apply-font-body);
    font-size: var(--apply-text-sm);
    font-weight: 600;
    color: var(--apply-primary);
}

.apply-review-dl {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--apply-space-sm) var(--apply-space-lg);
    font-size: var(--apply-text-sm);
    /* Zero browser-default dl margins so only the grid row-gap (within a dl) and the
       wrapper div's margin-top (between dls) control vertical rhythm. Without this,
       stacked <dl>s add an extra 1em of margin the visual spacing can't account for. */
    margin: 0;
}

.apply-review-dl dt {
    color: var(--apply-text-muted);
    font-weight: 400;
}

.apply-review-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--apply-text);
}

@media (max-width: 480px) {
    .apply-review-dl {
        grid-template-columns: 1fr;
        gap: var(--apply-space-xs);
    }

    .apply-review-dl dt {
        margin-top: var(--apply-space-sm);
    }
}


/* ============================================================
   16. ALERTS / NOTICES
   ============================================================ */
.apply-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--apply-space-sm);
    padding: var(--apply-space-lg);
    border-radius: var(--apply-radius-md);
    margin-bottom: var(--apply-space-lg);
    font-size: var(--apply-text-sm);
}

/* Stack of one or more page-level banners (e.g. trust + delinquency on the
   apply property page). Uses flex gap for consistent banner-to-banner
   spacing and a single bottom margin matching the progress-bar→content
   rhythm so the heading sits at the same vertical distance whether or not
   the stack is present. */
.apply-banner-stack {
    display: flex;
    flex-direction: column;
    gap: var(--apply-space-md);
    margin-bottom: var(--apply-space-2xl);
}
.apply-banner-stack > .apply-alert {
    margin-bottom: 0;
}
.apply-alert > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.apply-alert-info {
    background: var(--apply-primary-light);
    border: 1px solid var(--apply-primary);
    color: var(--apply-primary);
}

.apply-alert-warning {
    background: var(--apply-warning-light);
    border: 1px solid var(--apply-accent);
    border-left: 4px solid var(--apply-accent);
    color: var(--apply-warning);
}

/* Inverse-icon variant — keep the alert body in its original light color
   treatment, but render the leading SVG as a dark-amber circular badge with
   a white glyph. Reads as a high-priority callout without sacrificing the
   readable pale-yellow body. */
.apply-alert-warning.apply-alert-inverse > svg {
    background: var(--apply-warning);
    color: #fff;
    border-radius: 50%;
    box-sizing: content-box;
    overflow: visible; /* don't clip the stroke at the bottom-left/right corners */
    /* Triangle is bottom-heavy (widens at the base), so its optical center
       sits below the geometric center of the SVG box. Add extra padding-top
       and trim padding-bottom so the glyph reads as visually centered in the
       circle. Total vertical padding still equals 2.5rem so the circle
       stays a circle. */
    padding: 1rem 1.25rem 1.5rem;
}

.apply-alert-error {
    background: var(--apply-error-light);
    border: 1px solid var(--apply-error);
    border-left: 4px solid var(--apply-error);
    color: var(--apply-error);
}

.apply-alert-success {
    background: var(--apply-success-light);
    border: 1px solid var(--apply-success);
    border-left: 4px solid var(--apply-success);
    color: var(--apply-success-dark);
}

.apply-alert-prominent {
    align-items: center;          /* center the larger icon with the text block */
    gap: var(--apply-space-lg);   /* extra breathing room between icon and copy */
    padding: var(--apply-space-lg) var(--apply-space-xl);
}
.apply-alert-prominent > svg {
    width: 40px;
    height: 40px;
    margin-top: 0;                /* override the standard variant's 1px nudge */
}
.apply-alert-body {
    flex: 1;
    min-width: 0;
}
.apply-alert-body > :last-child {
    margin-bottom: 0;
}
.apply-portal .apply-alert-title {
    margin: 0 0 var(--apply-space-xs) 0;
    font-size: var(--apply-text-lg);
    color: inherit;
}


/* ============================================================
   17. CERTIFICATION CHECKBOX
   ============================================================ */
.apply-certification {
    background: var(--apply-primary-faint);
    border: 2px solid var(--apply-border);
    border-radius: var(--apply-radius-lg);
    padding: var(--apply-space-xl);
    margin-top: var(--apply-space-xl);
}

.apply-certification .form-check {
    border: none;
    padding-left: 2.5rem;
    background: none;
    display: flex;
    align-items: flex-start;
}

.apply-certification .form-check:hover {
    background: none;
}

.apply-certification p {
    font-size: var(--apply-text-sm);
    line-height: 1.6;
    color: var(--apply-text-secondary);
}


/* ============================================================
   18. CONFIRMATION PAGE
   ============================================================ */
.apply-confirmation {
    text-align: center;
    padding: var(--apply-space-2xl) 0;
}

.apply-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--apply-space-xl);
    background: var(--apply-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apply-success);
}

.apply-confirmation-icon svg {
    width: 40px;
    height: 40px;
}


/* ============================================================
   19. PROPERTY CONFIRM PAGE (pre-filled data)
   ============================================================ */
.apply-property-details {
    background: var(--apply-primary-faint);
    border: 2px solid var(--apply-primary);
    border-radius: var(--apply-radius-lg);
    padding: var(--apply-space-xl);
    margin-bottom: var(--apply-space-xl);
}

.apply-property-details h2 {
    font-size: var(--apply-text-xl);
    color: var(--apply-primary);
    margin-bottom: var(--apply-space-lg);
}

.apply-property-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--apply-space-sm) var(--apply-space-lg);
    margin: 0;
}

.apply-property-details dt {
    color: var(--apply-text-muted);
    font-weight: 400;
    font-size: var(--apply-text-sm);
}

.apply-property-details dd {
    margin: 0;
    font-weight: 600;
}


/* ============================================================
   19b. PROPERTY PHOTO PLACEHOLDER
   ============================================================ */
.apply-property-photo-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    background: var(--apply-primary-faint);
    border: 2px dashed var(--apply-border);
    border-radius: var(--apply-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--apply-space-sm);
    color: var(--apply-text-muted);
    margin-bottom: var(--apply-space-xl);
}

.apply-property-photo-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.apply-property-photo-placeholder span {
    font-size: var(--apply-text-sm);
    font-weight: 600;
}


/* ============================================================
   20. DUPLICATE APPLICATION WARNING
   ============================================================ */
.apply-duplicate-warning {
    background: var(--apply-warning-light);
    border: 2px solid var(--apply-accent);
    border-radius: var(--apply-radius-lg);
    padding: var(--apply-space-xl);
    text-align: center;
}

.apply-duplicate-warning h2 {
    color: var(--apply-accent);
    margin-bottom: var(--apply-space-md);
}

.apply-duplicate-warning p {
    color: var(--apply-warning);
}


/* ============================================================
   21. LOADING / DISABLED STATES
   ============================================================ */
.apply-portal .btn:disabled,
.apply-portal .btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.apply-portal .btn.is-loading {
    position: relative;
    color: transparent;
}

.apply-portal .btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: apply-spin 0.6s linear infinite;
}

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


/* ============================================================
   23. DOCUMENT UPLOAD
   ============================================================ */
.apply-upload-group-title {
    display: flex;
    align-items: center;
    gap: var(--apply-space-md);
    font-family: var(--apply-font-heading);
    font-size: var(--apply-text-lg);
    font-weight: 700;
    margin-bottom: var(--apply-space-lg);
    padding-bottom: var(--apply-space-md);
    border-bottom: 1px solid var(--apply-border);
}

.apply-upload-section {
    margin-bottom: var(--apply-space-lg);
}

.apply-upload-section-title {
    font-family: var(--apply-font-heading);
    font-size: var(--apply-text-base);
    font-weight: 700;
    margin-bottom: var(--apply-space-xs);
}

.apply-upload-section-desc {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-secondary);
    margin-bottom: var(--apply-space-md);
}

.apply-upload-zone {
    position: relative;
    border: 2px dashed var(--apply-border);
    border-radius: var(--apply-radius-lg);
    padding: var(--apply-space-xl) var(--apply-space-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--apply-surface);
}

.apply-upload-zone:hover,
.apply-upload-zone.dragover {
    border-color: var(--apply-primary);
    background: var(--apply-primary-faint);
}

.apply-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.apply-upload-zone.is-uploading {
    pointer-events: none;
    opacity: 0.6;
}

.apply-upload-zone.is-uploading .apply-upload-icon,
.apply-upload-zone.is-uploading .apply-upload-text,
.apply-upload-zone.is-uploading .apply-upload-formats {
    display: none;
}

.apply-upload-spinner {
    display: none;
}

.apply-upload-zone.is-uploading .apply-upload-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--apply-space-sm);
}

.apply-upload-spinner-text {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-muted);
}

/* Unified spinner component — used for search, upload, and processing */
.apply-spinner {
    display: inline-block;
    border-style: solid;
    border-color: var(--apply-border);
    border-top-color: var(--apply-primary);
    border-radius: 50%;
    animation: apply-spin 0.8s linear infinite;
}

.apply-spinner--sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.apply-spinner--md {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.apply-spinner--lg {
    width: 64px;
    height: 64px;
    border-width: 4px;
}

.apply-upload-icon {
    margin-bottom: var(--apply-space-sm);
    color: var(--apply-text-muted);
}

.apply-upload-icon svg {
    width: 48px;
    height: 48px;
}

.apply-upload-text {
    margin-bottom: var(--apply-space-xs);
    font-size: var(--apply-text-base);
}

.apply-upload-formats {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-muted);
    margin-bottom: 0;
}

/* File preview (shown after upload) */
.apply-file-preview {
    display: flex;
    align-items: center;
    gap: var(--apply-space-md);
    padding: var(--apply-space-md) var(--apply-space-lg);
    background: var(--apply-success-light);
    border: 1px solid var(--apply-success);
    border-radius: var(--apply-radius-md);
    margin-top: var(--apply-space-md);
}

.apply-file-preview-icon {
    color: var(--apply-success);
    flex-shrink: 0;
}

.apply-file-preview-icon svg {
    width: 24px;
    height: 24px;
}

.apply-file-preview-info {
    flex: 1;
    min-width: 0;
}

.apply-file-preview-name {
    font-weight: 600;
    font-size: var(--apply-text-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-file-preview-size {
    font-size: 0.8125rem;
    color: var(--apply-text-muted);
}

.apply-file-preview-view {
    font-size: var(--apply-text-sm);
    color: var(--apply-primary);
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
    margin-right: var(--apply-space-sm);
}

.apply-file-remove {
    background: none;
    border: 1px solid var(--apply-border);
    border-radius: var(--apply-radius-sm);
    padding: 0.25rem 0.75rem;
    font-size: var(--apply-text-sm);
    font-weight: 600;
    color: var(--apply-error);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.apply-file-remove:hover {
    background: var(--apply-error-light);
    border-color: var(--apply-error);
}

.apply-divider {
    border: none;
    border-top: 1px solid var(--apply-border);
    margin: var(--apply-space-lg) 0;
}

/* Upload error state */
.apply-upload-error {
    color: var(--apply-error);
    font-size: var(--apply-text-sm);
    font-weight: 600;
    margin-top: var(--apply-space-sm);
}

/* ============================================================
   24. SMS CONSENT
   ============================================================ */
.apply-sms-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--apply-space-sm);
    padding: var(--apply-space-md);
    background: var(--apply-bg-subtle, #f8f9fa);
    border-radius: var(--apply-radius);
    margin-top: var(--apply-space-lg);
    font-size: var(--apply-text-sm);
    color: var(--apply-text-muted);
}
.apply-sms-consent svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   26. INFO BUBBLE
   ============================================================ */
.apply-info-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}
.apply-info-trigger svg {
    width: 16px;
    height: 16px;
    stroke: var(--apply-primary);
    opacity: 0.7;
    transition: opacity 0.15s;
    margin-left: 4px;
}
.apply-info-trigger:hover svg,
.apply-info-trigger:focus svg {
    opacity: 1;
}
.apply-info-bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: var(--apply-primary);
    color: #fff;
    padding: var(--apply-space-sm) var(--apply-space-md);
    border-radius: var(--apply-radius-md);
    font-size: var(--apply-text-sm);
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}
.apply-info-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--apply-primary);
}
.apply-info-trigger:hover .apply-info-bubble,
.apply-info-trigger:focus .apply-info-bubble {
    display: block;
}

/* ============================================================
   27. SITE ADDRESS DISPLAY
   ============================================================ */
.apply-site-address-display {
    padding: var(--apply-space-md);
    background: var(--apply-bg-subtle, #f8f9fa);
    border-radius: var(--apply-radius);
    margin-bottom: var(--apply-space-lg);
}
.apply-site-address-label {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-muted);
    margin-bottom: var(--apply-space-2xs, 4px);
}
.apply-site-address-value {
    font-size: var(--apply-text-lg);
    font-weight: 700;
    color: var(--apply-text);
}

/* ============================================================
   28. COLLAPSIBLE TOGGLE SECTIONS
   ============================================================ */
.apply-toggle-content {
    display: none;
}
.apply-toggle-content.open {
    display: block;
}

/* ============================================================
   29. OWNER BADGE & APPLICATION CONTACT
   ============================================================ */
.apply-owner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--apply-space-sm);
    margin-bottom: var(--apply-space-lg);
    padding-bottom: var(--apply-space-md);
    border-bottom: 1px solid var(--apply-border);
}

.apply-helper-callout {
    display: flex;
    align-items: flex-start;
    gap: var(--apply-space-sm);
    padding: var(--apply-space-md) var(--apply-space-lg);
    background: var(--apply-primary-faint);
    border: 1px solid var(--apply-primary-light);
    border-radius: var(--apply-radius-md);
    margin-bottom: var(--apply-space-xl);
    font-size: var(--apply-text-sm);
    color: var(--apply-text-secondary);
    line-height: 1.5;
}
.apply-helper-callout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--apply-primary);
    margin-top: 2px;
}
.apply-primary-contact-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--apply-space-xs);
    font-size: var(--apply-text-sm);
    font-weight: 600;
    color: var(--apply-text-secondary);
    cursor: pointer;
    white-space: nowrap;
}
.apply-primary-contact-toggle input[type="radio"] {
    accent-color: var(--apply-primary);
    width: 1rem;
    height: 1rem;
    margin: 0;
}

/* ============================================================
   30. CONFIRMATION PAGE ENHANCEMENTS
   ============================================================ */
.apply-confirmation-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--apply-space-lg);
    margin-bottom: var(--apply-space-xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.apply-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--apply-space-xs);
    padding: var(--apply-space-xs) var(--apply-space-md);
    border-radius: 999px;
    font-size: var(--apply-text-sm);
    font-weight: 600;
    margin-bottom: var(--apply-space-xl);
}
.apply-status-badge--pending {
    background: #fff3e0;
    color: #b33c00;
}
.apply-status-badge--approved {
    background: #e8f5e9;
    color: #2e7d32;
}
.apply-status-badge--rejected {
    background: #fce4ec;
    color: #c62828;
}
.apply-status-badge svg {
    width: 16px;
    height: 16px;
}

.apply-status-badge--lg {
    padding: var(--apply-space-sm) var(--apply-space-lg);
    font-size: var(--apply-text-lg);
    margin-bottom: var(--apply-space-md);
}
.apply-status-badge--lg svg {
    width: 22px;
    height: 22px;
}
.apply-status-badge--approved.apply-status-badge--lg {
    background: #2e7d32;
    color: #fff;
}

.apply-detail-items-inline {
    display: flex;
    gap: var(--apply-space-xl);
    flex-wrap: wrap;
}
.apply-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.apply-detail-item-label {
    font-size: var(--apply-text-sm);
    color: var(--apply-text-muted);
    font-weight: 400;
}
.apply-detail-item-value {
    font-weight: 600;
    color: var(--apply-text);
}

@media (max-width: 480px) {
    .apply-detail-items-inline {
        flex-direction: column;
        gap: var(--apply-space-md);
    }
}

.apply-next-steps {
    text-align: left;
    max-width: 540px;
    margin: 0 auto var(--apply-space-xl);
}
.apply-next-steps h2 {
    margin-bottom: var(--apply-space-md);
}
.apply-next-steps ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    margin: 0;
}
.apply-next-steps li {
    counter-increment: steps;
    padding: var(--apply-space-sm) 0 var(--apply-space-sm) 2.5rem;
    position: relative;
    font-size: var(--apply-text-base);
    color: var(--apply-text-secondary);
    line-height: 1.5;
}
.apply-next-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: var(--apply-space-sm);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--apply-primary-light);
    color: var(--apply-primary);
    font-size: var(--apply-text-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   22. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --apply-text-3xl: 1.75rem;
        --apply-text-2xl: 1.5rem;
    }

    .apply-header .header-inner {
        padding: 0 var(--apply-space-md);
    }

    .apply-header .county-seal {
        width: 44px;
        height: 44px;
    }

    .apply-container {
        padding: var(--apply-space-xl) var(--apply-space-md);
    }

    .apply-result-meta {
        flex-direction: column;
        gap: var(--apply-space-xs);
    }

}

@media (max-width: 480px) {
    .apply-header .portal-name {
        display: none;
    }

    .apply-btn-group {
        flex-direction: column-reverse;
        gap: var(--apply-space-sm);
    }

    .apply-btn-group .btn {
        width: 100%;
    }
}

/* ============================================================
   30. CONTACT-STEP SELECT ROW (Variant B)
   ============================================================ */
.apply-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--apply-space-md);
    margin-bottom: var(--apply-space-lg);
}
@media (max-width: 600px) {
    .apply-select-row { grid-template-columns: 1fr; }
}
.apply-select-row .form-label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--apply-space-2xs, 0.25rem);
    font-size: var(--apply-text-sm);
}

/* Inline search indicator (incremental search) */
.apply-search-inline-spinner {
    display: none;
    background-color: transparent;
    border-left: 0;
}

.apply-search-inline-spinner.active {
    display: flex;
    align-items: center;
}

/* ── Phone handoff QR card ────────────────────────────────────────────── */

.apply-card--phone-handoff {
    max-width: 540px;
    margin: 0 auto var(--apply-space-lg);
    padding: var(--apply-space-md) var(--apply-space-lg);
    display: flex;
    align-items: center;
    gap: var(--apply-space-md);
    text-align: left;
}

.apply-card--phone-handoff .phone-handoff-text {
    flex: 1 1 auto;
}

.apply-card--phone-handoff h2 {
    font-size: var(--apply-text-lg);
    margin: 0 0 var(--apply-space-xs);
}

.apply-card--phone-handoff p {
    margin: 0 0 var(--apply-space-xs);
    color: var(--apply-text-secondary);
    font-size: var(--apply-text-sm);
}

.apply-card--phone-handoff .phone-handoff-refresh {
    font-size: var(--apply-text-sm);
}

.apply-card--phone-handoff .phone-handoff-qr {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
}

.apply-card--phone-handoff .phone-handoff-qr svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 720px) {
    #doc-phone-handoff { display: none; }
}
