/* ============================================
   Consumer Hardship Services - Landing Page
   Mobile-first, high-converting design
   ============================================ */

/* CSS Variables - Design System */
:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2a4a73;
    --secondary: #9b2335;
    --secondary-dark: #7a1c2a;
    --secondary-light: #b52d40;
    --silver: #c0c7cf;
    --silver-light: #e8eaed;
    --background: #f4f6f8;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --accent-success: #22c55e;
    --accent-success-light: #dcfce7;
    --accent-warning: #f59e0b;
    --accent-warning-light: #fef3c7;
    --border: #d1d5db;
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header with Logo
   ============================================ */
.header {
    background: #1a3454;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border-bottom: none;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 64px; /* Significantly reduced from 140px for a cleaner look */
    width: auto;
    object-fit: contain;
    /* Removed drop-shadow for a sharper, cleaner look on white */
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.header-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Mobile Tweaks */
@media (max-width: 480px) {
    .header-tagline {
        display: none; /* Hide tagline on very small screens to save space */
    }
    
    .logo {
        height: 48px;
    }
    
    .header-cta {
        font-size: 0.875rem;
        padding: 6px 10px;
    }
}

/* Compact header for quiz/results override */
.header-compact {
    background: #1a3454;
    padding: 12px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.header-compact .brand-name {
    color: white;
}

@media (min-width: 768px) {
    .header {
        padding: 16px 0;
    }

    .logo {
        height: 72px;
    }

    .header-actions {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
    
    .header-tagline {
        margin-bottom: 0;
        font-size: 0.875rem;
    }

    .header-cta {
        font-size: 1.125rem;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .header-cta:hover {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.trust-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(30, 58, 95, 0.15);
}

.badge svg {
    color: var(--secondary);
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg), 0 4px 14px rgba(155, 35, 53, 0.4);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 6px 20px rgba(155, 35, 53, 0.5);
}

.cta-button.primary:active {
    transform: translateY(0);
}

.hero-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 16px;
}

/* ============================================
   Quiz Section
   ============================================ */
.quiz {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

.quiz > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 100px;
}

.quiz .container {
    width: 100%;
}

.quiz-header {
    margin-bottom: 32px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 100px;
    transition: width var(--transition-base);
}

.quiz-header {
    background: var(--surface);
    margin: 0 -20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.quiz-body {
    position: relative;
}

.quiz-step {
    display: none;
    animation: slideIn var(--transition-base) ease-out;
}

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

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

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

/* Option Cards - Grid Layout (2 options) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.options-grid.four-options {
    grid-template-columns: repeat(2, 1fr);
}

/* Option Cards - List Layout (5 options) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.option-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(30, 58, 95, 0.05);
}

.option-card.list-option {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 24px;
}

.option-card.list-option .option-text {
    font-size: 1rem;
}

.option-card.high-value {
    position: relative;
}

.option-icon {
    color: var(--primary);
}

.option-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.option-arrow {
    color: var(--text-light);
    transition: transform var(--transition-fast);
}

.option-card:hover .option-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ============================================
   Results Section
   ============================================ */
.results {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

.results > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 120px;
}

.result-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp var(--transition-slow) ease-out;
}

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

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.qualified-icon {
    background: rgba(155, 35, 53, 0.1);
    color: var(--secondary);
}

.partial-icon {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
}

.result-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.result-card.qualified .result-title {
    color: var(--secondary);
}

.result-card.partial .result-title {
    color: var(--text);
}

.result-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.result-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(30, 58, 95, 0.06);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    border-left: 3px solid var(--secondary);
}

.benefit svg {
    flex-shrink: 0;
    color: var(--secondary);
}

.call-section {
    margin-top: 24px;
}

.call-prompt {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.call-button:not(.secondary) {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg), 0 4px 14px rgba(155, 35, 53, 0.4);
}

.call-button:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 6px 20px rgba(155, 35, 53, 0.5);
}

.call-button.secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg), 0 4px 14px rgba(30, 58, 95, 0.3);
}

.call-button.secondary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
}

.call-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 4px 14px rgba(155, 35, 53, 0.4);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 6px 30px rgba(155, 35, 53, 0.6);
    }
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.call-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.call-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.call-number {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.availability {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   Sticky Call Button
   ============================================ */
.sticky-call {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px 24px;
    background: linear-gradient(180deg, transparent 0%, var(--surface) 30%);
    z-index: 100;
}

.sticky-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg), 0 4px 14px rgba(155, 35, 53, 0.4);
    animation: pulse 2s infinite;
}

.sticky-call-button:hover {
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px 0;
    background: var(--primary-dark);
    text-align: center;
}

.footer .brand {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--silver-light);
    margin-bottom: 8px;
}

.footer .disclaimer-placeholder {
    font-size: 0.75rem;
    color: var(--silver);
    line-height: 1.6;
    opacity: 0.8;
}

/* ============================================
   Desktop Enhancements (768px+)
   ============================================ */
@media (min-width: 768px) {
    .container {
        max-width: 560px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .options-grid.four-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .option-card {
        padding: 32px 24px;
    }

    .result-card {
        padding: 48px 40px;
    }

    .sticky-call {
        padding: 16px 24px 32px;
    }
}

/* ============================================
   Large Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .container {
        max-width: 600px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .cta-button {
        padding: 20px 40px;
        font-size: 1.25rem;
    }

    .option-card:hover {
        transform: translateY(-2px);
    }
}

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