@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #001e62; /* Deep Navy */
    --accent: #2563eb; /* Corporate Blue */
    --cta: #c1d82f; /* Direct Line Lime Green */
    --cta-hover: #b0c72a;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --text: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --success: #10b981;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #001e62 0%, #0047e1 100%);
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Logo Slider (Marquee) */
.trust-slider-container {
    background: #ffffff;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.trust-slider-container::before,
.trust-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.trust-slider-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.trust-slider-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.logo-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 30s linear infinite;
    align-items: center;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

.logo-item {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    padding: 0 1rem;
}

/* Brand Colors */
.logo-hiscox { color: #cc0000; }
.logo-directline { color: #ff0000; font-style: italic; }
.logo-axa { color: #00008f; }
.logo-zurich { color: #2167ad; }
.logo-aviva { color: #fff100; text-shadow: 1px 1px 0 #000; }
.logo-simply { color: #4b32c3; }

/* Funnel Section */
.funnel-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.card {
    background: var(--bg-white);
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.step-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--bg-light);
}

.step-item {
    padding-bottom: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
}

.step-item.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Form Controls */
label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

select, input {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.2s;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Primary CTA */
.btn-cta {
    display: block;
    width: 100%;
    background: var(--cta);
    color: #111827;
    padding: 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-cta:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 216, 47, 0.4);
}

/* Photo Highlight */
.photo-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.photo-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.main-image {
    border-radius: 1.5rem;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Footer & Legal */
.footer {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--bg-light);
    font-size: 0.875rem;
}

.legal-text {
    opacity: 0.7;
    max-width: 800px;
    margin: 2rem auto 0;
    line-height: 1.4;
    text-align: center;
}

/* Comparison Grid & Results */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.offer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.offer-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.02);
}

.ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 2px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

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

.rating {
    color: #f6ad55;
    font-size: 0.8rem;
    font-weight: 700;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-box {
    margin-bottom: 1.5rem;
}

.price-box .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.price-box .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price-box .price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-small {
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .offer-card.popular {
        transform: scale(1);
    }
}
