/* CSS Variables */
:root {
    --state-farm-red: #E22629;
    --state-farm-red-dark: #C41E21;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #888888;
    --price-green: #2E8B57;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #dddddd;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--state-farm-red);
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px 40px;
    background-color: var(--white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--state-farm-red);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto;
}

/* ZIP Code Card Section */
.zip-card-section {
    padding: 0 20px 60px;
}

.zip-card {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 0;
    overflow: hidden;
}

.zip-card-header {
    background-color: var(--state-farm-red);
    color: var(--white);
    padding: 20px 30px;
    text-align: center;
}

.zip-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
}

.zip-card-body {
    background-color: var(--white);
    padding: 30px;
    border: 3px solid var(--state-farm-red);
    border-top: none;
}

.zip-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.zip-form label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.zip-form input[type="text"] {
    width: 200px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 0;
    margin-bottom: 20px;
}

.zip-form input[type="text"]:focus {
    outline: none;
    border-color: var(--state-farm-red);
}

.rate-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.rate-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--price-green);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--state-farm-red);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--state-farm-red-dark);
}

.external-icon {
    width: 16px;
    height: 16px;
}

/* Second CTA Section */
.cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--white);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--state-farm-red);
    margin-bottom: 40px;
}

.cta-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.cta-form input[type="text"] {
    width: 200px;
    padding: 16px 20px;
    font-size: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 0;
    color: var(--text-light);
}

.cta-form input[type="text"]:focus {
    outline: none;
    border-color: var(--state-farm-red);
    color: var(--text-dark);
}

.cta-form input[type="text"]::placeholder {
    color: var(--text-light);
}

.btn-quote {
    background-color: var(--state-farm-red);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.2s;
}

.btn-quote:hover {
    background-color: var(--state-farm-red-dark);
}

/* Testimonials Section */
.testimonials {
    padding: 40px 20px 60px;
    background-color: var(--white);
}

.testimonial {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-gray);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.testimonial-text strong {
    font-weight: 600;
}

/* Discounts Section */
.discounts {
    padding: 60px 20px 80px;
    background-color: var(--white);
}

.discounts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--state-farm-red);
    text-align: center;
    margin-bottom: 40px;
}

.discounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.discount-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.discount-item h3 sup {
    font-size: 0.7rem;
}

.discount-item p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.discount-item a {
    color: var(--state-farm-red);
    text-decoration: underline;
}

.discount-item a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .zip-card-header h2 {
        font-size: 1.1rem;
    }

    .zip-card-body {
        padding: 24px 20px;
    }

    .zip-card-body h3 {
        font-size: 1.1rem;
    }

    .zip-form input[type="text"] {
        width: 100%;
    }

    .btn-primary {
        width: 100%;
    }

    .cta-title {
        font-size: 1.25rem;
    }

    .cta-form {
        flex-direction: column;
        gap: 16px;
    }

    .cta-form input[type="text"] {
        width: 100%;
        max-width: 300px;
    }

    .btn-quote {
        width: 100%;
        max-width: 300px;
    }

    .testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .discounts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .discount-item {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 16px;
    }

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

    .zip-card-section {
        padding: 0 16px 40px;
    }

    .cta-section {
        padding: 40px 16px;
    }

    .testimonials {
        padding: 30px 16px 40px;
    }

    .discounts {
        padding: 40px 16px 60px;
    }
}
