/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a; /* Improved contrast from #333 */
    background-color: #fff;
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cart Recovery Banner */
.cart-recovery {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

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

.cart-recovery p {
    margin: 0;
    font-weight: 500;
}

.link-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    height: 80px;
    width: auto;
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    min-height: 44px;
}

.phone-cta:hover {
    background: #059669;
    transform: translateY(-1px);
}

.phone-icon {
    font-size: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding-top: 20px;
}

.headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.city-name {
    color: #fbbf24;
    text-decoration: underline;
    text-decoration-color: #fbbf24;
}

.subhead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 500;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Value Props */
.value-props {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.prop {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.prop-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

/* Loss Aversion */
.loss-aversion {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    color: #333;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.form-header p {
    color: #4a5568; /* Improved contrast */
    margin-bottom: 24px;
}

/* Progress Bar */
.progress-bar {
    background: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    position: relative;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 3px;
    width: 20%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #4a5568; /* Improved contrast */
    font-weight: 500;
}

/* Form Styles */
.lead-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.form-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1f2937;
}

.step-desc {
    color: #4a5568; /* Improved contrast */
    margin-bottom: 24px;
    font-style: italic;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748; /* Improved contrast from #374151 */
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    min-height: 44px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.address-input {
    position: relative;
    z-index: 10;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Condition Groups */
.condition-group {
    margin-bottom: 32px;
}

.condition-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.radio-label:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.radio-input {
    margin-right: 8px;
    accent-color: #10b981;
}

.radio-input:checked + .radio-text {
    font-weight: 600;
}

.radio-label:has(.radio-input:checked) {
    border-color: #10b981;
    background: #f0fdf4;
}

.radio-text {
    font-size: 0.95rem;
}

/* File Input */
.file-input {
    padding: 8px 12px;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #4a5568; /* Improved contrast */
}

/* Checkbox */
.consent {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.checkbox-input {
    margin-top: 4px;
    accent-color: #10b981;
    min-width: 16px;
    min-height: 16px;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #4a5568; /* Improved contrast */
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 32px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

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

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

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

/* Social Proof Section */
.social-proof {
    background: #f9fafb;
    padding: 80px 0;
}

.social-proof h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1f2937;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #10b981;
    font-weight: bold;
    line-height: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #4b5563;
}

.testimonial-author strong {
    color: #1f2937;
    font-weight: 600;
}

.testimonial-author span {
    color: #4a5568; /* Improved contrast */
    font-size: 0.9rem;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: white;
}

.process h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1f2937;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.process-step {
    text-align: center;
    padding: 32px 24px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.process-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.process-step p {
    color: #4a5568; /* Improved contrast */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Comparison Table */
.comparison {
    background: #f9fafb;
    padding: 80px 0;
}

.comparison h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1f2937;
}

.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.comparison-header .comparison-col {
    padding: 24px;
    text-align: center;
    position: relative;
}

.comparison-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.comparison-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-feature {
    padding: 20px 24px;
    font-weight: 600;
    background: #f9fafb;
    color: #374151;
    display: flex;
    align-items: center;
}

.comparison-col {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
}

.comparison-col.us {
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}

.comparison-col.them {
    color: #dc2626;
}

/* Situations Section */
.situations {
    padding: 80px 0;
    background: white;
}

.situations h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1f2937;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.situation {
    text-align: center;
    padding: 32px 24px;
    background: #f9fafb;
    border-radius: 12px;
    transition: transform 0.2s;
}

.situation:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.situation-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.situation h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.situation p {
    color: #4a5568; /* Improved contrast */
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: #f9fafb;
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1f2937;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10b981;
    transition: transform 0.2s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-answer p {
    color: #4a5568; /* Improved contrast */
    line-height: 1.7;
    margin: 0;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-info p, .footer-contact p {
    margin-bottom: 8px;
    color: #d1d5db;
}

.footer-contact h4, .footer-legal h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-legal a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #10b981;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .form-container {
        padding: 24px;
    }
    
    .headline {
        font-size: 2.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .value-props {
        align-items: center;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comparison-feature {
        background: #e5e7eb;
        font-weight: 700;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .phone-cta {
        padding: 10px 16px;
    }
    
    .phone-cta .phone-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .headline {
        font-size: 1.875rem;
    }
    
    .subhead {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .cart-recovery {
        font-size: 0.9rem;
    }
    
    .cart-recovery .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Focus Styles for Accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .form-container {
        border: 2px solid #000;
    }
}

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

/* Print Styles */
@media print {
    .header,
    .cart-recovery,
    .form-container,
    .final-cta,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Loading States */
.form-step.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}