:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #00509E; /* Lighter Blue */
    --accent-color: #FFC107; /* Amber/Gold for accents */
    --text-color: #333333;
    --text-light: #555555;
    --background-light: #FFFFFF;
    --background-grey: #f4f7f6; /* Softer grey */
    --background-alternate: #e9eff3; /* Light blueish grey for alternating sections */
    --error-color: #D32F2F;
    --success-color: #388E3C;
    --border-color: #dee2e6;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light); /* Changed default body background */
    color: var(--text-color);
    line-height: 1.7; /* Increased for better readability */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1140px; /* Wider max-width for larger screens */
    margin: 0 auto;
    padding: 20px 0;
}

header {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid var(--primary-color); /* Slightly thicker border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#logo {
    max-width: 280px; /* Slightly larger logo */
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    margin: 0 0 5px 0;
    font-size: 2.2rem; /* Slightly larger */
    font-weight: 700;
    font-family: 'Montserrat', sans-serif; /* Different font for heading */
}

header .subtitle {
    font-size: 1.15rem; /* Slightly larger */
    font-weight: 400; /* Adjusted weight */
    margin-top: 5px;
    color: var(--text-light); /* Softer color for subtitle */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#intro-banner {
    color: white;
    position: relative;
    z-index: 1;
    padding: 0; /* Swiper will have its own height, so no padding needed here */
    width: 100%;
}

.hero-swiper {
    width: 100%;
    height: 550px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 33, 66, 0.6); /* Dark blue overlay */
    z-index: -1;
}

.swiper-slide .container {
    z-index: 2;
}

#intro-banner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    color: white;
}

#intro-banner p {
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 750px;
    margin: 20px auto 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    color: rgba(255, 255, 255, 0.95);
}

main {
    flex-grow: 1;
    /* padding: 20px 0; Removed default padding, sections will handle their own */
}

.content-section {
    padding: 50px 0; /* Standard padding for content sections */
}

.content-section.bg-alternate {
    background-color: var(--background-alternate);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Why Fonnseg Section */
#why-fonnseg .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.feature-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Insurance Solutions Section */
#insurance-solutions {
    background-color: var(--background-grey); /* Use the softer grey */
}

.insurance-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.insurance-card {
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
}

.insurance-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.insurance-card-content {
    padding: 20px;
    flex-grow: 1;
}

.insurance-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.insurance-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}


#quote-section {
    background-color: var(--background-light);
    padding: 50px 0; /* Consistent padding */
    /* border-radius: 8px; No longer needed if it's not a standalone card */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

#quote-section .container {
    max-width: 700px; /* More focused form width */
}


#quote-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px; /* Increased margin */
    font-size: 2rem; /* Harmonized with section-title */
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color); /* Use variable */
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.2); /* Softer focus shadow */
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Changed from block */
    width: auto; /* Changed from 100% */
    text-transform: uppercase;
    text-decoration: none; /* For anchor tags */
}

#quote-section .cta-button { /* Specific for form submit */
    display: block;
    width: 100%;
}


.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.cta-button-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.cta-button-secondary:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}


#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

#form-message.success {
    background-color: var(--success-color);
    color: white;
}

#form-message.error {
    background-color: var(--error-color);
    color: white;
}

/* Final CTA section */
#final-cta {
    background-color: var(--secondary-color);
    color: var(--background-light);
}
#final-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--background-light);
}
#final-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
#final-cta .cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}
#final-cta .cta-button:hover {
    background-color: #ffca28; /* Slightly darker gold on hover */
    color: var(--primary-color);
    transform: translateY(-2px);
}


footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8); /* Softer white text */
    text-align: center;
    padding: 30px 0; /* Increased padding */
    margin-top: auto; /* Pushes footer to the bottom */
    font-size: 0.9rem;
}

footer p {
    margin: 8px 0; /* Increased margin */
}
footer a {
    color: var(--accent-color);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
footer small {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}


/* Swiper navigation and pagination styling */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    opacity: 1;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        width: 92%;
    }
    .hero-swiper {
        height: 450px;
    }
    #logo {
        max-width: 240px;
    }
    header h1 {
        font-size: 2rem;
    }
    header .subtitle {
        font-size: 1.1rem;
    }
    .section-title, #quote-section h2 {
        font-size: 1.8rem;
    }
    .insurance-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


@media (max-width: 768px) {
    .content-section {
        padding: 40px 0;
    }
    .hero-swiper {
        height: 400px;
    }
    #intro-banner h2 {
        font-size: 2rem;
    }
    #intro-banner p {
        font-size: 1.1rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    header .subtitle {
        font-size: 1rem;
    }
    #logo {
        max-width: 200px;
    }
    .section-title, #quote-section h2 {
        font-size: 1.6rem;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Stack features on smaller screens */
    }
    .insurance-cards-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .cta-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
     .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .hero-swiper {
        height: 350px;
    }
    header h1 {
        font-size: 1.6rem;
    }
     header .subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    #logo {
        max-width: 180px;
    }
    .section-title, #quote-section h2 {
        font-size: 1.4rem;
    }
    .feature-item, .insurance-card-content {
        padding: 20px;
    }
    .feature-item h3, .insurance-card-content h3 {
        font-size: 1.2rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    #final-cta h2 {
        font-size: 1.5rem;
    }
    #final-cta p {
        font-size: 1rem;
    }

    #intro-banner h2 {
        font-size: 1.8rem;
    }
    #intro-banner p {
        font-size: 1rem;
    }
}