/* =========================================
   CALCULATOR ERROR BOX STYLING
   ========================================= */

.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1.5;
    display: none; /* Hidden by default */
}

/* Error state (validation failed) */
.wpcf7-response-output.wpcf7-validation-errors {
    background-color: #fee;
    border: 2px solid #dc3232;
    color: #dc3232;
    display: block;
}

/* Spam detected */
.wpcf7-response-output.wpcf7-spam-blocked {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    display: block;
}

/* Mail sent successfully */
.wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    display: block;
}

/* Mail failed to send */
.wpcf7-response-output.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    display: block;
}

/* Custom calculator errors (API errors, validation errors from JS) */
.wpcf7-response-output.calculator-error {
    background-color: #00b3ec;
    border: 2px solid #dc3232;
    color: #006686;
    display: block;
}


/* =========================================
   CHAPTER 1: IMPORTS & TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Master Typography */
.wpcf7, .wpcf7 input, .wpcf7 select, .wpcf7 textarea, .wpcf7 button,
.wpcf7 label, .step-header, .price-value-inline, .area-unit {
    font-family: 'Poppins', sans-serif;
}

/* Step Headers */
.step-header {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
    line-height: 1.2;
}


/* =========================================
   CHAPTER 2: GLOBAL FIELD STYLING
   ========================================= */

/* Standard Inputs */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
    background-color: #1A2433;
    border: 1px solid #2A3648;
    padding: 15px 20px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    color: #ffffff;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Dropdown Arrow */
.wpcf7 select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Remove Number Spinners */
.wpcf7 input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.wpcf7 input[type="number"]::-webkit-outer-spin-button, .wpcf7 input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Placeholders & Labels */
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.wpcf7 label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}


/* =========================================
   CHAPTER 3: HERO CARD (SURFACE & AREA)
   ========================================= */

/* 1. The Container */
.c-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start !important; /* Forces content to the TOP */

    /* The Unified Card Look */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;

    p {
        margin: 0;
    }
}

/* 2. The Toggle Container */
.c-full-width {
    border-top: none;
    display: flex;
    justify-content: center;
    max-width: 30rem;
    width: 100%;
    margin-top: 0.5rem;
    align-self: center;

    p {
        margin: 0;
        width: 100%;
    }
}

/* 3. Header Standardization (Force Left Align) */
.step-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start !important; /* FORCE LEFT */
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: none !important;
    padding-bottom: 0;
    width: 100%;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Area Column Specifics */
.area-side-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to Top */
    align-items: flex-start; /* Align to Left */
    height: 100%;
}

/* 5. The Area Input Container */
.area-square-container {
    display: flex;
    flex-direction: column; /* Stack input and helper text */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .c-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CHAPTER 3b: HEADERS (NO NUMBERS)
   ========================================= */

/* Wrapper for alignment only */
.step-header-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    border-bottom: none; /* REMOVED THE DOTTED LINE */
    padding-bottom: 0;
}

/* The Title Text */
.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-transform: uppercase; /* Adds authority without numbers */
    letter-spacing: 0.5px;
}

/* Area side vertical stack */
.area-side-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 30rem;
    align-self: center;
}

/* =========================================
   CHAPTER 4: DETAILED SECTION (CONTAINER)
   ========================================= */

.detailed-section-container {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 20px;
    display: block;
}

/* THE UNIFIED CARD (LIGHTER) */
.form-section-block {
    /* We use a white overlay to 'lift' the card off the dark page */
    background-color: rgba(255, 255, 255, 0.05);
    /* Alternatively, if you prefer a solid colour, use: #24344d */

    border: 1px solid rgba(255, 255, 255, 0.1); /* Lighter, crisper border */
    border-radius: 12px;
    padding: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem;
    box-sizing: border-box;
    /* A stronger shadow helps 'lift' it further */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Remove the old dashed lines */
.form-section-block:last-child {
    margin-bottom: 0;
}

/* Centered Headers */
.c-full-width-header, .c-full-width-header strong {
    color: #ffffff !important;
    font-size: 18px;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

.c-toggle-row {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    margin-bottom: 20px;
}


/* =========================================
   CHAPTER 5: COMPONENT - TOGGLES
   ========================================= */

.wpcf7-form-control.c-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #e0e0e0;
    border-radius: 30px;
    padding: 4px;
    border: 1px solid #ccc;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wpcf7-form-control.c-toggle .wpcf7-list-item {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.wpcf7-form-control.c-toggle input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
    margin: 0;
}

.wpcf7-form-control.c-toggle .wpcf7-list-item-label {
    display: block;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.wpcf7-form-control.c-toggle input[type="radio"]:checked + .wpcf7-list-item-label {
    background-color: #1A2433;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.c-full-width label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    box-sizing: border-box;
}

.c-full-width .wpcf7-form-control-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.surface-wrapper {
    width: 100%;
    max-width: 30rem;

    align-self: center;

    p {
        display: flex;
        justify-content: center;
    }
}

/* =========================================
   CHAPTER 6: COMPONENT - IMAGE SWATCHES
   ========================================= */

.wpcf7-form-control.image-swatch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wpcf7-form-control.image-swatch .wpcf7-list-item {
    width: 5rem;
    margin: 0;
}

.wpcf7-form-control.image-swatch .wpcf7-list-item-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 12px; /* Slightly smaller font to fit */
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

/* The Image Box */
.wpcf7-form-control.image-swatch .wpcf7-list-item-label::before {
    content: '';
    display: block;
    width: 100% !important; /* Fluid width */
    aspect-ratio: 1 / 1; /* Keeps it perfectly square */
    max-width: 110px; /* Cap the size so they don't get huge */

    background-color: #2A3648;
    background-size: cover;
    background-position: center;
    border: 2px solid #2A3648;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.wpcf7-form-control.image-swatch input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wpcf7-form-control.image-swatch input[type="radio"]:checked + .wpcf7-list-item-label::before {
    border-color: #83B846;
    border-width: 4px;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.wpcf7-form-control.image-swatch input[type="radio"]:checked + .wpcf7-list-item-label {
    color: #ffffff;
    font-weight: 700;
}

/* Swatch URLs (Unchanged) */
.wpcf7-form-control.image-swatch .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::before {
    background-image: url('http://staging.buildadrive.com/wp-content/uploads/2025/12/swatch_tarmac.jpg');
}

.wpcf7-form-control.image-swatch .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::before {
    background-image: url('http://staging.buildadrive.com/wp-content/uploads/2025/12/swatch_block.jpg');
}

.wpcf7-form-control.image-swatch .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::before {
    background-image: url('http://staging.buildadrive.com/wp-content/uploads/2025/12/swatch_flagstone.jpg');
}

.wpcf7-form-control.image-swatch .wpcf7-list-item:nth-child(4) .wpcf7-list-item-label::before {
    background-image: url('http://staging.buildadrive.com/wp-content/uploads/2025/12/swatch_gravel.jpg');
}

.wpcf7-form-control.image-swatch .wpcf7-list-item:nth-child(5) .wpcf7-list-item-label::before {
    background-image: url('http://staging.buildadrive.com/wp-content/uploads/2025/12/swatch_resin.jpg');
}


/* =========================================
   CHAPTER 7: COMPONENT - AREA INPUT BOX
   ========================================= */

.area-square-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

.area-input-group {
    p {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.wpcf7 input.big-square-input {
    height: 6rem;
    width: 12rem;
    padding: 0;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    background-color: #2A3648;
    border: 2px solid #2A3648;
    border-radius: 8px;
    appearance: none;
    margin: 0 !important;
}

.area-unit {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}


/* =========================================
   CHAPTER 8: COMPONENT - QUANTITY STEPPERS
   ========================================= */

.stepper-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background-color: #1A2433;
    border: 1px solid #2A3648;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    height: 50px;
    margin-top: 5px;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
}

.stepper-btn {
    background-color: #58B9AB;
    color: #ffffff;
    border: none;
    width: 50px;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.stepper-btn:hover {
    background-color: #58B9AB !important;
    color: #ffffff !important;
}

.stepper-wrapper input.qty-stepper {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   CHAPTER 9: COMPONENT - INFO TOOLTIPS & MODAL
   ========================================= */

.i-trigger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #6C9F3C;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Perfect centering for the i character */
    padding-bottom: 1px;
    text-transform: none;
}

/* Hover state */
label:hover .i-trigger,
.i-trigger:hover {
    background-color: #4AA396;
    transform: scale(1.05);
}

/* Pulse animation when scrolled into view */
@keyframes i-pulse-once {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 4px 15px rgba(88, 185, 171, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
}

/* Class added by JavaScript when element is in view */
.i-trigger.in-view {
    animation: i-pulse-once 0.6s ease-out;
}

/* Disable pulse animation on specific buttons by adding .no-pulse class */
.i-trigger.no-pulse.in-view {
    animation: none;
}

/* Modal */
.c-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 36, 51, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.c-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.c-modal-box {
    background-color: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 10px;
    border-top: 6px solid #58B9AB;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.c-modal-overlay.open .c-modal-box {
    transform: translateY(0);
}

.c-modal-box h3 {
    color: #1A2433;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.c-modal-box p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    overflow: auto;
}

/* Modal graphic image styling */
.c-modal-box .modal-graphic {
    max-width: none;
    width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Allow larger modal when displaying graphics */
.c-modal-box:has(.modal-graphic) {
    max-width: 1000px;
}

.c-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
}

.c-modal-close:hover {
    color: #58B9AB;
}


/* =========================================
   CHAPTER 10: TOOLBAR
   ========================================= */

.price-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #232f3e;
    border: 1px solid #364659;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative; /* Essential for the Reset button's positioning */
    height: auto;

    p {
        margin: 0;
    }
}

/* --- CALCULATE BUTTON --- */
.btn-calc-compact {
    background-color: #83B846;
    color: #ffffff;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 60px;
    min-width: 240px;
    padding: 0 1rem;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-left: 1rem;
}

/* Hide br tags inside the button */
.btn-calc-compact br {
    display: none;
}

/* Ensure SVG is properly aligned */
.btn-calc-compact svg {
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-calc-compact:hover {
    background-color: #6C9F3C !important;
    transform: translateY(-2px);
}

/* --- PRICE READOUT --- */
.price-readout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    padding-left: 0;
    align-items: center;
    text-align: center;
}

.price-flex-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.price-tag-small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.price-value-inline {
    color: #83B846;
    font-size: 60px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
    display: block;
    margin: 0;
}

.price-vat-small {
    display: block !important;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
    visibility: visible !important;
}

/* --- RESET BUTTON (RESTORED) --- */
.btn-reset-compact {
    position: absolute; /* Pins it to the container */
    right: 20px; /* 20px from the right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: auto; /* Ensures it doesn't stretch */
}

.btn-reset-compact:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

/* Help Trigger */
.price-help-trigger {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    padding: 0;
    margin: 0;
}

.help-text {
    display: inline-block !important;
    width: auto !important;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 18px;
    color: #58B9AB;
    margin: 0 8px 0 0 !important;
}

.help-icon {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background-color: #58B9AB;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

/* Arrow & Mobile */
.price-toolbar::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #83B846;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.price-toolbar.arrow-active::after {
    opacity: 1;
    animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

@media (max-width: 1024px) {
    .price-toolbar {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 2rem;
    }

    .btn-reset-compact {
        position: absolute;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        top: auto;
    }

    .btn-calc-compact {
        margin: 0;
        min-width: 100%;
    }
}

/* =========================================
   CHAPTER 11: CONTACT SECTION (REVEAL)
   ========================================= */

#contact-section {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.8s ease-in-out;
}

#contact-section.active-focus {
    max-height: 1500px;
    opacity: 1;
    padding: 30px !important;
    margin-top: 20px !important;
    border-color: #83B846 !important;
    background-color: rgba(26, 36, 51, 0.5);
    box-shadow: 0 0 20px rgba(131, 184, 70, 0.1);
}

#contact-section .c-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    #contact-section .c-sub-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.c-survey-cta {
    font-family: 'Gloria Hallelujah', cursive;
    color: #58B9AB;
    font-size: 26px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
    display: block;
}

.wpcf7 input[type="submit"] {
    background-color: #83B846;
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 18px;
    width: 100%;
    min-height: 60px;
    height: auto;
    white-space: normal;
    line-height: 1.3;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #6C9F3C;
}

/* Mobile adjustments for submit button */
@media (max-width: 768px) {
    .wpcf7 input[type="submit"] {
        font-size: 16px;
        padding: 12px 20px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .wpcf7 input[type="submit"] {
        font-size: 14px;
        padding: 10px 15px;
        letter-spacing: 0.2px;
    }
}

/* Contact Icons */
input[name="your-name"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2358B9AB' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4 1 1 1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px auto;
    padding-left: 45px !important;
}

input[name="your-email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2358B9AB' viewBox='0 0 16 16'%3E%3Cpath d='M14 3H2c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM2 5h12v.5L8 10 2 5.5V5zm0 10V7l6 4.5L14 7v8H2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px auto;
    padding-left: 45px !important;
}

input[name="your-phone"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2358B9AB' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px auto;
    padding-left: 45px !important;
}

input[name="your-postcode"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2358B9AB' viewBox='0 0 16 16'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px auto;
    padding-left: 45px !important;
}

/* =========================================
   CHAPTER 12: GENERAL ENQUIRY FORM
   ========================================= */

.general-enquiry-form .c-sub-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.general-enquiry-form .contact-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.general-enquiry-form .contact-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto;
}

.general-enquiry-form .contact-message > p, .general-enquiry-form .contact-message .wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.general-enquiry-form textarea {
    height: 100% !important;
    min-height: 240px;
    margin-bottom: 0 !important;
    resize: none;
    flex-grow: 1;
    background-color: #0d1219 !important;
    border: 1px solid #2A3648 !important;
    color: #ffffff !important;
}

.general-enquiry-form input:focus, .general-enquiry-form textarea:focus {
    border-color: #83B846 !important;
    background-color: #000000 !important;
}

.general-enquiry-form input[type="text"], .general-enquiry-form input[type="email"], .general-enquiry-form input[type="tel"] {
    background-color: #0d1219 !important;
    border: 1px solid #2A3648 !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}


/* =========================================
   CHAPTER 13: THE GRID & ALIGNMENT SYSTEM (REVISED)
   ========================================= */

/* 1. Alignment Logic (Applies to all detailed grids) */
.detailed-section-container .c-grid-trio > div,
.detailed-section-container .c-grid-duo > div,
.detailed-section-container .c-sub-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 2. Label Logic (Deletes breaks, locks single line) */
.detailed-section-container label br {
    display: none;
}

.detailed-section-container .c-grid-trio label,
.detailed-section-container .c-grid-duo label,
.detailed-section-container .c-sub-grid label {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
}

/* Make text nodes and i-trigger inline */
.detailed-section-container .c-grid-trio label,
.detailed-section-container .c-grid-duo label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.detailed-section-container .i-trigger {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
}

/* Handle inputs - they should be block level and below the label text */
.detailed-section-container .c-grid-trio label input,
.detailed-section-container .c-grid-duo label input {
    display: block;
    margin: 10px auto 0 auto;
}

/* When input is outside label (wrapped in wpcf7-form-control-wrap) */
.detailed-section-container .c-grid-trio .wpcf7-form-control-wrap,
.detailed-section-container .c-grid-duo .wpcf7-form-control-wrap {
    display: block;
    margin-top: 10px;
}

/* 3. The Trio (For Edging & Steps - 3 Items) */
/* Forces exactly TWO columns on desktop for consistency */
.c-grid-trio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
    br {
        display: none;
    }
}

/* 4. The Duo (For Ducts & Gullies - 2 Items) */
/* Forces exactly two columns, centered and balanced */
.c-grid-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
    max-width: 800px;
    margin: 0 auto; /* Centers the whole grid */
    br {
        display: none;
    }
}

/* 5. Mobile Fallback */
@media (max-width: 1023px) {
    .c-grid-trio, .c-grid-duo {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .c-grid-trio, .c-grid-duo {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   CHAPTER 17: CONTEXT CARDS (SPLIT LAYOUT)
   ========================================= */

/* 1. The Layout Wrapper (No Background now) */
.split-question-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10px; /* Reduced margin */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* We have removed the background and border from here */
    background-color: transparent;
    padding: 0;
    border: none;
}

/* 2. The Left Side (The Decision) */
.split-decision-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px;

    p {
        margin-bottom: 0;
    }
}

/* 3. The Right Side (The Education) */
/* We make this darker to look 'recessed' into the card */
.split-info-card {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.2); /* Darker than the card background */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #58B9AB;
}

/* 4. The Info Card Contents */
.split-info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    background-color: #2A3648;
    opacity: 0.8;
}

.split-info-text h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    font-family: 'Poppins', sans-serif;
}

.split-info-text p {
    color: rgba(255, 255, 255, 0.6); /* Slightly more subtle text */
    font-size: 12px;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 !important;
}

.split-info-instruction {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0 2rem;
    text-align: center;
    br {
        display: none;
    }
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .split-question-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .split-info-card {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    /* Ensure toggles don't overflow on mobile */
    .wpcf7-form-control.c-toggle .wpcf7-list-item-label {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wpcf7-form-control.c-toggle .wpcf7-list-item-label {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* =========================================
   CHAPTER 18: WIDTH CONSTRAINTS (THE CORSET)
   ========================================= */

/* Constrain the width of the main structural blocks */
.c-grid,
.detailed-section-container,
.price-toolbar {
    max-width: 50rem;
    width: 100%;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the detailed section internal blocks follow suit */
.form-section-block {
    margin-left: auto;
    margin-right: auto;
}

