/* ==========================================================================
   1. Core Variables & Global Resets
   ========================================================================== */
:root {
    --color-slate: #1f242d;        /* Main dark brand text */
    --color-teal: #0084b0;         /* Kidwell Plumbing Blue */
    --color-coral: #e84e38;        /* Kidwell Heating Orange */
    --color-light-bg: #f8fafc;
    --color-text: #475569;
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --radius-premium: 24px;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.04);
    --shadow-smooth: 0 20px 40px rgba(0,0,0,0.04);
}

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

body { 
    font-family: var(--font-main); 
    color: var(--color-text); 
    background-color: #ffffff; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

.container { 
    width: 92%; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
}

.text-center { text-align: center; }
.m-b-20 { margin-bottom: 20px; }
.m-t-40 { margin-top: 40px; }
.m-r-5 { margin-right: 5px; }
.icon-inline { width: 16px; height: 16px; vertical-align: middle; display: inline-block; }

/* ==========================================================================
   2. Layout Structure & Main Elements
   ========================================================================== */

/* --- Top Contact Strap --- */
.top-strap {
    background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-coral) 100%);
    color: #ffffff;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}
.top-strap a { color: #ffffff; text-decoration: none; margin: 0 8px; font-weight: 700; }

/* --- Premium Navbar --- */
.main-header { background-color: var(--color-slate); padding: 16px 0; position: relative; z-index: 50; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-badge-container { background-color: #ffffff; padding: 10px 18px; border-radius: 8px; display: inline-block; }
.site-logo { height: 55px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; }
.nav-menu a { color: #ffffff; text-decoration: none; margin-left: 28px; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu a:hover { color: var(--color-teal); }

/* --- UI Buttons (Fixed Hover Issue) --- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.2s ease; }
.btn-primary { background-color: var(--color-coral); color: #ffffff !important; }
.btn-primary:hover { background-color: #c93b26; color: #ffffff !important; transform: translateY(-1px); }
.btn-secondary { background-color: var(--color-teal); color: #ffffff !important; }
.btn-secondary:hover { background-color: #007299; color: #ffffff !important; transform: translateY(-1px); } 

/* --- Hero Layout --- */
.hero-section { background-color: #f8fafc; padding: 90px 0 90px; }
.hero-grid-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-text-block h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; color: var(--color-slate); margin-bottom: 25px; letter-spacing: -0.5px; }
.hero-text-block p { font-size: 1.15rem; color: #64748b; margin-bottom: 35px; line-height: 1.6; }
.hero-cta-group { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.cta-separator { font-weight: 800; font-size: 0.85rem; color: #94a3b8; }
.hero-image-wrapper { display: flex; justify-content: center; }
.hero-boiler-img { width: 100%; max-width: 460px; height: auto; border-radius: var(--radius-premium); box-shadow: var(--shadow-premium); object-fit: cover; }

/* --- Upgraded Cohesive Trust Panel (Fixed Margin) --- */
.trust-accreditation-panel {
    padding: 0 0 30px; /* Creates natural whitespace below the hero banner */
    background-color: var(--color-light-bg); /* Sits softly on the page */
    margin-top: 0; /* Removed the negative overlap */
    position: relative;
    z-index: 20;
}
.trust-panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1.5fr; /* widened to hold 4 logos comfortably */
    align-items: center;
    gap: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}
.trust-panel-text h3 { font-size: 1.2rem; font-weight: 800; color: var(--color-slate); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.trust-panel-text p { font-size: 0.95rem; color: #64748b; line-height: 1.5; }
.trust-panel-divider { width: 1px; height: 50px; background-color: #e2e8f0; }
.trust-logos-row { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.logo-badge-wrapper { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    padding: 2px 12px; /* Reduced padding removes dead space */
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 52px; 
}
.logo-badge-wrapper.bg-yellow { background-color: #fffde6; border-color: #fef08a; }
.logo-badge-wrapper.sm { height: 42px; padding: 4px 12px; }
.logo-badge-wrapper img { 
    height: 100%; 
    width: auto; 
    object-fit: contain; 
    transform: scale(1.25); /* Visually expands the logo within the box */
}

/* --- Horizontal Services Ribbon --- */
.services-ribbon-bar { background: #ffffff; padding: 60px 0 0 0; border-bottom: 0px solid #e2e8f0; }
.ribbon-flex-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.ribbon-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--color-slate); }
.ribbon-icon { width: 22px; height: 22px; }

/* --- Premium Editorial "Hi I'm Jack" Section --- */
.about-section { padding: 50px 0; background-color: #ffffff; }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; }
.about-image-frame.clean-border-frame { position: relative; padding: 12px; background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--radius-premium); box-shadow: var(--shadow-premium); }
.about-image-frame.clean-border-frame::before { content: ''; position: absolute; inset: 0; border: 2px dashed rgba(0, 132, 176, 0.15); border-radius: var(--radius-premium); pointer-events: none; }
.jack-profile-img { width: 100%; border-radius: calc(var(--radius-premium) - 10px); display: block; object-fit: cover; }
.about-text-content.editorial-style h2 { font-size: 2.8rem; font-weight: 800; color: var(--color-slate); margin-bottom: 20px; letter-spacing: -0.5px; }
.about-text-content.editorial-style .lead-paragraph { font-size: 1.25rem; font-weight: 600; color: var(--color-teal); line-height: 1.5; margin-bottom: 25px; }
.about-text-content.editorial-style p { font-size: 1.05rem; color: #475569; line-height: 1.7; margin-bottom: 25px; }
.editorial-quote { font-size: 1.25rem; font-weight: 700; font-style: italic; color: var(--color-slate); border-left: 4px solid var(--color-coral); padding-left: 20px; margin: 35px 0; line-height: 1.5; }

/* --- Services Section Architecture --- */
.features-section { padding: 110px 0; background-color: var(--color-light-bg); }
.features-title-header { text-align: center; max-width: 650px; margin: 0 auto 50px auto; }
.features-title-header h2 { font-size: 2.4rem; font-weight: 800; color: var(--color-slate); margin-bottom: 12px; letter-spacing: -0.5px; }
.features-title-header p { font-size: 1.05rem; color: #64748b; }
.features-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }

/* --- Image Collage Frame --- */
.collage-container { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; height: 500px; }
.collage-img { background-size: cover; background-position: center; border-radius: var(--radius-premium); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.img-tall { grid-row: span 2; }
.img-top { height: 230px; }
.img-bottom { height: 250px; }
.floating-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #ffffff; padding: 24px 45px; border-radius: var(--radius-premium); box-shadow: 0 15px 40px rgba(0,0,0,0.08); text-align: center; z-index: 10; }
.floating-badge span { display: block; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.floating-badge hr { border: 0; height: 1px; background-color: #e2e8f0; margin: 10px 0; }
.text-slate { color: var(--color-slate); }
.text-teal { color: var(--color-teal); }
.text-coral { color: var(--color-coral); }

.features-content { display: flex; flex-direction: column; gap: 35px; }
.feature-item { display: flex; gap: 22px; }
.feature-icon { font-size: 1.6rem; color: var(--color-teal); line-height: 1; }
.feature-icon svg { width: 32px; height: 32px; }
.feature-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; color: var(--color-slate); }
.feature-text p { color: #475569; font-size: 0.95rem; }

/* --- Reviews Section --- */
.reviews-section { padding: 100px 0 50px; background-color: #ffffff; border-top: 1px solid #e2e8f0; }
.reviews-display-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-top: 40px; }
.premium-review-card { background-color: #ffffff; border: 1px solid #e2e8f0; padding: 35px; border-radius: 16px; box-shadow: var(--shadow-premium); position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.premium-review-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.06); }
.review-meta-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.reviewer-profile-info { display: flex; flex-direction: column; }
.profile-name-text { font-weight: 700; color: var(--color-slate); font-size: 1rem; }
.profile-badge-text { font-size: 0.75rem; color: var(--color-teal); font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 4px; margin-top: 20px; }
.profile-badge-text svg { width: 14px; height: 14px; color: #ea4335; }
.star-rating-row { color: #f59e0b; font-size: 1rem; letter-spacing: 1px; }
.review-content-p { color: #475569; font-size: 0.95rem; font-style: italic; line-height: 1.65; }
.trust-link-btn { display: inline-block; padding: 12px 26px; border-radius: 30px; border: 1px solid #cbd5e1; color: #475569; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.2s; }
.trust-link-btn:hover { background-color: var(--color-slate); color: #ffffff; border-color: var(--color-slate); }

/* --- Contacts & Maps --- */
.contact-section { padding: 110px 0; background-color: var(--color-light-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.map-area h3, .form-area h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: var(--color-slate); }
.map-frame { margin-top: 25px; box-shadow: var(--shadow-smooth); border-radius: var(--radius-premium); overflow: hidden; }
.form-area { background: #ffffff; padding: 45px; border-radius: var(--radius-premium); box-shadow: var(--shadow-smooth); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: #475569; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: var(--font-main); font-size: 0.95rem; }

/* --- Footer Elements --- */
.main-footer { background: linear-gradient(135deg, #13171f 0%, var(--color-slate) 100%); position: relative; color: #ffffff; padding: 90px 0 40px; }
.main-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--color-teal), var(--color-coral)); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 60px; }
.footer-grid h4 { font-size: 1.1rem; color: var(--color-teal); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 22px; font-weight: 700; }
.footer-grid p { opacity: 0.8; font-size: 0.95rem; margin-bottom: 12px; }
.footer-accreditations-row { display: flex; gap: 12px; margin-top: 20px; }
.footer-keywords-list { list-style: none; }
.footer-keywords-list li { font-size: 0.9rem; opacity: 0.8; margin-bottom: 8px; position: relative; padding-left: 15px; }
.footer-keywords-list li::before { content: '•'; color: var(--color-coral); position: absolute; left: 0; font-weight: bold; }
.footer-contact-list { list-style: none; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; font-size: 0.95rem; opacity: 0.8; }
.footer-contact-list li svg { width: 18px; height: 18px; color: var(--color-teal); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: #ffffff; text-decoration: none; transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--color-coral); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 25px; font-size: 0.85rem; opacity: 0.5; }


/* ==========================================================================
   Modal / Popup Form Styles
   ========================================================================== */
.modal-overlay {
    display: none; /* Hidden by default; JavaScript turns this to 'flex' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(19, 23, 31, 0.85); /* Deep slate frosted background */
    z-index: 1000; /* Ensures it sits on top of everything else */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Premium frosted glass effect */
}

.modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-premium);
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-premium);
    animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-coral);
}

.modal-form {
    margin-top: 20px;
}

/* Modal specific form spacing */
.modal-form .form-group {
    margin-bottom: 18px;
}

/* Simple animation so the modal pops in smoothly rather than jarringly */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   3. Tablet Responsive Adjustments (Max 960px)
   ========================================================================== */
@media (max-width: 960px) {
    .hero-grid-layout, 
    .about-grid, 
    .features-grid, 
    .contact-grid, 
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    /* Flip Jack's block smoothly so the framed photo scales gracefully over text labels */
    .about-grid { 
        display: flex; 
        flex-direction: column; 
    }
    
    .about-image-frame.clean-border-frame {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .trust-panel-card { 
        grid-template-columns: 1fr; 
        text-align: center; 
        justify-content: center; 
        padding: 30px 20px; 
        gap: 20px;
    }
    
    .trust-panel-divider { 
        display: none; 
    }
    
    .trust-logos-row { 
        justify-content: center; 
        flex-wrap: wrap;
    }

    .collage-container { 
        height: 420px; 
    }
    
    .img-top, 
    .img-bottom { 
        height: 190px; 
    }
}


/* ==========================================================================
   4. Smartphone Responsive Adjustments (Max 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Top Contact Strap Mobile Scaling --- */
    .top-strap {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    .top-strap p {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* --- Header & Navbar Navigation Stack --- */
    .main-header {
        padding: 12px 0;
    }
    
    .header-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    /* Compact Mobile Conversion Button Layout */
    .nav-menu .btn-primary {
        margin-left: 0;
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Force navbar buttons to stay white on hover */
    .nav-menu .btn-primary:hover { color: #ffffff !important; }

    /* --- Hero Text Scaling --- */
    .hero-section {
        padding: 50px 0 70px;
        text-align: center;
    }
    
    .hero-text-block h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    
    .hero-text-block p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-boiler-img {
        max-width: 320px;
        margin-top: 20px;
    }

    /* --- The Horizontal Services Ribbon (Centered Matrix) --- */
    .services-ribbon-bar {
        padding: 25px 0;
    }
    
    .ribbon-flex-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px 10px;
        justify-items: center; 
        align-items: center;
    }

    .ribbon-item {
        justify-content: center;
        width: 100%;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .ribbon-item:nth-child(5) {
        grid-column: span 2;
    }

    /* --- About Jack Editorial Tuning --- */
    .about-section {
        padding: 60px 0;
    }
    
    .about-text-content.editorial-style h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .about-text-content.editorial-style .lead-paragraph {
        font-size: 1.1rem;
        text-align: center;
    }

    /* --- Form Container Padding Tweaks --- */
    .form-area {
        padding: 25px 20px;
    }
}

/* --- Aggregate Review Score Styling --- */
.aggregate-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}
.big-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-slate);
    line-height: 1;
}
.aggregate-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b; /* Golden Star Color */
    margin: 8px 0;
}
.aggregate-stars svg, .star-rating-row svg {
    fill: #f59e0b; /* Fills the star solid */
    width: 20px;
    height: 20px;
}
.score-text {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}
.star-rating-row {
    display: flex;
    gap: 2px;
}
.star-rating-row svg {
    width: 16px;
    height: 16px;
}

/* --- Google Branding Additions --- */
.google-aggregate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-brand-icon {
    /* We swap out the Lucide icon for the official Google 'G' logo via a background image for authenticity */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="%234285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="%23FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="%2334A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    color: transparent; /* Hides the underlying lucide icon stroke */
}

/* ==========================================================================
   Landing Page: Boiler Servicing
   ========================================================================== */

/* Focused Hero Area */
.service-hero-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    padding: 100px 0 130px;
    border-bottom: 1px solid #e2e8f0;
}
.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.landing-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-slate);
    line-height: 1.1;
    margin: 20px 0;
    letter-spacing: -1px;
}
.landing-subtitle {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Value Proposition Grid */
.value-prop-section {
    padding: 50px 0;
    background-color: #ffffff;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.benefit-card {
    background: var(--color-light-bg);
    padding: 40px 30px;
    border-radius: var(--radius-premium);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-smooth);
}
.benefit-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.benefit-icon-wrapper svg { width: 30px; height: 30px; }

/* Subtle tint backgrounds for the icons */
.bg-teal-light { background-color: rgba(0, 132, 176, 0.1); }
.bg-coral-light { background-color: rgba(232, 78, 56, 0.1); }
.bg-slate-light { background-color: rgba(31, 36, 45, 0.1); }

.benefit-card h3 {
    font-size: 1.2rem;
    color: var(--color-slate);
    margin-bottom: 10px;
    font-weight: 700;
}
.benefit-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reminder Lead Capture Section */
.reminder-section {
    padding: 110px 0;
    background-color: var(--color-slate);
    position: relative;
    overflow: hidden;
}
.reminder-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-coral));
}
.reminder-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.reminder-text h2, .reminder-text p {
    color: #ffffff !important;
}
.reminder-list {
    list-style: none;
    margin-top: 30px;
}
.reminder-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #f1f5f9;
    font-weight: 600;
}
.reminder-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-premium);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* Responsive constraints for the landing page */
@media (max-width: 960px) {
    .reminder-grid { grid-template-columns: 1fr; }
    .landing-title { font-size: 2.5rem; }
}

/* ==========================================================================
   Landing Page: Boiler Servicing Updates
   ========================================================================== */
/* ==========================================================================
   Strict Tile Grid Layout
   ========================================================================== */
.value-prop-section {
    padding: 100px 0;
    background-color: #f8fafc; /* Very light grey to make the white tiles pop */
}

/* Enforce rigid columns instead of auto-wrapping */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 tiles across */
    gap: 25px;
}

.service-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px; /* Smoother, modern corners */
    padding: 45px 30px;
    text-align: center; /* Centers all text and icons */
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the icon div */
}

.service-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.tile-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.tile-icon svg {
    width: 32px;
    height: 32px;
}

/* Reusing your subtle tint backgrounds */
.bg-teal-light { background-color: rgba(0, 132, 176, 0.1); }
.bg-coral-light { background-color: rgba(232, 78, 56, 0.1); }
.bg-slate-light { background-color: rgba(31, 36, 45, 0.1); }

.service-tile h3 {
    font-size: 1.25rem;
    color: var(--color-slate);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-tile p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Make sure it breaks cleanly on smaller screens */
@media (max-width: 1024px) {
    .tile-grid { grid-template-columns: repeat(2, 1fr); } /* Perfect 2x2 grid on iPads */
}
@media (max-width: 600px) {
    .tile-grid { grid-template-columns: 1fr; } /* Stacked straight down on phones */
}

/* ==========================================================================
   Slim Horizontal CTA Banner
   ========================================================================== */
.cta-banner-section {
    background: linear-gradient(135deg, #13171f 0%, var(--color-slate) 100%);
    padding: 45px 0; /* Slashed from 100px to make it thin */
    color: #ffffff;
    position: relative;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px; /* Thinner top highlight line */
    background: linear-gradient(90deg, var(--color-teal), var(--color-coral));
}

.slim-banner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.banner-text-left h2 {
    font-size: 1.8rem; /* Scaled down slightly to fit the slim profile */
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.banner-text-left p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0; /* Removed bottom margin to eliminate dead vertical space */
}

.banner-btn-right {
    flex-shrink: 0; /* Prevents the button from getting squished by the text */
}

/* Ensure it stacks cleanly on mobile phones */
@media (max-width: 768px) {
    .slim-banner-flex {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
}

/* ==========================================================================
   Premium Coverage Area (Checkmark Grid Layout)
   ========================================================================== */
.premium-coverage-section {
    padding: 90px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.coverage-header p {
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

.m-b-30 {
    margin-bottom: 30px;
}

.coverage-secondary-regions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.region-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: var(--radius-premium);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card {
    padding: 45px 50px;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-smooth);
}

.region-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.region-card-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-slate);
    margin: 0;
}

.region-card-header svg {
    width: 24px;
    height: 24px;
}

/* --- The New Typographic Grid --- */
.town-grid-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px 20px;
}

.featured-list {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for West Sussex */
}

.secondary-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for the smaller cards */
}

.town-grid-list li {
    color: #475569;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

/* Injects a custom Teal checkmark SVG before every town */
.town-grid-list li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 3px;
    /* This URL is a raw SVG of a checkmark styled in your brand Teal (#0084b0) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230084b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.town-grid-list li strong {
    color: var(--color-slate);
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
    .featured-list { grid-template-columns: repeat(3, 1fr); }
    .coverage-secondary-regions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .featured-list { grid-template-columns: repeat(2, 1fr); }
    .secondary-list { grid-template-columns: 1fr; }
    .region-card { padding: 30px 25px; }
}

@media (max-width: 600px) {
    .coverage-secondary-regions { grid-template-columns: 1fr; }
    .featured-list { grid-template-columns: 1fr; } /* Stack everything in 1 column on phones */
}

/* ==========================================================================
   Integrated Reminder Form Styles
   ========================================================================== */
.bg-light-grey { background-color: #f8fafc; }

/* The new Page Header */
.reminder-page-header {
    background-color: var(--color-slate);
    color: #ffffff;
    padding: 70px 0 140px 0; /* Extra bottom padding to let the card overlap */
    text-align: center;
}

.reminder-page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.reminder-page-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(232, 78, 56, 0.15);
    color: var(--color-coral);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.inline-badge svg { width: 16px; height: 16px; }

/* The Overlapping Form Card */
.reminder-form-wrapper {
    padding: 0 0 100px 0;
}

.integrated-card {
    background: #ffffff;
    border-radius: var(--radius-premium);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12); /* Slightly stronger shadow for the overlap */
    border-top: 5px solid var(--color-coral);
    margin-top: -90px; /* Pulls the card up over the dark header */
    position: relative;
    z-index: 10;
}

/* Body Layout */
.form-card-body { padding: 50px 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

.premium-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Icon Inputs */
.icon-input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 20px; height: 20px;
}

.premium-input {
    width: 100%;
    padding: 14px 15px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--color-slate);
    transition: all 0.2s;
    font-family: var(--font-main);
}
.icon-input-wrapper .premium-input { padding-left: 45px; }

.premium-input:focus {
    outline: none;
    border-color: var(--color-teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 132, 176, 0.1);
}

.input-yellow { background-color: #fefce8; border-color: #fde047; }
.input-yellow:focus { border-color: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1); }
.highlight-input { border: 2px solid var(--color-coral); background-color: #ffffff; }

/* Custom Select Dropdown */
.select-input { appearance: none; cursor: pointer; }
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.field-hint { font-size: 0.8rem; color: #94a3b8; margin-top: 6px; }
.form-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 30px 0; }
.section-subheading { font-size: 1.25rem; font-weight: 800; margin-bottom: 25px; }

/* Consent Box */
.consent-box {
    display: flex;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.custom-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: var(--color-teal); margin-top: 2px; }
.consent-text label { font-weight: 700; color: var(--color-slate); cursor: pointer; display: block; }
.consent-text p { font-size: 0.85rem; color: #64748b; margin-top: 5px; line-height: 1.5; }

/* Buttons & State */
.btn-full-width {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.secure-footer-note { text-align: center; font-size: 0.8rem; color: #94a3b8; margin-top: 15px; }

.hidden { display: none !important; }
.btn-loading { opacity: 0.75; cursor: not-allowed; }

/* Processing Spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Success State */
.success-state { text-align: center; padding: 40px 0; }
.success-icon-circle {
    width: 80px; height: 80px;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px auto;
}
.success-state h3 { font-size: 1.8rem; font-weight: 800; color: var(--color-teal); margin-bottom: 10px; }
.success-state p { color: #64748b; margin-bottom: 30px; font-size: 1.1rem; }
.btn-text {
    background: none; border: none;
    color: var(--color-teal); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; border-bottom: 2px solid transparent;
    padding-bottom: 3px; transition: border-color 0.2s;
}
.btn-text:hover { border-color: var(--color-teal); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .reminder-page-header { padding: 50px 20px 120px 20px; }
    .reminder-page-header h1 { font-size: 2.2rem; }
    .form-card-body { padding: 40px 25px; }
    .integrated-card { margin-top: -70px; border-radius: 12px; }
}

/* ==========================================================================
   Review Score Formatting
   ========================================================================== */
.score-display-wrapper {
    display: flex;
    align-items: baseline; /* Locks the bottom of the numbers perfectly in line */
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
}

.out-of-five {
    font-size: 1.8rem;
    font-weight: 700;
    color: #94a3b8; /* A premium, muted slate grey */
}

/* ==========================================================================
   Historical Trust Platforms (Checkatrade, Trustpilot, Yell)
   ========================================================================== */
.historical-trust-row {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.trust-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-platform-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    color: #475569;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Brand Hover Colors */
.platform-btn:hover {
    color: #ffffff;
    border-color: transparent;
}

.checkatrade-btn:hover { background-color: #002244; } /* Checkatrade Navy */
.trustpilot-btn:hover { background-color: #00b67a; } /* Trustpilot Green */
.trustpilot-btn:hover svg { fill: #ffffff !important; color: #ffffff !important; }
.yell-btn:hover { background-color: #ffde00; color: #111111; } /* Yell Yellow */

/* ==========================================================================
   Process Section (How it Works)
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: var(--radius-premium);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.process-number {
    position: absolute;
    top: -10px;
    right: 5px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 132, 176, 0.04); /* Huge, extremely faint background number */
    line-height: 1;
    z-index: 0;
}

.process-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.process-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-slate);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.process-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Dynamic Coverage Section (Anti-List & Ticker)
   ========================================================================== */
.dynamic-coverage-section {
    padding: 90px 0 0 0; /* No bottom padding so ticker touches the footer */
    background-color: #f1f5f9;
}

/* ==========================================================================
   Compact County Cards (Replacing the tall visual grid)
   ========================================================================== */
.compact-county-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout is much shorter vertically */
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.compact-county-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.compact-county-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Draws slight attention to your home county */
.featured-county {
    border-left: 4px solid var(--color-teal);
}

.county-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.county-info svg {
    width: 20px;
    height: 20px;
}

.county-name {
    font-weight: 700;
    color: var(--color-slate);
    font-size: 1.05rem;
}

.county-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
}

.hq-badge {
    background: rgba(0, 132, 176, 0.1);
    color: var(--color-teal);
}

.outline-badge {
    background: transparent;
    border: 1px solid #cbd5e1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .compact-county-grid {
        grid-template-columns: 1fr; /* Stacks neatly on phones */
    }
}

.county-visual-card {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: var(--radius-premium);
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.county-visual-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 15px;
}

.county-visual-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-slate);
    margin-bottom: 10px;
}

.county-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
}

/* The SEO Infinite Ticker */
.seo-ticker-wrapper {
    background-color: var(--color-slate);
    color: #cbd5e1;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.seo-ticker-track {
    display: flex;
    animation: scrollTicker 40s linear infinite;
}

.ticker-content {
    display: flex;
    gap: 15px;
    padding-right: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ticker-content span {
    color: #ffffff;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the width to loop seamlessly */
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
    .process-grid, .county-visual-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .process-grid, .county-visual-grid { grid-template-columns: 1fr; }
}

