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

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.65;
    color: #343a40;
    background-color: #f8f9fa; /* Light overall background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 70px; /* Height of the fixed header */
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    color: #212529;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1.1em;
}

/* --- Header --- */
.site-header {
    background-color: #ffffff;
    padding: 0.8rem 0;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Above nav overlay */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.logo-link img.site-logo {
    height: 40px;
    width: auto;
    /* For actual image, remove background/padding if not needed */
    background-color: #e9ecef; /* Placeholder background if image fails or is generic */
    padding: 5px;
    border-radius: 3px;
}


/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #343a40;
    padding: 0.5rem;
    line-height: 1;
    z-index: 1005; /* Highest z-index for toggle button */
}

.main-nav {
    display: none; /* Controlled by JS */
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 85%;
    max-width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1003; /* Above overlay, below toggle if it needs to be part of nav */
    overflow-y: auto;
    padding-top: 60px; /* Space for close button */
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    transition: left 0.3s ease-in-out;
}

.main-nav.active {
    display: block;
    left: 0;
}

.main-nav ul {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.main-nav li {
    margin: 0; /* Remove default margins */
    border-bottom: 1px solid #f0f0f0;
}
.main-nav li:last-child {
    border-bottom: none;
}

.main-nav a {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.9rem 0.5rem; /* Adjusted padding */
    display: block;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0056b3;
    background-color: #f8f9fa;
}

.nav-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: #565656;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-overlay { /* Added this for background dimming */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1002; /* Below nav, above content */
}
.nav-overlay.active {
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 86, 179, 0.88), rgba(0, 53, 107, 0.9)), url('https://fastautoquote.site/images/hero-insurance-car-road.jpg') no-repeat center center/cover;
    background-color: #0056b3;
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
    position: relative; /* For potential pseudo-elements if needed */
}
.hero-section::before { /* Subtle pattern overlay - optional */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background-image: url('images/subtle-pattern.png'); */
    opacity: 0.05;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.7rem;
    margin-bottom: 0.6em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section .hero-subheadline {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2em auto;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: #28a745; /* Vibrant Green */
    color: #ffffff !important;
    padding: 0.9em 2.2em;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #218838; /* Darker Green */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.cta-button.secondary {
    background-color: #ffc107; /* Bright Yellow */
    color: #212529 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}
.cta-button.secondary:hover {
    background-color: #e0a800; /* Darker Yellow */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

/* --- Main Content & Sections --- */
.main-content {
    flex: 1;
    padding: 3rem 0 4rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 2.6rem;
    color: #0056b3;
    position: relative;
    display: inline-block; /* For underline effect */
    padding-bottom: 0.5rem;
}
.page-header h1::after { /* Underline effect for title */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}
.page-header .subheadline {
    font-size: 1.1rem;
    color: #5a6268;
    max-width: 650px;
    margin: 0.8rem auto 0 auto;
}

.content-section {
    padding: 2.2rem;
    margin-bottom: 2.8rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.content-section h2 {
    color: #007bff;
    margin-top: 0;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.7rem;
}
.content-section ul:not(.footer-links-group ul):not(.main-nav ul) {
    list-style: none;
    padding-left: 0;
}
.content-section ul:not(.footer-links-group ul):not(.main-nav ul) li {
    padding-left: 1.8em; /* More space for icon */
    position: relative;
    margin-bottom: 0.7em;
    line-height: 1.7;
}
.content-section ul:not(.footer-links-group ul):not(.main-nav ul) li::before {
    color: #28a745;
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: bold;
    font-size: 1.1em;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); /* Ensure responsive fit */
    gap: 2rem;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.1);
}
.blog-card .card-image-placeholder {
    width: 100%;
    height: 190px;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8f9fa;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}
.blog-card .card-content {
    padding: 1.3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card .card-content h3 {
    font-size: 1.2rem; /* Slightly smaller for cards */
    margin-top: 0;
    margin-bottom: 0.5em;
}
.blog-card .card-content h3 a {
    color: #343a40;
    line-height: 1.3;
}
.blog-card .card-content h3 a:hover { color: #007bff; }
.blog-card .card-excerpt {
    font-size: 0.9rem;
    color: #495057;
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.55;
}
.blog-card .read-more-btn {
    color: #007bff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: flex-start;
    padding: 0.4em 0;
}
.blog-card .read-more-btn:hover { text-decoration: underline; }

/* --- Single Blog Post --- */
.blog-post-full .featured-image-placeholder {
    width: 100%;
    height: 320px;
    background-color: #5a6268;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}
.blog-post-full .post-meta {
    font-size: 0.88rem;
    color: #5a6268;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}
.blog-post-full .article-body h2 { font-size: 1.8rem; color: #0056b3; }
.blog-post-full .article-body h3 { font-size: 1.4rem; }
.blog-post-full .article-body blockquote {
    border-left: 5px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 2em 0;
    font-style: italic;
    background-color: #f1f8ff;
    border-radius: 0 8px 8px 0;
    color: #333;
}

/* --- Call to Action Section --- */
.cta-section {
    background-color: #0062cc; /* Slightly adjusted blue */
    color: #ffffff;
    padding: 3.2rem 1rem;
    text-align: center;
    border-radius: 10px;
    margin: 3rem auto;
}
.cta-section h2 { color: #ffffff; font-size: 2.1rem; }
.cta-section p { font-size: 1.1rem; margin-bottom: 1.6em; max-width: 600px; }

/* --- Quote Tool Page --- */
.quote-tool-page .page-header h1 { color: #007bff; }
.quote-form-section {
    max-width: 600px; /* Slightly narrower for focus */
    margin: 0 auto 3rem auto;
    padding: 2.5rem; /* More padding */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); /* Enhanced shadow */
}
.quote-form-section h2.form-step-title {
    text-align: center;
    color: #343a40;
    margin-bottom: 2rem; /* More space */
    font-size: 1.7rem;
    font-weight: 500;
}
.quote-form-section .form-group { margin-bottom: 1.5rem; }
.quote-form-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}
.quote-form-section input[type="tel"], /* For ZIP */
.quote-form-section select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff; /* White background for inputs */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none; /* For custom select arrow if added */
}
.quote-form-section select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* Space for arrow */
}

.quote-form-section input[type="tel"]:focus,
.quote-form-section select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}
.quote-form-section .radio-group label {
    font-weight: normal;
    margin-right: 1rem;
    color: #495057;
    display: inline-flex; /* Align radio and text */
    align-items: center;
    cursor: pointer;
}
.quote-form-section .radio-group input[type="radio"] {
    margin-right: 0.4rem;
    accent-color: #007bff; /* Modern radio color */
}
.quote-form-section .disclaimer-text {
    font-size: 0.78rem;
    color: #6c757d;
    text-align: left; /* More readable */
    line-height: 1.5;
    margin-top: 2rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* --- Contact Page --- */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr 1.5fr; /* Two columns on larger screens */
    }
}
.contact-details-box h3, .contact-form-box h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.contact-details-box p {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}
.contact-details-box strong { color: #343a40; }
.contact-details-box .contact-icon { /* If using icons */
    margin-right: 0.5rem;
    color: #007bff;
}

/* --- Footer --- */
.site-footer {
    background-color: #212529;
    color: #ced4da;
    padding: 3rem 0 1.5rem 0;
    font-size: 0.9rem;
}
.site-footer .container {
    display: flex; flex-direction: column; align-items: center;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #495057;
}
.footer-logo-area img.site-logo {
    height: 38px; /* Footer logo size */
    margin-bottom: 0.8rem;
    /* background-color: #fff; padding: 3px; border-radius: 2px; */ /* If logo needs bg */
}
.footer-logo-area p {
    font-size: 0.85rem;
    color: #adb5bd;
    line-height: 1.6;
}
.footer-links-group h4, .footer-company-info h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.footer-links-group ul { list-style: none; padding: 0; margin: 0; }
.footer-links-group li { margin-bottom: 0.6em; }
.footer-links-group a { color: #adb5bd; }
.footer-links-group a:hover { color: #ffffff; text-decoration: underline;}
.footer-company-info p { margin-bottom: 0.5em; }
.footer-company-info a { color: #8ab4f8; } /* Light blue for email link */

.footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    padding-top: 1.5rem;
}
.footer-bottom p { margin-bottom: 0.4em; }
.footer-bottom .footer-disclaimer {
    font-size: 0.78rem;
    color: #5a6268;
    margin-top: 0.8em;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    body { padding-top: 65px; }
    .hero-section h1 { font-size: 2.4rem; }
    .page-header h1 { font-size: 2.1rem; }
    .footer-top { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));}
}

@media (max-width: 767px) {
    html { font-size: 15px; }
    body { padding-top: 60px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-section { padding: 3.5rem 0; }
    .hero-section h1 { font-size: 2.1rem; }
    .page-header h1 { font-size: 1.8rem; }

    .main-nav { width: 85%; max-width: 280px; }
    .main-nav a { font-size: 1.15rem; padding: 0.8rem 0.5rem;}
    .nav-close-button { top: 12px; right: 12px; font-size: 1.8rem;}

    .content-section { padding: 1.8rem; }
    .blog-post-full .featured-image-placeholder { height: 200px; }
    .cta-section h2 { font-size: 1.7rem; }
    .quote-form-section { padding: 2rem 1.5rem; }
    .footer-top { text-align: center; }
    .footer-logo-area, .footer-links-group, .footer-company-info { text-align: center; }
    .footer-logo-area img.site-logo { margin: 0 auto 0.8rem auto; }
}

/* Add or Adjust these in your style-faq.css if needed */

/* --- Contact Page Specific Styles --- */
.contact-page-main .page-header { /* Ensure page header styling is consistent */
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}
.contact-page-main .page-header h1 {
    font-size: 2.6rem;
    color: #0056b3;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.contact-page-main .page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}
.contact-page-main .page-header .subheadline {
    font-size: 1.1rem;
    color: #5a6268;
    max-width: 650px;
    margin: 0.8rem auto 0 auto;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 2.5rem; /* Spacing between contact info and form */
    align-items: flex-start; /* Align items to the top */
}

@media (min-width: 768px) {
    .contact-grid-container {
        grid-template-columns: 1fr 1.8fr; /* Adjust ratio as needed: 1fr for info, 1.5fr or 2fr for form */
    }
}

.contact-info-box,
.contact-form-wrapper {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.contact-info-box h3,
.contact-form-wrapper h3 {
    font-size: 1.6rem;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-info-box p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #495057;
}

.contact-info-box strong {
    color: #343a40;
}

.contact-info-box .contact-method {
    display: flex;
    align-items: flex-start; /* Align icon with first line of text */
    margin-bottom: 0.8rem;
}

.contact-info-box .contact-icon {
    font-size: 1.1rem; /* Example size for icon text */
    color: #007bff;
    margin-right: 0.75rem;
    margin-top: 0.2em; /* Align with text */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
}

.contact-form-wrapper .form-group {
    margin-bottom: 1.3rem;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fdfdfd; /* Slightly off-white for inputs */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,.2); /* Softer focus */
    outline: none;
    background-color: #fff;
}

.contact-form-wrapper textarea {
    min-height: 130px; /* Slightly taller */
    resize: vertical;
}

.contact-form-wrapper .cta-button { /* Ensure contact form button uses CTA styles */
    width: 100%;
    padding: 0.9em 1.5em;
    font-size: 1.05rem;
}

/* Ensure other general styles from your main style-faq.css apply correctly */