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

/* CSS Variables */
:root {
    /* Blue accent theme */
    --clr-accent: #007BFF;
    --clr-accent-10: rgba(0, 123, 255, 0.1);
    --clr-accent-20: rgba(0, 123, 255, 0.2);
    --clr-accent-40: rgba(0, 123, 255, 0.4);
    --clr-accent-70: rgba(0, 123, 255, 0.7);
    --clr-accent-contrast: #ffffff;
    --clr-accent-hover: #0056b3;
    --clr-accent-focus: #0056b3;

    /* Neutral palette */
    --clr-bg: #ffffff;
    --clr-text: #111213;
    --clr-muted: #6B7280;
    --clr-border: #E5E7EB;
    --clr-border-strong: #D1D5DB;
    --clr-track: #F1F5F9;

    /* Additional colors */
    --clr-success: #10B981;
    --clr-danger: #EF4444;
    --clr-warning: #F59E0B;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Inter', 'Montserrat', sans-serif;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-title: 32px;
    --font-size-subtitle: 18px;
    --line-height-base: 1.5;
    --line-height-tight: 1.25;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Border radius */
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 250ms ease;
}

/* Base Typography */
html {
    font-size: 16px;
}

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

/* Utility Classes */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.center {
    text-align: center;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    z-index: 100;
    padding: var(--spacing-md);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 20px;
    color: var(--clr-accent);
}

.header__logo svg {
    color: var(--clr-accent);
}

/* Logo image styling */
.header__logo-img {
    width: 180px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.header__logo-img:not([src]) {
    opacity: 0;
}

.header__logo-img[src] {
    opacity: 1;
}

.header__secure {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-small);
    color: var(--clr-muted);
}

.header__secure svg {
    color: var(--clr-accent);
}

/* Progress Bar */
.progress {
    max-width: 640px;
    width: 70%;
    margin: var(--spacing-lg) auto 0;
    height: 8px;
    background-color: var(--clr-track);
    border-radius: 4px;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    background-color: var(--clr-accent);
    border-radius: 4px;
    transition: width var(--transition-base);
    width: 10%;
}

/* Main Canvas - Tighter for above-the-fold CTA */
.canvas {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px var(--spacing-md) var(--spacing-md);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
}

/* Steps */
.step {
    display: block;
    animation: fadeIn var(--transition-base);
    margin: 0;
    padding: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step--hidden {
    display: none;
}

.step__content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto var(--spacing-md);
    position: relative;
}

.step__title {
    font-size: 26px;
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-sm);
    color: var(--clr-text);
}

.step__subtitle {
    font-size: 15px;
    color: var(--clr-muted);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-base);
}

/* =========================================
   URGENCY BANNER
   ========================================= */
.urgency-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: var(--spacing-md);
    font-size: 13px;
    font-weight: 500;
    color: #92400E;
    animation: urgencyPulse 3s ease-in-out infinite;
}

.urgency-banner svg {
    flex-shrink: 0;
    color: #D97706;
}

@keyframes urgencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}


/* =========================================
   FORM INPUTS - STACKED SINGLE COLUMN
   ========================================= */
.input-group {
    margin-bottom: 12px;
    text-align: left;
}

/* Hide labels — using placeholders instead for compact look */
.input-group label {
    display: none;
}

.input,
.select {
    width: 100%;
    padding: 14px var(--spacing-md);
    font-size: var(--font-size-body);
    font-family: var(--font-family);
    color: var(--clr-text);
    background-color: #F9FAFB;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius);
    outline: none;
    transition: all var(--transition-fast);
}

.input::placeholder {
    color: #9CA3AF;
    font-weight: 500;
}

.input:hover,
.select:hover {
    border-color: var(--clr-border-strong);
    background-color: #fff;
}

.input:focus,
.select:focus {
    border-color: var(--clr-accent);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--clr-accent-10);
}

.input.error,
.select.error {
    border-color: var(--clr-danger);
}

/* Remove all address-row side-by-side — everything stacks */
.address-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* =========================================
   TRUST BADGES
   ========================================= */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 16px 0 4px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
}

.trust-badge svg {
    color: var(--clr-success);
    flex-shrink: 0;
}


/* =========================================
   CTA BUTTON - HIGH IMPACT
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px var(--spacing-xl);
    font-size: var(--font-size-body);
    font-weight: 600;
    font-family: var(--font-family);
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    white-space: nowrap;
    min-height: 48px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    color: var(--clr-accent-contrast);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--clr-accent-hover) 0%, #003d82 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn--primary:disabled {
    background: var(--clr-border);
    color: var(--clr-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    animation: none;
}

.btn--cta {
    padding: 18px var(--spacing-xl);
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    letter-spacing: 0.3px;
    animation: ctaGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn--cta svg {
    transition: transform 0.2s ease;
}

.btn--cta:hover svg {
    transform: translateX(3px);
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 123, 255, 0.5), 0 0 40px rgba(0, 123, 255, 0.15); }
}

/* Shimmer effect on CTA */
.btn--cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    40% { left: 100%; }
    100% { left: 100%; }
}

.button-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: 12px;
}

.button-group .btn {
    flex: 1;
    max-width: none;
}


/* =========================================
   SOCIAL PROOF
   ========================================= */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--clr-muted);
}

.social-proof__dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-success);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}


/* =========================================
   LEGAL TEXT
   ========================================= */
.legal-text {
    font-size: 11px;
    line-height: 1.4;
    color: var(--clr-muted);
    text-align: left;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--clr-track);
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
}


/* =========================================
   THINKING / LOADING PAGE
   ========================================= */
.thinking-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
    padding: var(--spacing-xl) var(--spacing-md);
}

.thinking-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-xl);
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid var(--clr-border);
    border-top-color: var(--clr-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.spinner-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
}

.thinking-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--spacing-sm);
    transition: opacity 0.2s ease;
}

.thinking-subtitle {
    font-size: 16px;
    color: var(--clr-muted);
    margin-bottom: var(--spacing-lg);
    transition: opacity 0.2s ease;
}

/* Bouncing dots */
.thinking-dots {
    display: flex;
    gap: 6px;
    margin-bottom: var(--spacing-xl);
}

.thinking-dots .dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.thinking-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-10px); opacity: 1; }
}

.thinking-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--clr-muted);
}

.thinking-trust svg {
    color: var(--clr-success);
    flex-shrink: 0;
}


/* =========================================
   THANK YOU PAGE
   ========================================= */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.ty-canvas {
    max-width: 560px;
    padding-bottom: 100px;
}

/* Hero */
.ty-hero {
    text-align: center;
    margin-bottom: 24px;
}

.ty-badge {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: badgePop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.ty-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 8px;
    line-height: 1.2;
}

.ty-subtitle {
    font-size: 17px;
    color: var(--clr-muted);
    line-height: 1.5;
}

.ty-subtitle strong {
    color: var(--clr-text);
}

/* Check Card */
.check-card {
    background: linear-gradient(145deg, #FAFBFF 0%, #F0F4FF 100%);
    border: 2px solid #D4DEFF;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
}

.check-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 2px dashed #D4DEFF;
}

.check-card__logo {
    font-size: 14px;
    font-weight: 800;
    color: var(--clr-accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.check-card__stamp {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.check-card__body {
    padding: 20px;
}

.check-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.check-card__name {
    font-size: 26px;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 8px;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.check-card__amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--clr-accent);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.check-card__divider {
    height: 1px;
    background: #D4DEFF;
    margin-bottom: 16px;
}

.check-card__details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.check-card__detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.check-card__detail-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--clr-muted);
    font-weight: 600;
}

.check-card__detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-text);
}

.check-card__status {
    color: #D97706 !important;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Urgency Row — Timer + Agents */
.ty-urgency-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ty-timer-block {
    flex: 1;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}

.ty-timer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 6px;
}

.ty-timer-label svg {
    color: #D97706;
    flex-shrink: 0;
}

.ty-timer-countdown {
    font-size: 32px;
    font-weight: 800;
    color: #92400E;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.ty-timer--urgent {
    color: #DC2626 !important;
    animation: timerFlash 1s ease-in-out infinite;
}

@keyframes timerFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ty-agents-block {
    flex: 0 0 auto;
    min-width: 130px;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.ty-agents-dot {
    width: 10px;
    height: 10px;
    background-color: #10B981;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.ty-agents-text {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    line-height: 1.3;
}

.ty-agents-count {
    font-size: 22px;
    font-weight: 800;
    color: #15803D;
    display: block;
}

/* Call Now Button */
.ty-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 19px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    animation: callGlow 2s ease-in-out infinite;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.ty-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.ty-call-btn:active {
    transform: translateY(0);
}

@keyframes callGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.5), 0 0 50px rgba(16, 185, 129, 0.15); }
}

/* Shimmer on call button */
.ty-call-btn {
    position: relative;
    overflow: hidden;
}

.ty-call-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

.ty-call-btn--small {
    font-size: 17px;
    padding: 16px 20px;
    border-radius: 12px;
}

/* Social proof */
.ty-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--clr-muted);
    margin-bottom: 28px;
}

/* Social proof ticker */
.ty-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--clr-muted);
    margin-bottom: 8px;
    min-height: 20px;
    transition: opacity 0.3s ease;
}

.ty-ticker strong {
    color: var(--clr-text);
}

/* Geo-personalized stat */
.ty-geo-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--clr-accent);
    margin-bottom: 28px;
    font-weight: 500;
}

.ty-geo-proof svg {
    color: var(--clr-accent);
    flex-shrink: 0;
}

.ty-geo-proof strong {
    font-weight: 800;
}

/* What to expect */
.ty-expect {
    margin-bottom: 28px;
}

.ty-expect__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text);
    text-align: center;
    margin-bottom: 16px;
}

.ty-expect__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ty-expect__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
}

.ty-expect__icon {
    flex-shrink: 0;
    color: var(--clr-success);
    margin-top: 1px;
}

.ty-expect__item strong {
    display: block;
    font-size: 15px;
    color: var(--clr-text);
    margin-bottom: 2px;
}

.ty-expect__item p {
    font-size: 13px;
    color: var(--clr-muted);
    margin: 0;
    line-height: 1.4;
}

/* Final nudge */
.ty-final-nudge {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FDBA74;
    border-radius: 14px;
    margin-bottom: 24px;
}

.ty-final-nudge p {
    font-size: 16px;
    font-weight: 600;
    color: #9A3412;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ty-final-nudge .ty-call-btn--small {
    margin: 0 auto;
    width: auto;
    display: inline-flex;
}

/* Sticky call bar (mobile) */
.ty-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    padding: 10px 16px;
    border-top: 1px solid var(--clr-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ty-sticky-bar.visible {
    transform: translateY(0);
}

.ty-sticky-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

/* Thank you — mobile */
@media (max-width: 420px) {
    .ty-canvas {
        padding: 14px 14px 120px;
    }

    .ty-title {
        font-size: 24px;
    }

    .ty-subtitle {
        font-size: 15px;
    }

    .check-card__name {
        font-size: 22px;
    }

    .check-card__amount {
        font-size: 30px;
    }

    .check-card__details {
        flex-direction: column;
        gap: 8px;
    }

    .check-card__detail {
        flex-direction: row;
        justify-content: space-between;
    }

    .ty-call-btn {
        font-size: 17px;
        padding: 16px 20px;
    }

    .ty-call-btn--small {
        font-size: 15px;
        padding: 14px 18px;
    }

    .ty-urgency-row {
        flex-direction: column;
        gap: 8px;
    }

    .ty-agents-block {
        flex-direction: row;
        min-width: auto;
        padding: 10px 16px;
        gap: 10px;
    }

    .ty-agents-count {
        font-size: 18px;
        display: inline;
    }

    .ty-timer-countdown {
        font-size: 28px;
    }

    .ty-urgency {
        padding: 14px;
    }

    .ty-urgency__text strong {
        font-size: 14px;
    }

    .ty-urgency__text p {
        font-size: 13px;
    }
}


/* =========================================
   EXIT INTENT POPUP
   ========================================= */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.exit-popup {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.exit-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.exit-popup__close:hover {
    color: #333;
}

.exit-popup__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #D97706;
}

.exit-popup__title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.exit-popup__subtitle {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.exit-popup__text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 4px;
}

.exit-popup__note {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

@media (max-width: 420px) {
    .exit-popup {
        padding: 28px 20px;
        margin: 12px;
    }

    .exit-popup__title {
        font-size: 22px;
    }

    .exit-popup__subtitle {
        font-size: 15px;
    }
}


/* =========================================
   FOOTER
   ========================================= */
.disclaimer-footer {
    background-color: #F9FAFB;
    border-top: 1px solid var(--clr-border);
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: auto;
}

.disclaimer-footer__container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-footer h4 {
    font-size: var(--font-size-small);
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--spacing-sm);
}

.disclaimer-footer p {
    font-size: 12px;
    color: var(--clr-muted);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-md);
}

.disclaimer-links {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.disclaimer-links a {
    font-size: 12px;
    color: var(--clr-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.disclaimer-links a:hover {
    color: var(--clr-accent);
}


/* =========================================
   SECONDARY BUTTONS
   ========================================= */
.btn--secondary {
    background: var(--clr-bg);
    color: var(--clr-text);
    border-color: var(--clr-border-strong);
}

.btn--secondary:hover {
    background: var(--clr-track);
    border-color: var(--clr-text);
}

.btn--secondary:active {
    background: var(--clr-border);
}


/* =========================================
   INPUT VALIDATION STATES
   ========================================= */
.input.valid,
.select.valid {
    border-color: var(--clr-success);
}

.input.valid:focus,
.select.valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-msg {
    font-size: 13px;
    color: var(--clr-danger);
    margin-top: var(--spacing-xs);
    display: none;
}

.error-msg:not(:empty) {
    display: block;
}


/* =========================================
   EXISTING COMPONENT STYLES (kept for other pages)
   ========================================= */

/* Slider Container */
.slider-container {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
}

.slider-display {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.slider-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: -1px;
}

.slider-wrapper {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
}

.loan-slider, .income-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    cursor: pointer;
    position: relative;
}

.loan-slider::-webkit-slider-thumb, .income-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
}

.loan-slider::-webkit-slider-thumb:hover, .income-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.loan-slider::-moz-range-thumb, .income-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--clr-muted);
    margin-top: var(--spacing-md);
    font-weight: 500;
}

/* Quick Chips */
.quick-chips {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.chip {
    background: var(--clr-bg);
    border: 2px solid var(--clr-border);
    border-radius: 20px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--clr-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--clr-accent);
    background-color: var(--clr-accent-10);
    color: var(--clr-accent);
    transform: translateY(-1px);
}

.chip.active {
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Purpose Buttons */
.purpose-buttons {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.purpose-btn {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    font-family: inherit;
}

.purpose-btn:hover {
    border-color: var(--clr-accent);
    background-color: #F8FAFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.purpose-btn.selected {
    background: linear-gradient(135deg, var(--clr-accent) 0%, #0056b3 100%);
    border-color: var(--clr-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.purpose-btn span {
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
    width: 100%;
}

.purpose-btn.selected span {
    color: white;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.option {
    background: white;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option__content {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-text);
    text-align: center;
    transition: color var(--transition-fast);
}

.option:hover {
    border-color: var(--clr-accent);
    background-color: var(--clr-accent-10);
    transform: translateY(-1px);
}

.option input[type="radio"]:checked + .option__content {
    color: white;
}

.option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-md);
}

/* Security Callout */
.security-callout {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-small);
    color: var(--clr-muted);
    margin-top: var(--spacing-md);
    justify-content: center;
}

.security-callout svg {
    color: var(--clr-accent);
    flex-shrink: 0;
}


/* =========================================
   SPECIALIST POPUP MODAL
   ========================================= */
.specialist-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

.specialist-popup {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.specialist-popup__icon {
    width: 80px;
    height: 80px;
    background: var(--clr-accent-10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.specialist-popup__icon svg {
    color: var(--clr-accent);
}

.specialist-popup__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--spacing-sm);
}

.specialist-popup__subtitle {
    font-size: 18px;
    color: var(--clr-text);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.specialist-popup__note {
    font-size: 14px;
    color: var(--clr-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

.specialist-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.specialist-popup__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.specialist-popup__btn.btn--primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border-color: #10B981 !important;
}

.specialist-popup__btn.btn--primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.specialist-popup__btn.btn--secondary {
    background: white !important;
    border: 2px solid var(--clr-border) !important;
    color: var(--clr-muted) !important;
}

.specialist-popup__btn.btn--secondary:hover {
    background: var(--clr-track) !important;
    border-color: var(--clr-border-strong) !important;
    color: var(--clr-text) !important;
}


/* =========================================
   LENDER / OFFER CARD STYLES
   ========================================= */
.multiple-offers-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.multiple-offers-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.congratulations-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: var(--spacing-sm);
}

.offers-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: var(--spacing-xs);
}

.offers-note {
    font-size: 14px;
    color: var(--clr-muted);
    font-style: italic;
}

.offers-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 500px;
    margin: 0 auto;
}

.offers-grid .lender-offer-card {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}


/* =========================================
   RESPONSIVE — MOBILE FIRST
   ========================================= */
@media (max-width: 420px) {
    .header {
        padding: 10px 12px;
    }

    .header__logo-img {
        width: 130px;
        height: 42px;
    }

    .canvas {
        padding: 14px 14px 16px;
    }

    .step__content {
        margin: 0 auto 10px;
    }

    .step__title {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .urgency-banner {
        font-size: 12px;
        padding: 8px 12px;
        margin-bottom: 10px;
    }

    .input,
    .select {
        padding: 12px 14px;
        font-size: 15px;
    }

    .input-group {
        margin-bottom: 8px;
    }

    .trust-badges {
        gap: 12px;
        margin: 10px 0 4px;
    }

    .trust-badge {
        font-size: 11px;
    }

    .button-group {
        margin-top: 10px;
    }

    .btn--cta {
        padding: 15px var(--spacing-lg);
        font-size: 17px;
    }

    .social-proof {
        margin-top: 8px;
        font-size: 12px;
    }

    .legal-text {
        font-size: 10px;
        margin-top: 12px;
        padding: 10px;
        max-height: none;
        overflow-y: visible;
    }

    .disclaimer-footer {
        text-align: left;
    }

    .disclaimer-footer p {
        font-size: 10px;
        text-align: left;
    }

    .disclaimer-links {
        gap: var(--spacing-md);
        justify-content: center;
    }

    .disclaimer-links a {
        font-size: 11px;
    }

    /* Multiple offers mobile */
    .congratulations-title {
        font-size: 26px !important;
    }

    .offers-subtitle {
        font-size: 17px !important;
    }

    .offers-note {
        font-size: 12px !important;
    }

    .offers-grid {
        gap: var(--spacing-lg);
    }

    .offers-grid .lender-offer-card {
        padding: var(--spacing-md) !important;
    }

    .offers-grid .lender-title {
        font-size: 16px !important;
    }

    .offers-grid .lender-benefits li {
        font-size: 13px !important;
    }

    .offers-grid .lender-cta-button {
        font-size: 15px !important;
        padding: 12px 24px !important;
    }

    /* Popup mobile */
    .specialist-popup {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-md);
    }

    .specialist-popup__title {
        font-size: 20px;
    }

    .specialist-popup__subtitle {
        font-size: 16px;
    }

    .specialist-popup__icon {
        width: 64px;
        height: 64px;
    }

    .specialist-popup__icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Tablet (421-768px) */
@media (min-width: 421px) and (max-width: 768px) {
    .canvas {
        padding: 24px var(--spacing-md);
    }

    .congratulations-title {
        font-size: 28px;
    }

    .offers-subtitle {
        font-size: 18px;
    }
}

/* Large tablet (769-1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .canvas {
        padding: var(--spacing-xl) var(--spacing-xl);
        padding-top: 30px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Desktop (>1200px) */
@media (min-width: 1201px) {
    .canvas {
        max-width: 560px;
        padding: var(--spacing-xl);
        padding-top: 30px;
    }

    .step__content {
        max-width: 520px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Vertical layout overrides for purpose/credit buttons */
.purpose-buttons,
.credit-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

#step-2 .options-grid,
#step-4 .options-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}


/* =========================================
   FOCUS / ACCESSIBILITY
   ========================================= */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
}

.focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .progress {
        display: none;
    }

    .canvas {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .step {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --clr-border: #000000;
        --clr-text: #000000;
        --clr-bg: #ffffff;
        --clr-accent: #0000ff;
    }

    .option__content {
        border-width: 3px;
    }

    .input,
    .select {
        border-width: 3px;
    }
}