/* Base Styles & Variables */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #2563eb;
    --cta-orange: #ea580c;
    --cta-orange-hover: #c2410c;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --bg-white: #ffffff;
    --bg-slate: #f8fafc;
    --border-gray: #e2e8f0;
    --success-green: #16a34a;
    --font-main: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed header */
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-slate);
    -webkit-font-smoothing: antialiased;
}

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

img, svg {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

.required {
    color: var(--cta-orange);
    font-weight: bold;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--cta-orange);
    color: var(--bg-white);
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2), 0 2px 4px -1px rgba(234, 88, 12, 0.1);
}

.cta-button:hover {
    background-color: var(--cta-orange-hover);
    box-shadow: 0 6px 8px -1px rgba(234, 88, 12, 0.3);
}

.cta-button:active {
    transform: scale(0.98);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.secondary-button:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0;
}

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

.header-logo {
    height: 65px;
    width: auto;
}

.header-phone {
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    background-color: var(--bg-slate);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.subheadline {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero .cta-button {
    max-width: 320px;
    margin: 0 auto 2.5rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-blue);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-blue);
}


/* Social Proof */
.social-proof {
    background-color: var(--bg-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.savings-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.saving-card {
    background-color: var(--bg-slate);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-gray);
}

.saving-card p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.saving-card strong {
    color: var(--success-green);
}

.insurers-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.insurers-logos span {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.125rem;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s;
}

.insurers-logos span:hover {
    opacity: 1;
}

/* Form Section */
.form-section {
    padding: 4rem 0;
    background-color: var(--bg-slate);
}

.form-container {
    max-width: 600px;
    background-color: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    margin-bottom: 0.5rem;
}

.form-container > p {
    text-align: center;
    margin-bottom: 2rem;
}

.form-step {
    animation: fadeIn 0.4s ease-in-out;
}

.form-step:not(.active) {
    display: none;
}

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

.step-header {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    font-size: 0.875rem;
    color: var(--primary-blue-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.step-header h3 {
    margin: 0;
    color: var(--primary-blue);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.row-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500 !important;
    background-color: var(--bg-slate);
    transition: border-color 0.2s;
}

.radio-label:has(input:checked) {
    border-color: var(--primary-blue-light);
    background-color: rgba(37, 99, 235, 0.05);
}

.radio-label input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-blue);
}

.checkbox-group {
    margin-top: 1rem;
}

.gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 400 !important;
    color: var(--text-gray) !important;
}

.gdpr-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-blue);
}

.gdpr-label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.button-group {
    margin-top: 2rem;
}

.back-button {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
}

.back-button:hover {
    color: var(--text-dark);
}

.form-success {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    text-align: center;
}

.step-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-slate);
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary-blue-light);
}

/* USP Section */
.usp-section {
    padding: 4rem 0;
    background-color: var(--bg-slate);
}

.usp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.usp-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.usp-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.usp-icon svg {
    stroke: var(--primary-blue);
}

/* Cross-sell */
.cross-sell {
    padding: 4rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
}

.cross-sell-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cross-sell-card {
    background-color: var(--bg-slate);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cross-sell-card h4 {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

.footer h3 {
    color: var(--bg-white);
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-profile-pic {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    margin: 0;
    flex-shrink: 0;
}

.contact-details {
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background-color 0.2s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background-color 0.2s;
}

.brand-link:hover {
    background-color: rgba(255,255,255,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    z-index: 100;
    border-top: 2px solid var(--primary-blue);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.875rem;
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    width: auto;
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero .cta-button {
        font-size: 1.25rem;
    }

    .savings-cards {
        flex-direction: row;
    }
    
    .saving-card {
        flex: 1;
    }

    .form-container {
        padding: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usp-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .cross-sell-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
    }
    
    .footer-info {
        flex-direction: row;
        text-align: left;
    }

    .contact-details p {
        justify-content: flex-start;
    }
    
    .footer-links {
        align-items: flex-end;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .usp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .usp-item:last-child {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
}
