
.configurator-page section {
    padding: 0;
}

.form-panel {
    padding: 28px;
}

.preview-services,
.preview-gallery,
.preview-testimonials,
.preview-contact-section {
    padding: 60px 42px;
}

/* ================================
    Variables
==================================*/

:root {
    --preview-primary: #2f6b25;
    --preview-secondary: #070d18;
}

/* ================================
    Base
================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f7f9;
    color: #111827;
}

button {
    font: inherit;
    cursor: pointer;
}

/* ================================
    Top Navigation
================================ */

.top-nav {
    height: 72px;
    background: #111522;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand span {
    width: 2px;
    height: 24px;
    background: #d80d1e;
}

.brand p {
    font-size: 18px;
}

.top-nav nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.nav-button {
    border: 1px solid white;
    padding: 12px 22px;
    border-radius: 4px;
}

/* ================================
    Page Header
================================ */

.configurator-page {
    padding: 28px 32px 40px;
}

.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    top: 0;
    z-index: 50;
    background: #f6f7f9;
    padding: 20px 0;
}

.page-intro h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.page-intro p {
    color: #5f6b7a;
    font-size: 18px;
    margin-bottom: 10px;
}

.page-intro small {
    font-size: 16px;
}

#requestWebsiteTop {
    display: inline-block;
    text-decoration: none;
    color: white;
    text-align: center;
    padding: 14px 24px;
}

html {
    scroll-behavior: smooth;
}

/* ==================================
    Price Card
=================================== */

.price-card {
    background: white;
    width: 260px;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.price-card p {
    margin: 0;
    font-size: 14px;
}

.price-card strong {
    display: block;
    font-size: 34px;
    margin: 8px 0;
}

.price-card span {
    color: #d80d1e;
    font-weight: 600;
}

/* ================================
    Steps
================================ */

.step-bar {
    display: flex;
    justify-content: center;
    gap: 42px;
    margin-bottom: 28px;
}

.step {
    position: relative;
    width: 110px;
    color: #6b7280;
    text-align: center;
    font-weight: 700;
}

.step span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.step.active {
    color: #d80d1e;
}

/* ================================
    Layout
================================ */

.builder-layout {
    display: grid;
    grid-template-columns: 250px 430px 1fr;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ================================
    Sidebar
================================ */

.summary-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px;
    gap: 22px;
}

.summary-card {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 0 0 22px;
    background: transparent;
}

.summary-card p {
    color: #667085;
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-card:last-child {
    border-bottom: none;
}

.summary-card strong,
#summaryPrice {
    font-size: 34px;
    color: #111827;
}

.summary-list {
    list-style: none;
}

.summary-list li {
    padding: 7px 0;
    font-size: 15px;
}

.summary-list li::before {
    content: "○";
    color: #9ca3af;
    margin-right: 8px;
}

.summary-list li.active {
    color: #111827;
    font-weight: 700;
}

.summary-list li.active::before {
    content: "✓";
    color: var(--preview-primary);
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: var(--preview-primary);
}



/* ================================
    Form Panel
================================ */

.form-panel {
    padding: 28px;
    border-right: 1px solid #e5e7eb;
}

.form-panel h3 {
    margin: 32px 0 18px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
}

.form-panel h2 {
    margin-bottom: 8px;
}

.form-panel>p {
    color: #667085;
    margin-bottom: 28px;
}

.form-panel label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-panel input,
.form-panel textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cfd6df;
    border-radius: 5px;
    margin-bottom: 24px;
    font-size: 15px;
}

.form-panel textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.field-helper,
#galleryCount,
#taglineCounter {
    margin-top: -14px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 13px;
}

.section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #111827;
    color: #fff;

    border: none;
    border-radius: 8px;

    padding: 16px 20px;
    margin: 0 0 16px;

    font-size: 20px;
    font-weight: 700;
    cursor: pointer;

    transition: background 0.2s ease;
}

.section-toggle:hover {
    background: #1b2233;
}

.toggle-arrow {
    font-size: 18px;
    transition: transform .25s ease;
}

.form-section-content {
    border-left: 3px solid #d80d1e;
    padding-left: 16px;
    margin-bottom: 24px;
}

.form-section-content.collapsed {
    display: none;
}

/* ================================
    Checkboxes + Collapses
================================ */

.checkbox-group {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.collapse-button {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 12px;
    margin: 8px 0 18px;
    text-align: left;
    font-weight: 700;
}

.collapse-button:hover {
    background: #f3f4f6;
}

.field-collapse {
    border-left: 3px solid #d80d1e;
    padding-left: 16px;
    margin-bottom: 24px;
}

.field-collapse.collapsed {
    display: none;
}

/* ================================
    Form Buttons
================================ */

.primary-button {
    width: 100%;
    background: #d80d1e;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 8px;
}

.back-button {
    display: block;
    margin: 18px auto 0;
    background: none;
    border: none;
    color: #4b5563;
}

/* ================================
    Preview Panel
================================ */

.preview-panel {
    position: sticky;
    top: 96px;
    align-self: start;
}

.preview-site {
    background: white;
}

.preview-nav {
    background: var(--preview-secondary);
    color: white;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.preview-nav nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.preview-nav a {
    color: white;
    font-size: 14px;
}

.preview-nav button,
.preview-hero button {
    background: var(--preview-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
}

/* ================================
    Preview Hero
================================ */

.preview-hero {
    min-height: 420px;
    padding: 80px 60px;
    color: white;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25)),
        url("../assets/tree-surgery.jpg");
    background-size: cover;
    background-position: center;
}

.preview-hero span {
    display: inline-block;
    color: var(--preview-primary);
    border: var(--preview-primary);
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 22px;
}

.preview-hero h2 {
    font-size: 44px;
    max-width: 520px;
    line-height: 1.1;
    margin-bottom: 22px;
}

.preview-hero p {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.preview-hero .outline {
    background: transparent;
    border: 1px solid white;
    margin-left: 10px;
}

.preview-contact-strip {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

.preview-contact-strip span {
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 4px;
}

/* ================================
    Shared Preview Sections
================================ */

.preview-services,
.preview-gallery,
.preview-testimonials {
    padding: 60px 42px;
    text-align: center;
}

.preview-services h2,
.preview-gallery h2,
.preview-testimonials h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.preview-services>p,
.preview-gallery>p {
    color: #4b5563;
    margin-bottom: 28px;
}

/* ================================
    Services
================================ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-grid article {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 28px 18px;
    font-size: 34px;
}

.service-grid h3 {
    font-size: 16px;
    margin: 12px 0;
}

.service-grid p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.form-panel select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cfd6df;
    border-radius: 5px;
    margin-bottom: 24px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: #111827;
}

.form-panel select:focus {
    outline: none;
    border-color: var(--preview-primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 37, 0.15);
}

.form-panel optgroup {
    font-weight: 700;
    color: #111827;
}

.form-panel option {
    font-weight: 400;
}

/* ================================
    Testimonials
================================ */

.preview-testimonials {
    background: #ffffff;
}

.preview-testimonials h2 {
    margin-bottom: 28px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.testimonial-grid article {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 28px 22px;
    background: #f9fafb;
    text-align: center;
}

.testimonial-grid h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-grid p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

/* ================================
    Gallery
================================ */

.preview-gallery {
    background: #f9fafb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-grid img,
.gallery-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 5px;
    object-fit: cover;
}

.gallery-placeholder {
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ================================
    Contact Section
================================ */

.preview-contact-section {
    padding: 60px 42px;
    background: white;
    text-align: center;
}

.preview-contact-section h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.preview-contact-section>div:first-child p {
    color: #4b5563;
    margin-bottom: 28px;
}

.contact-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    text-align: left;
}

.contact-card p {
    margin-bottom: 12px;
    color: #4b5563;
}

.contact-card strong {
    color: #111827;
}

/* ================================
    Preview Footer
================================ */

.site-footer {
    background: var(--preview-secondary);
    color: white;
    padding: 36px 42px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.site-footer strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.site-footer p {
    color: #d1d5db;
    margin-bottom: 6px;
}

.preview-footer {
    background: var(--preview-secondary);
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-footer p {
    color: #d1d5db;
    font-size: 14px;
}

.preview-footer button {
    margin-left: auto;
    background: transparent;
    color: white;
    border: 1px solid #4b5563;
    padding: 10px 18px;
    border-radius: 4px;
}


.preview-modal {
    position: fixed;
    inset: 0;
    background: #f3f4f6;
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.preview-modal.active {
    display: block;
}

.preview-modal-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #070d18;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-modal-header button {
    background: white;
    color: #070d18;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.preview-modal-body {
    max-width: 1200px;
    margin: 32px auto;
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ================================
    Submit Button/CTA
================================ */

.submit-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.submit-section h3 {
    margin-bottom: 12px;
}

.submit-section p {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 24px;
}

.form-price-card {
    width: 100%;
    margin: 32px 0 20px;
}

/* ================================
    Responsiveness
================================ */

@media (max-width: 900px) {

    .top-nav {
        height: auto;
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .top-nav nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .configurator-page {
        padding: 20px 14px 32px;
    }

    .page-intro {
        position: static;
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }

    .page-intro .price-card {
        display: none;
    }


    .builder-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow: visible;
    }

    .summary-sidebar,
    .preview-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .sidebar,
    .summary-sidebar,
    .form-panel,
    .preview-panel {
        width: 100%;
        border-right: none;
    }

    .form-panel {
        padding: 22px;
    }

    .preview-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .preview-nav nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .preview-hero {
        padding: 56px 28px;
        min-height: 360px;
    }

    .preview-hero h2 {
        font-size: 34px;
    }

    .preview-contact-strip {
        flex-direction: column;
        gap: 10px;
    }

    .service-grid,
    .testimonial-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }

    .preview-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .preview-footer button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 1200px) {

    .builder-layout {
        grid-template-columns: 220px 420px 1fr;
        gap: 20px;
    }

    .form-panel {
        padding: 22px;
    }

}

@media (max-width: 992px) {

    .builder-layout {
        grid-template-columns: 1fr;
    }

    .summary-sidebar,
    .preview-panel {
        position: static;
    }

}