/**
 * Mockup v4 - Buyer Registry Landing Page
 * Combines v3 premium hero with mockup3 government portal body
 *
 * Design System:
 * - Hero: Cormorant Garamond (display) + Outfit (body text) - elegant, refined
 * - Body: Inter (clean, trustworthy government portal style)
 *
 * Color Palette:
 * - Gold: #C5A648 (primary CTAs)
 * - Burgundy: #8B2346 (accents, headings)
 * - Greys: Clean government portal palette
 */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500;600&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - Unified palette
   ============================================ */
:root {
    /* Brand Colors */
    --gold: #C5A648;
    --gold-hover: #B39540;
    --gold-light: #F5EFD9;
    --burgundy: #8B2346;
    --burgundy-hover: #6E1C38;
    --burgundy-light: #F8EEF1;
    --teal: #0D7377;
    --teal-light: #E6F4F4;

    /* Cream tones (v3 hero) */
    --cream: #FAF6EF;
    --cream-dark: #F0E8DA;

    /* Grey scale (mockup3 body) */
    --white: #FFFFFF;
    --grey-50: #FAFAFA;
    --grey-100: #F5F5F5;
    --grey-200: #EEEEEE;
    --grey-300: #E0E0E0;
    --grey-400: #BDBDBD;
    --grey-500: #9E9E9E;
    --grey-600: #757575;
    --grey-700: #616161;
    --grey-800: #424242;
    --grey-900: #212121;

    /* Functional colors */
    --success: #2E7D32;
    --success-light: #E8F5E9;
    --info: #1565C0;
    --info-light: #E3F2FD;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body-elegant: 'Outfit', system-ui, sans-serif;
    --font-body-clean: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Type Scale (v3 hero) */
    --text-hero: clamp(2.5rem, 6vw, 4rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2rem);
    --text-h3: clamp(1.125rem, 2vw, 1.5rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-tiny: 0.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* V3 Spacing (hero) */
    --v3-space-xs: 0.5rem;
    --v3-space-sm: 1rem;
    --v3-space-md: 1.5rem;
    --v3-space-lg: 2rem;
    --v3-space-xl: 3rem;
    --v3-space-2xl: 4rem;
    --v3-space-3xl: 6rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 41, 38, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.landing-page {
    font-family: var(--font-body-clean);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--grey-800);
    background-color: var(--grey-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.landing-page a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color var(--transition);
}

.landing-page a:hover {
    color: var(--burgundy-hover);
    text-decoration: underline;
}

.landing-page img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   V3 NAVIGATION - Premium style (fixed)
   ============================================ */
.v3-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--v3-space-sm) 0;
    background: var(--white);
    border-bottom: 1px solid rgba(45, 41, 38, 0.08);
}

.v3-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v3-nav__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.v3-nav__brand:hover {
    text-decoration: none;
}

.v3-nav__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: -0.01em;
}

.v3-nav__subtitle {
    font-size: var(--text-tiny);
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   V3 CONTAINER
   ============================================ */
.v3-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--v3-space-md);
}

/* ============================================
   V3 BUTTONS - Premium style
   ============================================ */
.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body-elegant);
    font-weight: 500;
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.v3-btn:hover {
    text-decoration: none;
}

.v3-btn--gold,
.landing-page a.v3-btn--gold {
    background: var(--gold);
    color: var(--white);
}

.v3-btn--gold:hover,
.landing-page a.v3-btn--gold:hover {
    background: var(--gold-hover);
    color: var(--white);
    text-decoration: none;
}

.v3-btn--burgundy,
.landing-page a.v3-btn--burgundy {
    background: var(--burgundy);
    color: var(--white);
}

.v3-btn--burgundy:hover,
.landing-page a.v3-btn--burgundy:hover {
    background: var(--burgundy-hover);
    color: var(--white);
    text-decoration: none;
}

.v3-btn--outline,
.landing-page a.v3-btn--outline {
    background: transparent;
    color: var(--burgundy);
    border: 1px solid var(--burgundy);
}

.v3-btn--outline:hover,
.landing-page a.v3-btn--outline:hover {
    background: var(--burgundy);
    color: var(--white);
    text-decoration: none;
}

.v3-btn--large {
    padding: 1rem 2.5rem;
    font-size: var(--text-body);
}

.v3-btn--small {
    padding: 0.625rem 1.25rem;
    font-size: var(--text-tiny);
}

/* ============================================
   V3 HERO - Elegant serif typography
   ============================================ */
.v3-hero {
    padding: calc(80px + var(--v3-space-3xl)) 0 var(--v3-space-3xl);
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element */
.v3-hero::before {
    content: '';
    position: absolute;
    top: 60px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.v3-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.v3-hero__welcome {
    display: inline-flex;
    align-items: center;
    gap: var(--v3-space-xs);
    font-family: var(--font-body-elegant);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--gold-hover);
    margin-bottom: var(--v3-space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.v3-hero__welcome i {
    font-size: 1.125rem;
}

.v3-hero__title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 500;
    color: var(--burgundy);
    margin-bottom: var(--v3-space-md);
    line-height: 1.1;
}

.v3-hero__title em {
    font-style: italic;
    color: var(--gold-hover);
}

.v3-hero__description {
    font-family: var(--font-body-elegant);
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--grey-600);
    margin-bottom: var(--v3-space-xl);
    line-height: 1.7;
}

.v3-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v3-space-sm);
    justify-content: center;
    margin-bottom: var(--v3-space-lg);
}

.v3-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--v3-space-xs);
    font-family: var(--font-body-elegant);
    font-size: var(--text-small);
    color: var(--grey-600);
}

.v3-hero__meta i {
    color: var(--gold);
}

/* ============================================
   TRANSITION ZONE - Hero to body
   ============================================ */
.v3-hero + .section--grey {
    border-top: 1px solid var(--grey-200);
}

/* ============================================
   MOCKUP3 CONTAINER
   ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ============================================
   MOCKUP3 BUTTONS - Government portal style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body-clean);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn--outline:hover {
    background: var(--burgundy-light);
    color: var(--burgundy);
}

.btn--small {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.btn--large {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
}

/* ============================================
   MOCKUP3 SECTIONS - Government portal style
   ============================================ */
.section {
    padding: var(--space-12) 0;
}

.section--white {
    background: var(--white);
}

.section--grey {
    background: var(--grey-100);
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.section__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--burgundy);
    margin-bottom: var(--space-2);
}

.section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
}

.section__subtitle {
    font-size: 1rem;
    color: var(--grey-600);
}

/* ============================================
   MOCKUP3 TIMELINE - Application steps
   ============================================ */
.timeline {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline--four-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: var(--space-5);
    text-align: center;
}

.timeline__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
}

.timeline__icon i {
    font-size: 1.25rem;
    color: var(--grey-700);
}

.timeline__step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
}

.timeline__step-desc {
    flex: 1;
    font-size: 0.875rem;
    color: var(--grey-600);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.timeline__badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--info-light);
    color: var(--info);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto; /* Push badge to bottom for consistent alignment */
}

.timeline__badge--today {
    background: var(--success-light);
    color: var(--success);
}

.timeline__note {
    grid-column: 1 / -1;
    background: var(--info-light);
    border-radius: 8px;
    padding: var(--space-4);
    font-size: 0.875rem;
    color: var(--grey-800);
}

.timeline__note strong {
    color: var(--grey-900);
}

/* ============================================
   MOCKUP3 ELIGIBILITY - Checklist card
   ============================================ */
.eligibility {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .eligibility {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

.eligibility__content {
    text-align: center;
}

@media (min-width: 768px) {
    .eligibility__content {
        text-align: left;
    }
}

.eligibility__intro {
    font-size: 1rem;
    color: var(--grey-600);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.eligibility__subheading {
    font-size: 1rem;
    color: var(--grey-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.eligibility__card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: var(--space-6);
}

.checklist {
    list-style: none;
}

.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--grey-200);
}

.checklist__item:last-child {
    border-bottom: none;
}

.checklist__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist__icon i {
    font-size: 0.875rem;
    color: var(--success);
}

.checklist__text {
    font-size: 0.9375rem;
    color: var(--grey-800);
    line-height: 1.5;
}

.checklist__text strong {
    color: var(--grey-900);
}

.checklist__note {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--grey-200);
    font-size: 0.875rem;
    color: var(--grey-600);
}

/* ============================================
   MOCKUP3 SELECTION PROCESS
   ============================================ */
.selection {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.selection__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: var(--space-3);
}

.selection__text {
    font-size: 0.9375rem;
    color: var(--grey-700);
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.selection__note {
    font-size: 0.875rem;
    color: var(--grey-600);
}

/* ============================================
   MOCKUP3 CTA CARD
   ============================================ */
.cta-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: var(--space-8);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-3);
}

.cta-card__text {
    font-size: 1rem;
    color: var(--grey-600);
    margin-bottom: var(--space-6);
}

/* ============================================
   MOCKUP3 HELP BANNER
   ============================================ */
.help-banner {
    background: var(--info-light);
    border-radius: 8px;
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.help-banner__icon {
    flex-shrink: 0;
    color: var(--info);
}

.help-banner__content {
    font-size: 0.9375rem;
    color: var(--grey-800);
}

.help-banner__content strong {
    display: block;
    margin-bottom: var(--space-1);
}

/* ============================================
   MOCKUP3 FOOTER - Dark government style
   ============================================ */
.footer {
    background: var(--grey-900);
    color: var(--grey-400);
    padding: var(--space-10) 0 var(--space-6);
}

.footer__main {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .footer__main {
        grid-template-columns: 1fr auto auto;
    }
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--grey-500);
    line-height: 1.5;
}

.footer__column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.footer__column a,
.footer__contact-item a,
.footer__contact-item span {
    color: var(--grey-400);
    font-size: 0.875rem;
    line-height: 1;
}

.footer__column a {
    display: block;
    margin-bottom: var(--space-2);
}

.footer__column a:hover,
.footer__contact-item a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.footer__contact-item i {
    color: var(--grey-500);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.footer__contact-item a,
.footer__contact-item span {
    display: block;
    align-self: center;
    line-height: 1.4;
    word-break: break-word;
}

/* Partner Logos */
.footer__partners {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__partners-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer__partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.footer__partner-link {
    display: inline-flex;
    align-items: center;
}

.footer__partner-logo {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__partner-logo:hover {
    opacity: 1;
}

.footer__bottom {
    border-top: 1px solid var(--grey-800);
    padding-top: var(--space-4);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--grey-500);
}

/* ============================================
   V3 ANIMATIONS - Hero fade-in
   ============================================ */
.v3-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.v3-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE - Mobile first
   ============================================ */
@media (max-width: 768px) {
    /* Container padding */
    .v3-container {
        padding: 0 var(--v3-space-sm);
    }

    /* Navigation - compact for mobile */
    .v3-nav__inner {
        gap: var(--v3-space-xs);
    }

    .v3-nav__logo {
        font-size: 1.1rem;
    }

    .v3-nav__subtitle {
        font-size: 0.625rem;
        letter-spacing: 0.05em;
    }

    .v3-btn--small {
        padding: 0.5rem 0.75rem;
        font-size: 0.625rem;
        letter-spacing: 0.04em;
    }

    /* Hero */
    .v3-hero {
        padding: calc(70px + var(--v3-space-xl)) 0 var(--v3-space-xl);
    }

    .v3-hero__welcome {
        font-size: var(--text-tiny);
    }

    .v3-hero__title {
        font-size: 2rem;
    }

    .v3-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .v3-btn--large {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Section spacing */
    .section {
        padding: var(--space-8) 0;
    }

    /* Footer */
    .footer__main {
        text-align: center;
    }

    .footer__brand {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer__column {
        text-align: center;
    }

    .footer__contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .v3-hero__title {
        font-size: 1.75rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .cta-card {
        padding: var(--space-6);
    }

    .cta-card__title {
        font-size: 1.25rem;
    }

    /* Smaller footer logos on mobile */
    .footer__partner-logo {
        height: 40px;
    }

    .footer__partners-logos {
        gap: 1.5rem;
    }
}

/* ============================================
   APPLICATION FORM STYLES
   Extended styles for application wizard pages
   ============================================ */

/* Application Page Body */
.app-page {
    font-family: var(--font-body-clean);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--grey-800);
    background-color: var(--grey-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Application Navigation */
.app-nav {
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.app-nav__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: var(--burgundy);
}

.app-nav__brand:hover {
    text-decoration: none;
    color: var(--burgundy-hover);
}

.app-nav__logo {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--burgundy);
}

.app-nav__subtitle {
    font-size: var(--text-tiny);
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-nav__save {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-small);
    color: var(--success);
}

.app-nav__save i {
    font-size: 1rem;
}

/* Application Layout - Two column on desktop */
.app-layout {
    flex: 1;
    display: grid;
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    width: 100%;
}

@media (min-width: 1140px) {
    .app-layout {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }
}

/* Form Column */
.app-form-column {
    order: 2;
}

@media (min-width: 992px) {
    .app-form-column {
        order: 1;
    }
}

/* Info Column */
.app-info-column {
    order: 1;
}

@media (min-width: 992px) {
    .app-info-column {
        order: 2;
        position: sticky;
        top: 80px;
    }
}

/* Application Form Card */
.app-form-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .app-form-card {
        padding: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .app-form-card {
        padding: var(--space-8);
    }
}

/* Application Info Card */
.app-info-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.app-info-section {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--grey-200);
}

.app-info-section:first-child {
    padding-top: 0;
}

.app-info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.app-info-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
}

.app-info-section .info-icon {
    color: var(--burgundy);
    font-size: 1.125rem;
}

.app-info-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.app-info-section li {
    position: relative;
    padding-left: var(--space-5);
    font-size: var(--text-small);
    color: var(--grey-700);
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.app-info-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--burgundy);
    border-radius: 50%;
}

.app-info-section p {
    font-size: var(--text-small);
    color: var(--grey-700);
    margin: 0;
    line-height: 1.5;
}

/* Application Progress Bar */
.app-progress {
    margin-bottom: var(--space-6);
}

.app-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.app-progress__step {
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--grey-900);
}

.app-progress__percent {
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--burgundy);
}

.app-progress__bar {
    height: 8px;
    background: var(--grey-200);
    border-radius: 4px;
    overflow: hidden;
}

.app-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.app-progress__time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-small);
    color: var(--grey-600);
    font-weight: 500;
}

.app-progress__time i {
    color: var(--gold);
}

/* Application Page Title */
.app-title {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.app-subtitle {
    font-size: var(--text-body);
    color: var(--grey-700);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* Form Input Styling */
.app-input,
.app-select,
.app-textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body-clean);
    font-size: var(--text-body);
    color: var(--grey-900);
    background: var(--white);
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px var(--burgundy-light);
}

.app-input::placeholder {
    color: var(--grey-500);
}

.app-input.is-valid {
    border-color: var(--success);
}

.app-input.is-invalid {
    border-color: #dc3545;
}

.app-input:disabled,
.app-select:disabled,
.app-textarea:disabled {
    background-color: var(--grey-100);
    color: var(--grey-500);
    cursor: not-allowed;
    opacity: 0.75;
}

.app-input-lg {
    padding: var(--space-4) var(--space-5);
    font-size: 1.0625rem;
    line-height: 1.5;
}

/* Form Label */
.app-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: var(--space-2);
}

.app-label.required::after {
    content: ' *';
    color: #dc3545;
}

/* Form Hint */
.app-hint {
    display: block;
    font-size: var(--text-small);
    color: var(--grey-600);
    margin-top: var(--space-1);
}

/* Form Feedback */
.app-feedback {
    display: none;
    font-size: var(--text-small);
    margin-top: var(--space-1);
}

.app-feedback--valid {
    color: var(--success);
}

.app-feedback--invalid {
    color: #dc3545;
}

.app-input.is-invalid + .app-feedback--invalid,
.app-input.is-valid + .app-feedback--valid {
    display: block;
}

/* Form Group */
.app-form-group {
    margin-bottom: var(--space-5);
}

/* Form Row */
.app-form-row {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 576px) {
    .app-form-row--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Checkbox Styling */
.app-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
}

.app-checkbox__input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--burgundy);
    cursor: pointer;
}

.app-checkbox__label {
    font-size: var(--text-body);
    color: var(--grey-800);
    cursor: pointer;
    line-height: 1.5;
}

.app-checkbox__label strong {
    color: var(--grey-900);
    font-weight: 700;
}

.app-checkbox__hint {
    display: block;
    font-size: var(--text-small);
    color: var(--grey-500);
    margin-top: var(--space-1);
}

/* Declaration Checklist */
.app-declarations {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.app-declarations__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-900);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: var(--space-2);
}

.app-declarations__title i {
    color: var(--burgundy);
}

.app-declaration {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--grey-200);
}

fieldset.app-declaration {
    border: none;
    margin: 0;
    padding: var(--space-3) 0;
}

.app-declaration:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.app-declaration__checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--burgundy);
    cursor: pointer;
}

.app-declaration__content {
    flex: 1;
}

.app-declaration__text {
    font-size: var(--text-body);
    color: var(--grey-800);
    line-height: 1.5;
}

.app-declaration__text strong {
    color: var(--grey-900);
    font-weight: 700;
}

.app-declaration__required {
    color: #dc3545;
    margin-left: var(--space-1);
}

.app-declaration__optional {
    color: var(--grey-500);
    font-size: var(--text-small);
    margin-left: var(--space-1);
}

.app-declaration__hint {
    font-size: var(--text-small);
    color: var(--grey-600);
    margin-top: var(--space-1);
    line-height: 1.5;
}

/* Declaration Progress */
.app-declaration-progress {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--grey-200);
}

.app-declaration-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
    font-size: var(--text-small);
}

.app-declaration-progress__label {
    color: var(--grey-600);
}

.app-declaration-progress__count {
    font-weight: 600;
    color: var(--burgundy);
}

.app-declaration-progress__bar {
    height: 6px;
    background: var(--grey-200);
    border-radius: 3px;
    overflow: hidden;
}

.app-declaration-progress__fill {
    height: 100%;
    background: var(--burgundy);
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.app-declaration-progress__fill--complete {
    background: var(--success);
}

/* Form Section Card */
.app-section {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.app-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--white);
    padding: var(--space-4);
    border-bottom: 1px solid var(--grey-200);
}

.app-section__header i {
    color: var(--burgundy);
    font-size: 1.25rem;
}

.app-section__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 0;
}

.app-section__body {
    padding: var(--space-4);
    line-height: 1.6;
}

.app-section__description {
    font-size: var(--text-body);
    color: var(--grey-800);
    margin-bottom: var(--space-3);
}

.app-section__hint {
    font-size: var(--text-small);
    color: var(--grey-600);
    margin-top: var(--space-2);
}

/* Instruction Box (neutral callout; no icon, no color accent) */
.app-instruction-box {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.app-instruction-box p {
    font-size: var(--text-small);
    color: var(--grey-600);
    margin: 0;
    line-height: 1.5;
}

.app-instruction-box p + p {
    color: var(--grey-500);
    margin-top: var(--space-2);
}

/* Alert Boxes */
.app-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.app-alert__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.app-alert__content {
    flex: 1;
    text-align: left;
}

.app-alert__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.app-alert__text {
    font-size: var(--text-small);
    margin: 0;
    line-height: 1.5;
    color: var(--grey-800);
    text-align: left;
}

.app-alert--info {
    background: var(--info-light);
    border: 1px solid #90caf9;
}

.app-alert--info .app-alert__icon,
.app-alert--info .app-alert__title {
    color: var(--info);
}

.app-alert--success {
    background: var(--success-light);
    border: 1px solid #a5d6a7;
}

.app-alert--success .app-alert__icon,
.app-alert--success .app-alert__title {
    color: var(--success);
}

.app-alert--warning {
    background: #fff8e1;
    border: 1px solid #ffcc80;
}

.app-alert--warning .app-alert__icon,
.app-alert--warning .app-alert__title {
    color: #f57c00;
}

.app-alert--danger {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.app-alert--danger .app-alert__icon,
.app-alert--danger .app-alert__title {
    color: #c62828;
}

/* Form Footer / Navigation */
.app-form-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--grey-200);
}

.app-form-footer__buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.app-form-footer__hint {
    text-align: center;
    font-size: var(--text-small);
    color: var(--grey-600);
    margin-top: var(--space-3);
    line-height: 1.5;
}

/* Application Buttons */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body-clean);
    font-size: var(--text-body);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
    line-height: 1.5;
}

.app-btn:hover {
    text-decoration: none;
}

.app-btn:focus {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

.app-btn--primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.app-btn--primary:hover {
    background: var(--burgundy-hover);
    border-color: var(--burgundy-hover);
    color: var(--white);
}

.app-btn--primary:disabled {
    background: var(--grey-400);
    border-color: var(--grey-400);
    cursor: not-allowed;
}

.app-btn--gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.app-btn--gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--white);
}

.app-btn--outline {
    background: transparent;
    color: var(--grey-700);
    border-color: var(--grey-300);
}

.app-btn--outline:hover {
    background: var(--grey-100);
    color: var(--grey-800);
    border-color: var(--grey-400);
}

.app-btn--lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1.0625rem;
    min-height: 48px;
}

.app-btn--sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    min-height: 40px;
}

/* Status Cards for Result Page */
.app-status-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
}

.app-status-card__icon {
    font-size: 5rem;
    margin-bottom: var(--space-4);
}

.app-status-card__icon--success {
    color: var(--success);
}

.app-status-card__icon--warning {
    color: #f57c00;
}

.app-status-card__icon--danger {
    color: #c62828;
}

.app-status-card__icon--info {
    color: var(--info);
}

.app-status-card__icon--neutral {
    color: var(--grey-500);
}

.app-status-card__title {
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: var(--space-3);
}

.app-status-card__subtitle {
    font-size: 1.125rem;
    color: var(--grey-600);
    max-width: 500px;
    margin: 0 auto;
}

/* Details Card for Result Page */
.app-details-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.app-details-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--grey-200);
}

.app-details-card__header i {
    color: var(--burgundy);
    font-size: 1.25rem;
}

.app-details-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--grey-900);
    margin: 0;
}

.app-details-table {
    width: 100%;
}

.app-details-table tr {
    border-bottom: 1px solid var(--grey-100);
}

.app-details-table tr:last-child {
    border-bottom: none;
}

.app-details-table td {
    padding: var(--space-2) 0;
    font-size: var(--text-body);
}

.app-details-table td:first-child {
    color: var(--grey-500);
    width: 40%;
}

.app-details-table td:last-child {
    font-weight: 500;
    color: var(--grey-900);
}

/* Next Steps Card */
.app-next-steps {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.app-next-steps__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: var(--space-5);
}

.app-next-steps__title i {
    color: var(--burgundy);
}

.app-next-steps__grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 576px) {
    .app-next-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .app-next-steps__grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-next-step {
    text-align: center;
}

.app-next-step__icon {
    font-size: 3rem;
    color: var(--burgundy);
    margin-bottom: var(--space-3);
}

.app-next-step__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
}

.app-next-step__text {
    font-size: var(--text-small);
    color: var(--grey-600);
    margin: 0;
}

/* Application Footer */
.app-footer {
    background: var(--grey-900);
    color: var(--grey-400);
    padding: var(--space-4) 0;
    margin-top: auto;
}

.app-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    text-align: center;
    font-size: var(--text-small);
}

.app-footer a {
    color: var(--grey-400);
    text-decoration: none;
    transition: color var(--transition);
}

.app-footer a:hover {
    color: var(--white);
}

.app-footer__sep {
    margin: 0 var(--space-2);
    color: var(--grey-600);
}

/* Upload Area */
.app-upload {
    border: 2px dashed var(--grey-300);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    background: var(--grey-50);
    transition: border-color var(--transition), background-color var(--transition);
}

.app-upload:hover {
    border-color: var(--burgundy);
    background: var(--burgundy-light);
}

.app-upload__icon {
    font-size: 3rem;
    color: var(--grey-400);
    margin-bottom: var(--space-3);
}

.app-upload__text {
    font-size: var(--text-body);
    color: var(--grey-700);
    margin-bottom: var(--space-2);
}

.app-upload__hint {
    font-size: var(--text-small);
    color: var(--grey-500);
}

/* File Preview */
.app-file-preview {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--info-light);
    border: 1px solid #90caf9;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-3);
}

.app-file-preview__icon {
    font-size: 2rem;
    color: var(--info);
}

.app-file-preview__info {
    flex: 1;
}

.app-file-preview__name {
    font-weight: 600;
    color: var(--grey-900);
}

.app-file-preview__size {
    font-size: var(--text-small);
    color: var(--grey-500);
}

.app-file-preview__remove {
    padding: var(--space-2);
    color: #c62828;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.app-file-preview__remove:hover {
    background: #ffebee;
}

/* Badge Styling */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-small);
    font-weight: 600;
    border-radius: 4px;
}

.app-badge--success {
    background: var(--success-light);
    color: var(--success);
}

.app-badge--warning {
    background: #fff8e1;
    color: #f57c00;
}

.app-badge--danger {
    background: #ffebee;
    color: #c62828;
}

.app-badge--info {
    background: var(--info-light);
    color: var(--info);
}

.app-badge--primary {
    background: var(--burgundy-light);
    color: var(--burgundy);
}

/* ============================================
   CO-APPLICANT NOA UPLOAD (Phase 136)
   ============================================ */

/* Persons on Title Selector */
.noa-persons-selector {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.noa-persons-selector .app-select {
    max-width: 280px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-sm);
    font-size: var(--text-body);
    background: var(--white);
    cursor: pointer;
}

/* NOA Upload Sections */
.noa-upload-section {
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.noa-upload-section--primary {
    border-color: var(--gold);
}

.noa-upload-section--coapplicant {
    border-color: var(--grey-300);
}

.noa-upload-section:hover {
    box-shadow: var(--shadow-sm);
}

/* Applicant Badges */
.noa-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-tiny);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noa-badge--primary {
    background: var(--gold);
    color: #fff;
}

.noa-badge--co {
    background: var(--burgundy);
    color: #fff;
}

/* Upload Dropzone-style area */
.noa-upload-section .app-input[type="file"] {
    border: 2px dashed var(--grey-300);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    background: var(--grey-50);
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
}

.noa-upload-section .app-input[type="file"]:hover {
    border-color: var(--gold);
    background: var(--gold-light);
}

/* Verified State */
.noa-verified-state {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--success-light);
    border: 1px solid #9ae6b4;
    border-radius: var(--radius-sm);
}

.noa-verified-state strong {
    color: var(--grey-900);
}

/* Income Summary Table */
#incomeSummary {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

#incomeSummary table {
    width: 100%;
    border-collapse: collapse;
}

#incomeSummary th {
    padding: var(--space-2) var(--space-3);
    text-align: left;
    font-size: var(--text-small);
    color: var(--grey-600);
    border-bottom: 2px solid var(--grey-300);
}

#incomeSummary td {
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--grey-200);
}

#incomeSummary tfoot td {
    padding: var(--space-3);
    font-weight: 700;
    background: var(--grey-100);
    border-bottom: none;
}

/* Co-Applicant Declaration */
.co-applicant-declaration {
    transition: opacity var(--transition);
}

/* Co-Applicant Upload Button */
.co-applicant-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.co-applicant-upload-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Responsive adjustments for application pages */
@media (max-width: 768px) {
    .app-form-card {
        padding: var(--space-4);
    }

    .app-status-card {
        padding: var(--space-6);
    }

    .app-status-card__icon {
        font-size: 4rem;
    }

    .app-status-card__title {
        font-size: 1.75rem;
    }

    .app-form-footer__buttons {
        flex-direction: column;
    }

    .app-form-footer__buttons .app-btn {
        width: 100%;
    }

    /* Phase 136: Mobile co-applicant adjustments */
    .noa-upload-section {
        padding: var(--space-3);
    }

    .noa-persons-selector {
        padding: var(--space-3);
    }

    .noa-persons-selector .app-select {
        max-width: 100%;
    }

    #incomeSummary {
        padding: var(--space-3);
        overflow-x: auto;
    }

    #incomeSummary th,
    #incomeSummary td {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-small);
    }

    .noa-verified-state {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* Co-Applicant Progress Cards (Phase 256) */
.coapp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 768px) {
    .coapp-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.coapp-card {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-4);
    background: var(--white);
    max-width: 100%;
    overflow: hidden;
}
.coapp-card--complete {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.03) 0%, var(--white) 100%);
}

.coapp-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}
.coapp-card__email {
    font-weight: 500;
    color: var(--grey-800);
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 4-step stepper */
.coapp-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: var(--space-3);
    max-width: 100%;
}
.coapp-step {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 0;
}
.coapp-step__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}
.coapp-step__icon--done {
    background: var(--success);
    color: white;
}
.coapp-step__icon--current {
    background: #f59e0b;
    color: white;
    animation: coapp-pulse 2s ease-in-out infinite;
}
.coapp-step__icon--pending {
    background: var(--grey-200);
    color: var(--grey-400);
}
.coapp-step__label {
    font-size: 0.7rem;
    color: var(--grey-500);
    margin-top: var(--space-1);
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    padding: 0 2px;
}
.coapp-step__label--current {
    color: #f59e0b;
    font-weight: 600;
}
.coapp-step__label--done {
    color: var(--success);
}

/* Connector line between steps */
.coapp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--grey-200);
    z-index: 0;
}
.coapp-step--done:not(:last-child)::after {
    background: var(--success);
}

/* Pulse animation for current step */
@keyframes coapp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

/* Card actions row */
.coapp-card__actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--grey-100);
}

/* Waiting note for not-started co-applicants */
.coapp-card__waiting {
    font-size: var(--text-small);
    color: var(--grey-500);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ============================================
   REVIEW STEP INLINE EDIT CONTROLS (Phase 518)
   ============================================ */

/* Edit button in section header */
.app-review-edit-btn {
    background: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-md);
    padding: 0.375rem 1rem;
    font-size: var(--text-small);
    color: var(--teal);
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
    transition: all var(--transition);
    display: inline-block;
}

.app-review-edit-btn:hover {
    background: var(--teal-light);
    border-color: var(--teal);
}

.app-review-edit-btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* View mode list styling */
.app-review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--grey-100);
    gap: 1rem;
}

.app-review-item:last-child {
    border-bottom: none;
}

.app-review-item dt {
    font-weight: 500;
    color: var(--grey-700);
    font-size: var(--text-body);
    flex-shrink: 0;
}

.app-review-item dd {
    color: var(--grey-600);
    font-size: var(--text-body);
    margin: 0;
    text-align: right;
    flex: 1;
}

/* Edit and View mode containers */
.app-review-view {
    display: block;
}

.app-review-edit {
    display: none;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--grey-100);
}

/* Actions row - Save/Cancel buttons */
.app-review-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--grey-100);
}

.app-review-actions .app-btn {
    flex-shrink: 0;
}

/* Status feedback text */
.app-review-status {
    font-size: var(--text-small);
    color: var(--success);
    margin-left: auto;
    font-weight: 500;
}

.app-review-status--error {
    color: #DC2626;
}

/* Locked identity card */
.app-review-locked {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.app-review-lock-icon {
    color: var(--grey-400);
    font-size: var(--text-small);
    margin-right: var(--space-1);
}

/* Derived field badges (Income/Assets Within Limits) */
.app-review-derived {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: var(--text-tiny);
    font-weight: 600;
    white-space: nowrap;
}

.app-review-derived--yes {
    background: var(--success-light);
    color: var(--success);
}

.app-review-derived--no {
    background: #FEE2E2;
    color: #991B1B;
}

/* Small button variant for review actions */
.app-btn--sm {
    padding: 0.375rem 1rem;
    font-size: var(--text-small);
    min-height: 40px;
}

.app-btn--outline {
    background: var(--white);
    border: 1px solid var(--grey-300);
    color: var(--grey-700);
    font-weight: 500;
}

.app-btn--outline:hover {
    background: var(--grey-50);
    border-color: var(--grey-400);
}

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

/* Responsive layout for address form row */
@media (max-width: 768px) {
    .app-form-row--address {
        grid-template-columns: 1fr;
    }

    .app-form-group--city,
    .app-form-group--province,
    .app-form-group--postal {
        grid-column: 1;
    }

    .app-review-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-review-item dd {
        text-align: left;
    }

    .app-review-edit-btn {
        margin-left: 0;
        margin-top: var(--space-2);
    }
}

/* Eligibility card styling in edit mode */
.eligibility-checked {
    border-color: var(--teal);
    background: var(--teal-light);
}

.app-declaration--clickable {
    cursor: pointer;
    transition: all var(--transition);
}

.app-declaration--clickable:hover {
    border-color: var(--teal);
}
