:root {
  --main-accent-color: #fed403;
  --main-brand-color: #003922;
}

/* --- CUSTOM HERO SECTION --- */
.custom-sod-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Placeholder image - swap the URL with an image from your Kirby media folder later */
    background-image: url('../../bg-hero/sod-installation-waterloo-009.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: var(--spacing-10) var(--spacing-4);
}

/* Dark overlay for text readability */
.custom-sod-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    /* Dark transparent overlay */
    z-index: 1;
}

/* Keep the content above the overlay */
.custom-sod-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.custom-sod-hero-content .pre-heading {
    color: #ffffff;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.custom-sod-hero-content h1 {
    color: var(--main-accent-color);
    /* The yellow/gold from your screenshot */
    font-size: 4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.custom-sod-hero-content p {
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* The Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #121930;
    /* Match the dark green from the logo */
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

.btn-download svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .custom-sod-hero-content h1 {
        font-size: 2.5rem;
    }

    .custom-sod-hero-content .pre-heading {
        font-size: 1.125rem;
    }
}

/* --- INTRO SECTION: THE GOLD STANDARD --- */
.custom-sod-intro {
    padding: 80px 20px;
    background-color: #ffffff;
}

/* Reusable container for future sections too */
.custom-sod-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem; /* Spacing between text and image */
}

.intro-text {
    flex: 1; /* Takes up 50% width */
}

/* Typography Styling */
.intro-text h2 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.text-green {
    color: #121930; /* Dark green matching your theme */
}

.text-gold {
    color: var(--main-accent-color); /* Gold accent color */
}

.intro-text h3 {
    font-size: 1.6rem;
    color: #121930;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.intro-text p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Image Styling */
.intro-image-wrapper {
    flex: 1; /* Takes up 50% width */
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border: 5px solid var(--main-accent-color); /* Matches the gold text */
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Subtle depth */
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .custom-sod-container {
        flex-direction: column; /* Stacks image below text */
        gap: 2.5rem;
        text-align: center;
    }

    .intro-text h2 {
        font-size: 3.5rem;
    }
    
    .intro-text h3 br {
        display: none; /* Prevents awkward line breaks on small screens */
    }
}

/* --- CALCULATOR SECTION --- */
.custom-sod-calculator-section {
    padding: 60px 20px;
    background-color: #f4f7f6; /* Soft background to make the calculator pop */
}

.custom-sod-calculator-container {
    background-color: #ffffff;
    color: #343a40;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.custom-sod-calculator-container h2 {
    font-size: 32px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #121930;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.custom-sod-calculator-container h4 {
    margin-top: -14px;
    text-align: center;
    color: #343a40;
}

.custom-sod-calculator-container p {
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 35px;
    color: #555;
}

.custom-sod-calculator-fields {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-sod-calculator-field {
    flex: 1;
    min-width: 250px;
}

.custom-sod-calculator-field label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #343a40;
}

.custom-sod-calculator-field input {
    width: 100%;
    padding: 14px 18px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 17px;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-sod-calculator-field input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    outline: none;
}

.custom-sod-calculator-result {
    background-color: #e9ecef;
    color: #343a40;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
    border-left: 5px solid #28a745;
}

.custom-sod-calculator-result p {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #555;
}

.custom-sod-calculator-total-cost {
    font-size: 44px;
    font-weight: 700;
    color: #28a745;
    display: block;
    margin-top: 10px;
    letter-spacing: 1px;
}

.custom-sod-action {
    display: none;
    text-align: center;
    margin-top: 25px;
    animation: fadeIn 0.5s ease-in-out;
}

.custom-sod-btn {
    display: inline-block;
    background-color: var(--main-accent-color); /* Changed to match your theme's gold/orange */
    color: #1a7332 !important; /* Dark green text */
    padding: 16px 32px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.custom-sod-btn:hover {
    background-color: var(--main-accent-color);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-sod-rates-table-container {
    margin-top: 40px;
    overflow-x: auto;
}

.custom-sod-rates-table-container h3 {
    font-size: 22px;
    text-align: center;
    color: #343a40;
    margin-bottom: 20px;
    font-weight: 700;
}

.custom-sod-rates-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.custom-sod-rates-table th, 
.custom-sod-rates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-sod-rates-table th {
    background-color: #28a745;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.custom-sod-rates-table tr:last-child td {
    border-bottom: none;
}

.custom-sod-rates-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

.custom-sod-rates-table tbody tr.highlight-tier td {
    background-color: #d4edda !important;
    color: #121930 !important;
    font-weight: 700;
    border-color: #c3e6cb;
}

@media (max-width: 600px) {
    .custom-sod-calculator-container { padding: 25px; margin: 20px auto; }
    .custom-sod-calculator-container h2 { font-size: 28px; }
    .custom-sod-calculator-container p { font-size: 15px; }
    .custom-sod-calculator-fields { flex-direction: column; gap: 20px; }
    .custom-sod-calculator-field { min-width: unset; }
    .custom-sod-calculator-total-cost { font-size: 36px; }
    .custom-sod-rates-table th, .custom-sod-rates-table td { padding: 10px; font-size: 14px; }
    .custom-sod-rates-table-container h3 { font-size: 18px; }
    .custom-sod-btn { width: 100%; box-sizing: border-box; }
}

@media (max-width: 600px) {
    /* Your existing mobile rules are here... */

    /* --- OVERRIDE THEME TABLE STACKING --- */
    .custom-sod-rates-table {
        display: table !important; 
        width: 100%;
    }
    
    .custom-sod-rates-table thead {
        display: table-header-group !important; /* Forces the header to reappear */
    }
    
    .custom-sod-rates-table tr {
        display: table-row !important;
    }
    
    .custom-sod-rates-table th, 
    .custom-sod-rates-table td {
        display: table-cell !important;
        padding: 12px 8px; /* Tighter padding for narrow screens */
        font-size: 13px; /* Prevents text from wrapping awkwardly */
        vertical-align: middle;
    }
}

/* --- 8-STEP PROCESS SECTION --- */
.custom-sod-process-section {
    background-color: var(--main-brand-color); /* Deep green from the reference */
    padding: 80px 20px;
    color: #ffffff;
}

.process-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.process-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.process-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Tabs Navigation */
.sod-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 40px;
    margin-bottom: 40px;
}

.sod-tab-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.sod-tab-btn:hover {
    color: var(--main-accent-color);
}

.sod-tab-btn.active {
    color: var(--main-accent-color);
    border-bottom: 3px solid var(--main-accent-color);
    font-weight: 600;
}

/* Tab Content Areas */
.sod-tabs-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.sod-tab-pane {
    display: none; /* Hidden by default */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    color: #333333;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: fadeInTab 0.4s ease-in-out;
}

.sod-tab-pane.active {
    display: flex; /* Flexrow on desktop */
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane-image {
    flex: 1; /* Takes up 50% */
}

.tab-pane-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tab-pane-text {
    flex: 1; /* Takes up 50% */
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-pane-text h6 {
    font-size: 1rem;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 5px;
}

.tab-pane-text h3 {
    font-size: 2.5rem;
    color: #222222;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
}

.tab-pane-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Contact Button inside tab */
.btn-tab-contact {
    display: inline-block;
    background-color: #044b25;
    color: #ffffff !important;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.btn-tab-contact:hover {
    background-color: #0b5e27;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .sod-tabs-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columns for tabs on mobile */
        gap: 15px 5px;
        text-align: center;
    }

    .sod-tab-btn {
        padding: 8px 5px;
        font-size: 0.95rem;
    }

    .sod-tab-pane.active {
        flex-direction: column; /* Stack image above text */
    }

    .tab-pane-image img {
        height: 250px; /* Fixed height for mobile hero image */
    }

    .tab-pane-text {
        padding: 30px 20px;
    }

    .tab-pane-text h3 {
        font-size: 2rem;
    }
}

/* --- 8-STEP PROCESS LAYOUT FIXES --- */

/* 1. Override the flexbox row behavior from the previous container */
.custom-sod-process-section .custom-sod-container {
    display: block !important; 
}

/* 2. Force text inside the tab cards to left-align on all devices */
.tab-pane-text,
.tab-pane-text h6,
.tab-pane-text h3,
.tab-pane-text p {
    text-align: left !important;
}

/* 3. Minor mobile spacing adjustments for the tabs */
@media screen and (max-width: 768px) {
    .custom-sod-process-section .process-header {
        margin-bottom: 30px;
    }
    .sod-tabs-nav {
        margin-bottom: 25px;
    }
}

/* --- SOD INSTALLATION PROCESS INFO SECTION --- */
/* --- PROCESS INFO LAYOUT FIX --- */
/* Override the global flex row behavior so the top and bottom stack correctly */
.custom-sod-process-info .custom-sod-container {
    display: block !important; 
}
.custom-sod-process-info {
    background-color: var(--main-brand-color); /* Matches the deep green from the tabs section */
    color: #ffffff;
    padding: 40px 20px 80px 20px; 
}

/* Two-column layout for the image and heading */
.process-info-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.process-info-img {
    flex: 1;
}

.process-info-img img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--main-accent-color); /* Matches the gold border from your reference */
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.process-info-title {
    flex: 1;
}

.process-info-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: #ffffff;
    text-align: left; /* Keep left aligned next to the image */
}

/* Centered text block at the bottom */
.process-info-bottom {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.process-info-bottom p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ffffff;
}

/* The custom inline bullet list */
.process-steps-list {
    margin: 35px 0;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #ffffff;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .process-info-top {
        flex-direction: column; /* Stacks the image on top of the title */
        gap: 30px;
        text-align: center;
    }

    .process-info-title h2 {
        font-size: 3rem;
        text-align: center; /* Center the title on mobile */
    }

    .process-info-bottom p, 
    .process-steps-list {
        font-size: 1rem;
    }
}

/* --- GALLERY SECTION --- */
.custom-sod-gallery-section {
    padding: 80px 0 0 0; /* No bottom padding so grid is flush */
    background-color: #ffffff;
}

.custom-sod-gallery-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.gallery-subtitle {
    color: var(--main-accent-color); /* Gold accent color */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px;
}

.custom-sod-gallery-header h2 {
    color: #0b5e27; /* Deep green */
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.gallery-divider {
    width: 80px;
    height: 3px;
    background-color: var(--main-accent-color); /* Gold separator */
    margin: 0 auto 20px auto;
}

.custom-sod-gallery-header p {
    color: #555555;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* 4-Column Grid for Desktop (4x4) */
.custom-sod-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px; /* Tiny gap looks sharp */
    width: 100%;
}

.gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Magically forces a perfect landscape shape */
    position: relative;
    background-color: #eeeeee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching, crops from center */
    display: block;
    transition: transform 0.4s ease;
}

/* Hover zoom effect for desktop */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Mobile Responsiveness: 2-Column Grid */
@media screen and (max-width: 768px) {
    .custom-sod-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px; /* Larger gap better for mobile */
        padding: 0 4px; 
    }
    
    .custom-sod-gallery-header h2 {
        font-size: 2.2rem;
    }
}

/* --- CTA / WHY CHOOSE US SECTION --- */
.custom-sod-cta-section {
    background-color: var(--main-brand-color); /* Match the deep green */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

/* Ensure this container block doesn't inherit flexbox rules */
.custom-sod-cta-section .custom-sod-container {
    display: block !important; 
}

.custom-sod-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.custom-sod-cta-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 30px;
    color: #ffffff;
}

.custom-sod-cta-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #ffffff;
    opacity: 0.95;
}

/* Buttons Layout */
.custom-sod-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 45px;
}

.btn-cta-white {
    display: inline-block;
    background-color: #ffffff;
    color: #044b25 !important; /* Dark green text */
    padding: 16px 35px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-cta-white:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .custom-sod-cta-section {
        padding: 60px 20px;
    }

    .custom-sod-cta-content h2 {
        font-size: 2.5rem;
    }
    
    .custom-sod-cta-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .custom-sod-cta-buttons {
        flex-direction: column; /* Stack buttons on small screens */
        gap: 15px;
        margin-top: 35px;
    }

    .btn-cta-white {
        width: 100%; /* Full width buttons for easier tapping */
        box-sizing: border-box;
    }
}

/* --- LOGO PARTNERS SECTION --- */
.custom-sod-logo-carousel {
    background-color: #ffffff;
    padding: 50px 20px;
    border-bottom: 1px solid #eeeeee; /* Optional subtle separator */
}

/* Ensure the container doesn't inherit flex from previous sections */
.custom-sod-logo-carousel .custom-sod-container {
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop: Standard wrapped row */
.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logo-slide {
    flex: 0 0 auto;
    width: calc(16.666% - 40px); /* Adjusts based on how many you have */
    min-width: 120px;
    max-width: 180px;
    display: flex;
    justify-content: center;
}

.logo-slide img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Keeps logos in their proper proportions */
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.logo-slide:hover img {
    opacity: 1;
}

/* Mobile Responsiveness: Swipeable Carousel */
@media screen and (max-width: 768px) {
    .custom-sod-logo-carousel {
        padding: 15px 0; /* Remove side padding so it bleeds to the edges */
    }

    .logo-track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto; /* Enables horizontal scrolling */
        scroll-snap-type: x mandatory; /* Forces snapping to the logos */
        -webkit-overflow-scrolling: touch; /* Smooth iOS swiping */
        gap: 0;
        padding-bottom: 10px; /* Space for invisible scrollbar */
    }

    /* Hide the ugly default scrollbar for a clean app-like feel */
    .logo-track::-webkit-scrollbar {
        display: none;
    }
    .logo-track {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .logo-slide {
        /* Show exactly 3 logos at a time (100% / 3 = 33.333%) */
        flex: 0 0 33.333%;
        max-width: none;
        min-width: unset;
        scroll-snap-align: center; /* Snaps the logo to the center of the view */
        padding: 0 15px; /* Internal spacing so they don't touch */
        box-sizing: border-box;
    }
}

/* Desktop: Dynamic single row */
.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; /* Forces all logos into a single line */
    gap: 30px; /* Slightly reduced gap to comfortably fit 7+ logos */
}

.logo-slide {
    flex: 1 1 0; /* Tells flexbox to evenly distribute the widths */
    min-width: 100px; /* Lowered minimum width so they can shrink to fit */
    max-width: 160px;
    display: flex;
    justify-content: center;
}

/* --- FREE ESTIMATE FORM SECTION --- */
.custom-sod-form-section {
    position: relative;
    /* Placeholder background - swap with your wheelbarrow image URL */
    background-image: url('../../bg-hero/sod-installation-waterloo-009.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Optional dark overlay to make the white form pop more */
.custom-sod-form-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.custom-sod-form-wrapper {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    padding: 50px 60px;
    max-width: 650px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.custom-sod-form-wrapper h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222222;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.form-subtitle {
    text-align: center;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Styles Override */
.custom-sod-form {
    text-align: left;
}

.custom-sod-form .form-row {
    display: flex;
    gap: 20px;
}

.custom-sod-form .form-row .form-group {
    flex: 1;
}

.custom-sod-form .form-group {
    margin-bottom: 20px;
}

.custom-sod-form label {
    display: block;
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 8px;
}

.custom-sod-form .required {
    color: #d9534f;
}

.custom-sod-form input[type="text"],
.custom-sod-form input[type="email"],
.custom-sod-form input[type="tel"],
.custom-sod-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333333;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.custom-sod-form input:focus,
.custom-sod-form textarea:focus {
    outline: none;
    border-color: #121930; /* Green focus ring */
}

.btn-submit-form {
    display: block;
    width: 100%;
    background-color: #121930; /* Deep Green */
    color: #ffffff;
    padding: 18px;
    border: none;
    border-radius: 4px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-submit-form:hover {
    background-color: #0b5e27;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .custom-sod-form-section {
        padding: 60px 15px;
    }
    
    .custom-sod-form-wrapper {
        padding: 40px 25px;
    }

    .custom-sod-form-wrapper h2 {
        font-size: 1.8rem;
    }

    .custom-sod-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- TESTIMONIALS SECTION --- */
.custom-sod-testimonials {
    background-color: #1e1e1e; /* Dark charcoal background */
    color: #ffffff;
    padding: 80px 20px 100px 20px;
    text-align: center;
}

.custom-sod-testimonials .custom-sod-container {
    display: block !important; /* Prevents global flexbox inheritance */
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-header {
    margin-bottom: 60px;
}

.testimonials-subtitle {
    color: var(--main-accent-color); /* Gold accent */
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.testimonials-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px 0;
}

.testimonials-divider-main {
    width: 60px;
    height: 3px;
    background-color: var(--main-accent-color);
    margin: 0 auto;
}

/* 3-Column Grid for Desktop */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.testimonial-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.testimonial-card .stars {
    color: var(--main-accent-color); /* Gold stars */
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.testimonial-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #f1f1f1;
    margin-bottom: 35px;
    font-style: normal;
}

.testimonial-divider {
    width: 80px;
    height: 3px;
    background-color: var(--main-accent-color);
    margin-top: auto; /* Always pushes the line to the very bottom of the card */
}

/* Mobile Responsiveness */
@media screen and (max-width: 800px) {
    .custom-sod-testimonials {
        padding: 60px 20px;
    }

    .testimonials-header h2 {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr; /* Stacks reviews into a single column */
        gap: 30px;
    }

    .testimonial-card {
        padding: 10px 0;
    }
}