/**
 * Justice Lander Pro - Main Stylesheet
 * High-converting legal lead generation landing pages
 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* SVG sizing - prevent unexpected scaling */
svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

:root {
    --primary: #1a365d;
    --primary-dark: #0f2442;
    --accent: #c53030;
    --accent-hover: #9b2c2c;
    --success: #276749;
    --success-light: #38a169;
    --warning: #c05621;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   SOCIAL PROOF TOAST - Compelling Design
   ======================================== */
.social-proof-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

@media (min-width: 481px) {
    .social-proof-toast {
        right: auto;
        left: 1.5rem;
        bottom: 1.5rem;
    }
}

.social-proof-toast.show {
    transform: translateX(0);
}

.proof-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: proof-pulse 2s ease-in-out infinite;
}

@keyframes proof-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6); }
}

.proof-icon svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    color: white;
}

.social-proof-toast .content {
    flex: 1;
    min-width: 0;
}

.social-proof-toast .name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    letter-spacing: -0.01em;
}

.social-proof-toast .action {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.35;
    font-weight: 500;
}

.social-proof-toast .time {
    font-size: 0.8125rem;
    color: #10b981;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Hide desktop hero-content - mobile-first single column layout */
.hero-content {
    display: none;
}

/* Mobile-first header - shown on ALL devices */
.mobile-form-header {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
}

.mobile-headline {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.625rem 0;
    line-height: 1.15;
    word-wrap: break-word;
    letter-spacing: -0.02em;
}

.mobile-headline .highlight {
    color: #fbd38d;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.mobile-subheadline {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.95);
    margin: 0 0 0.75rem 0;
    line-height: 1.45;
    font-weight: 500;
}

/* Above the fold content callout */
.above-fold-callout {
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-top: 0.875rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.above-fold-callout p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.5;
}

.above-fold-callout strong {
    color: #fbd38d;
}

/* ========================================
   DESKTOP STYLES (769px and up)
   ======================================== */
@media (min-width: 769px) {
    /* Hero fills viewport and centers content */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    /* Centered container */
    .hero-container {
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Clean form card */
    .form-card {
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    
    /* Viewer bar */
    .live-viewer-bar {
        padding: 0.5rem 1rem;
    }
    
    /* Header section */
    .mobile-form-header {
        padding: 1.5rem 2rem 1.25rem;
    }
    
    .mobile-headline {
        font-size: 1.875rem;
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }
    
    .mobile-subheadline {
        font-size: 0.9375rem;
        max-width: 480px;
        margin: 0 auto 0.5rem;
        line-height: 1.45;
    }
    
    .mobile-trust-badges {
        margin-top: 0.75rem;
        gap: 0.5rem 1.25rem;
    }
    
    .trust-badge {
        font-size: 0.8125rem;
    }
    
    .trust-badge svg {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        max-width: 14px !important;
    }
    
    .above-fold-callout {
        max-width: 440px;
        margin: 0.75rem auto 0;
        padding: 0.625rem 1rem;
    }
    
    .above-fold-callout p {
        font-size: 0.8125rem;
    }
    
    /* Form body */
    .form-body {
        padding: 1.5rem 2rem 1.25rem;
    }
    
    .progress-bar {
        margin-bottom: 1rem;
    }
    
    .step-title {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }
    
    /* Option buttons - full width, stacked */
    .option-grid {
        flex-direction: column;
        gap: 0.625rem;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .option-btn {
        width: 100%;
        padding: 1rem 1.25rem;
        min-height: 64px;
        border-radius: 0.75rem;
    }
    
    .option-emoji {
        font-size: 1.75rem;
    }
    
    .option-text strong {
        font-size: 1.0625rem;
    }
    
    .option-text span {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .form-footer {
        padding: 0.625rem 1.5rem;
    }
    
    .form-footer-text {
        font-size: 0.75rem;
    }
}

/* ========================================
   LARGE DESKTOP (1024px and up)
   ======================================== */
@media (min-width: 1024px) {
    .hero-container {
        max-width: 700px;
    }
    
    .form-card {
        border-radius: 1.25rem;
    }
    
    .mobile-form-header {
        padding: 1.75rem 2.5rem 1.5rem;
    }
    
    .mobile-headline {
        font-size: 2rem;
    }
    
    .mobile-subheadline {
        font-size: 1rem;
        max-width: 520px;
    }
    
    .above-fold-callout {
        max-width: 480px;
    }
    
    .above-fold-callout p {
        font-size: 0.875rem;
    }
    
    .form-body {
        padding: 1.75rem 2.5rem 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .option-grid {
        max-width: 520px;
        gap: 0.75rem;
    }
    
    .option-btn {
        padding: 1.125rem 1.5rem;
        min-height: 70px;
    }
    
    .option-emoji {
        font-size: 1.875rem;
    }
    
    .option-text strong {
        font-size: 1.125rem;
    }
    
    .form-footer {
        padding: 0.75rem 2rem;
    }
}

/* ========================================
   EXTRA LARGE DESKTOP (1280px and up)
   ======================================== */
@media (min-width: 1280px) {
    .hero-container {
        max-width: 740px;
    }
    
    .mobile-headline {
        font-size: 2.125rem;
    }
    
    .option-grid {
        max-width: 560px;
    }
}

/* Inline trust badges with icons */
.mobile-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 0.625rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    color: #68d391;
    flex-shrink: 0;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #c53030;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    animation: urgency-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(197, 48, 48, 0.7);
}

@keyframes urgency-pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 rgba(197, 48, 48, 0.7);
    }
    50% { 
        opacity: 0.9; 
        box-shadow: 0 0 0 8px rgba(197, 48, 48, 0);
    }
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-title .highlight {
    color: #fbd38d;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
}

.hero-trust-item svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    flex-shrink: 0;
    color: #68d391;
}

@media (max-width: 968px) {
    .hero-trust-row {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-trust-item {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .hero-trust-item svg {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px;
        max-width: 14px;
    }
}

.stats-row {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fbd38d;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FORM CARD - Shadowbox Design
   ======================================== */
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Live Viewer Bar - Full Width Top - Always visible */
.live-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #c53030;
    color: white;
    width: 100%;
    position: relative;
    z-index: 9999;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.15);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
}

.live-text {
    font-size: 0.9375rem;
    color: white;
    font-weight: 500;
}

.live-text strong {
    font-weight: 700;
    font-size: 1rem;
}

/* Hide duplicate form-header - using mobile-form-header for all */
.form-header {
    display: none;
}

.form-header-title,
.form-header-subtitle {
    display: none;
}

.form-body {
    padding: 1.75rem 2rem 1.5rem;
}

.progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.progress-step.active {
    background: var(--primary);
}

.progress-step.completed {
    background: var(--success);
}

.form-step {
    display: none !important;
}

.form-step.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.25;
}

.option-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.125rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    min-height: 72px;
    font-family: inherit;
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(26, 54, 93, 0.12);
}

.option-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.04) 0%, rgba(26, 54, 93, 0.07) 100%);
    box-shadow: 0 4px 12px -2px rgba(26, 54, 93, 0.15);
}

.option-emoji {
    font-size: 2.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.option-text {
    flex: 1;
    min-width: 0;
}

.option-text strong {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1875rem;
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.option-text span {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.35;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input.error {
    border-color: var(--accent);
}

.error-message {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 48, 48, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-medium);
    margin-top: 0.5rem;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
}

.form-footer {
    text-align: center;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.form-footer-text {
    font-size: 0.8125rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-weight: 600;
    margin: 0;
}

.form-footer-text svg,
.form-footer-text .padlock-icon {
    width: 1rem;
    height: 1rem;
    color: var(--success);
    flex-shrink: 0;
}

/* ========================================
   CONSENT CHECKBOX
   ======================================== */
.consent-box {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.consent-box p {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

.consent-box a {
    color: var(--primary);
    text-decoration: none;
}

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

/* ========================================
   ADVERTORIAL SECTION
   ======================================== */
.advertorial {
    padding: 2.5rem 1.5rem 4rem;
    background: var(--bg-white);
    overflow-x: hidden;
    max-width: 100vw;
    margin-top: 0;
}

.advertorial-container {
    max-width: 800px;
    margin: 0 auto;
}

.advertorial-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.advertorial h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.advertorial p {
    font-size: 1.0625rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.advertorial-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    margin: 1.25rem 0;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-md);
}

/* Desktop: smaller image */
@media (min-width: 768px) {
    .advertorial-image {
        max-height: 200px;
        margin: 1rem 0;
    }
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--warning);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
}

.checklist {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #bbf7d0;
}

.checklist li {
    padding: 0.875rem 0;
    font-size: 1.0625rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checklist li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checklist li:first-child {
    padding-top: 0;
}

/* Qualify Section */
.qualify-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.qualify-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    color: var(--primary-dark);
}

.qualify-section .checklist {
    margin-bottom: 0;
}

.qualify-section .checklist li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    max-width: 300px;
    margin: 0 auto;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.testimonial blockquote {
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.testimonial-location {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 2rem;
    overflow-x: hidden;
    max-width: 100vw;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.disclaimer {
    font-size: 0.75rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.lightbox-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
}

.lightbox-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.lightbox-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-medium);
    transition: color 0.2s ease;
}

.lightbox-close svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
}

.lightbox-close:hover {
    color: var(--text-dark);
}

.lightbox-body {
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.lightbox-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.lightbox-body h4:first-child {
    margin-top: 0;
}

.lightbox-body p {
    margin-bottom: 1rem;
}

.lightbox-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.lightbox-body li {
    margin-bottom: 0.5rem;
}

/* ========================================
   THANK YOU STATE
   ======================================== */
.thank-you {
    text-align: center;
    padding: 2rem 1rem;
}

.thank-you-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.thank-you-icon svg {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    color: white;
}

.thank-you h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.thank-you p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}


/* ========================================
   LOADING STATE
   ======================================== */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   RESPONSIVE - TABLET PORTRAIT (768px)
   ======================================== */
@media (min-width: 768px) and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }
    
    .hero-container {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }
    
    .form-card {
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18);
    }
    
    .mobile-form-header {
        padding: 1.25rem 1.5rem 1rem;
    }
    
    .mobile-headline {
        font-size: 1.5rem;
    }
    
    .mobile-subheadline {
        font-size: 0.875rem;
    }
    
    .above-fold-callout {
        max-width: 400px;
        margin: 0.625rem auto 0;
        padding: 0.5rem 0.875rem;
    }
    
    .above-fold-callout p {
        font-size: 0.8125rem;
    }
    
    .form-body {
        padding: 1.25rem 1.5rem 1rem;
    }
    
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .option-grid {
        max-width: 400px;
        margin: 0 auto;
        gap: 0.5rem;
    }
    
    .option-btn {
        padding: 0.875rem 1rem;
        min-height: 58px;
    }
    
    .option-emoji {
        font-size: 1.5rem;
    }
    
    .option-text strong {
        font-size: 0.9375rem;
    }
    
    .option-text span {
        font-size: 0.8125rem;
    }
    
    .form-footer {
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (up to 767px)
   ======================================== */
@media (max-width: 767px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .hero {
        padding: 0;
        align-items: flex-start;
    }
    
    .hero-container {
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    .form-card {
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .live-viewer-bar {
        width: 100%;
        left: 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
    
    .mobile-form-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .mobile-headline {
        font-size: 1.75rem;
        margin-bottom: 0.625rem;
        line-height: 1.15;
    }
    
    .mobile-trust-badges {
        gap: 0.5rem 1rem;
        margin-top: 0.75rem;
    }
    
    .trust-badge {
        font-size: 0.875rem;
    }
    
    .form-body {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 1.25rem;
    }
    
    .form-step.active {
        display: flex !important;
        flex-direction: column;
    }
    
    .step-title {
        font-size: 1.5rem;
        margin-bottom: 1.125rem;
    }
    
    .option-grid {
        justify-content: flex-start;
        gap: 0.875rem;
    }
    
    .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .form-footer {
        padding: 0.75rem 1rem;
        margin-top: 0.5rem;
    }
    
    .form-footer-text {
        font-size: 0.8125rem;
    }

    .social-proof-toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
        padding: 0.875rem 1rem;
    }
}

/* ========================================
   RESPONSIVE - SMALL PHONES (up to 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero {
        padding: 0;
    }
    
    .mobile-form-header {
        padding: 1.25rem 1rem 1rem;
    }
    
    .mobile-headline {
        font-size: 1.5rem;
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }
    
    .mobile-subheadline {
        font-size: 0.9375rem;
    }
    
    .mobile-trust-badges {
        gap: 0.375rem 0.75rem;
        margin-top: 0.625rem;
    }
    
    .trust-badge {
        font-size: 0.8125rem;
    }
    
    .trust-badge svg {
        width: 14px;
        height: 14px;
        min-width: 14px;
    }
    
    .above-fold-callout {
        padding: 0.75rem 0.875rem;
        margin-top: 0.75rem;
    }
    
    .above-fold-callout p {
        font-size: 0.875rem;
    }
    
    .live-viewer-bar {
        padding: 0.5rem 0.875rem;
    }
    
    .live-text {
        font-size: 0.8125rem;
    }
    
    .live-text strong {
        font-size: 0.875rem;
    }
    
    .form-body {
        padding: 1.25rem 1rem;
    }
    
    .progress-bar {
        margin-bottom: 0.875rem;
    }
    
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .option-grid {
        gap: 0.75rem;
    }
    
    .option-btn {
        padding: 1rem;
        min-height: 68px;
        width: 100%;
    }
    
    .option-emoji {
        font-size: 2rem;
    }
    
    .option-text strong {
        font-size: 1.0625rem;
    }
    
    .option-text span {
        font-size: 0.875rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .btn-secondary {
        padding: 0.625rem;
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
    
    .form-footer {
        padding: 0.625rem 1rem;
        margin-top: 0.5rem;
    }
    
    .form-footer-text {
        font-size: 0.8125rem;
    }

    .advertorial {
        padding: 1.5rem 1rem;
    }
    
    .advertorial-container {
        padding: 0;
    }
    
    .advertorial h2 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .advertorial p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }
    
    .advertorial-image {
        margin: 1rem 0;
        border-radius: 0.5rem;
        max-height: 180px;
        object-fit: cover;
    }
    
    .checklist {
        margin: 1rem 0;
    }
    
    .checklist li {
        font-size: 0.9375rem;
        padding: 0.5rem 0;
    }
    
    .cta-box {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .cta-box h3 {
        font-size: 1.125rem;
    }
    
    .cta-box p {
        font-size: 0.9375rem;
    }

    .footer {
        padding: 1.5rem 0.75rem 1.25rem;
    }

    .footer-links {
        gap: 0.875rem;
    }
}

/* ========================================
   DID PHONE CALL CTA
   ======================================== */
.did-call-cta {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--success);
    text-align: center;
}

.did-intro {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.did-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--success) 0%, #166534 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(22, 101, 52, 0.4);
    transition: all 0.3s ease;
    animation: did-pulse 2s ease-in-out infinite;
}


.did-trust-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    margin-top: 0.75rem;
}

.next-steps-title {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0;
}

.next-steps-subtitle {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

@keyframes did-pulse {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(56, 161, 105, 0.4);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 0 10px rgba(56, 161, 105, 0);
    }
}

.did-call-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.did-call-btn:active {
    transform: scale(0.98);
}

.did-icon {
    font-size: 1.5rem;
    animation: did-ring 1s ease-in-out infinite;
}

@keyframes did-ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

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

.did-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.did-subtext {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.75rem;
}

.thank-you-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.thank-you-divider::before,
.thank-you-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Mobile adjustments for DID */
@media (max-width: 640px) {
    .did-call-btn {
        width: 100%;
        justify-content: center;
        padding: 1.25rem;
    }
    
    .did-text {
        align-items: center;
    }
    
    .did-number {
        font-size: 1.125rem;
    }
}

/* ========================================
   ADVERTORIAL TRUST ROW
   ======================================== */
.adv-trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.adv-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.adv-trust-item svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    max-width: 14px;
    flex-shrink: 0;
    color: #059669;
}

@media (max-width: 640px) {
    .adv-trust-row {
        gap: 1rem;
    }
    
    .adv-trust-item {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .adv-trust-item svg {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px;
        max-width: 12px;
    }
}
