:root {
    --cbc-teal-bg: #40D6D6;
    --cbc-input-yellow: #ffff54;
    --cbc-border-yellow: #e6e600;
    --cbc-dark-navy: #002b49;
    --cbc-text-black: #111111;
    --cbc-white: #ffffff;
    --cbc-error-red: #dc3545;
    --cbc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Smooth auto-scrolling */
html {
    scroll-behavior: smooth;
}

/* Fluid responsive wrapper */
.cbc-form-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 45px 35px;
    background-color: var(--cbc-teal-bg);
    color: var(--cbc-text-black);
    font-family: var(--cbc-font);
    box-sizing: border-box;
    border-radius: 6px;
}

.cbc-form-wrapper * {
    box-sizing: border-box;
}

.cbc-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 35px;
    font-weight: bold;
    text-align: center;
}

/* Section Dividers & Spacing */
.cbc-section {
    margin-bottom: 70px;
}

.cbc-section:last-child,
.cbc-section:last-of-type {
    margin-bottom: 0;
}

.cbc-section-header {
    text-align: center;
    position: relative;
    margin: 0 0 35px 0;
}

.cbc-section-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 43, 73, 0.3);
    z-index: 1;
}

.cbc-section-title {
    display: inline-block;
    position: relative;
    z-index: 2;
    background-color: var(--cbc-teal-bg);
    padding: 0 20px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--cbc-dark-navy);
    text-transform: uppercase;
    margin: 0;
}

/* Fields & Labels */
.cbc-field-group {
    display: flex;
    flex-direction: column;
}

.cbc-field-group label {
    font-size: 13px;
    font-weight: 800;
    color: var(--cbc-dark-navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* 46px Input Field Heights & Padding */
.cbc-field-group input[type="text"],
.cbc-field-group input[type="email"],
.cbc-field-group input[type="tel"],
.cbc-field-group input[type="number"],
.cbc-field-group input[type="date"],
.cbc-field-group input[type="time"],
.cbc-field-group select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    background-color: var(--cbc-input-yellow);
    border: 1px solid var(--cbc-border-yellow);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cbc-text-black);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.cbc-field-group textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    background-color: var(--cbc-input-yellow);
    border: 1px solid var(--cbc-border-yellow);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cbc-text-black);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.cbc-field-group select option[disabled] {
    color: #777777;
}

.cbc-field-group input:focus,
.cbc-field-group select:focus,
.cbc-field-group textarea:focus {
    border-color: var(--cbc-dark-navy);
    box-shadow: 0 0 5px rgba(0, 43, 73, 0.4);
}

/* -------------------------------------------------------------------------
   RED HIGHLIGHTS ON ERROR (Client Request 01 & 02)
   ------------------------------------------------------------------------- */
.cbc-input-error {
    border: 2px solid var(--cbc-error-red) !important;
    background-color: #fff9f9 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5) !important;
}

.cbc-card-error {
    border: 2px solid var(--cbc-error-red) !important;
    background-color: rgba(220, 53, 69, 0.08) !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.45) !important;
    border-radius: 6px;
    padding: 14px;
}

/* Field Hints */
.cbc-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(0, 43, 73, 0.85);
}

/* Service Area Notice below Address */
.cbc-service-area-notice {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cbc-dark-navy);
    line-height: 1.4;
}

/* Immediate Inline Validation Alerts */
.cbc-field-inline-alert {
    margin-top: 6px;
    padding: 6px 10px;
    background-color: #ffe6e6;
    color: #b30000;
    border: 1px solid #ff9999;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

/* Service Desc Notice */
.cbc-service-desc-text {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--cbc-dark-navy);
    letter-spacing: 0.5px;
}

.cbc-inline-link {
    color: #ff0000;
    text-decoration: underline;
    font-weight: 900;
    padding: 0 3px;
    transition: color 0.2s ease;
}

.cbc-inline-link:hover {
    color: #b30000;
}

/* Grid Systems */
.cbc-grid {
    display: grid;
    column-gap: 18px;
    row-gap: 25px;
}

.cbc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cbc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Bathroom Builder & Cards */
.cbc-bathroom-builder-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--cbc-dark-navy);
    text-transform: uppercase;
}

.cbc-sub-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--cbc-dark-navy);
    margin-bottom: 16px;
    line-height: 1.4;
}

.cbc-bathroom-card {
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 43, 73, 0.25);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cbc-bathroom-header {
    margin-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 43, 73, 0.25);
    padding-bottom: 8px;
}

.cbc-bathroom-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--cbc-dark-navy);
    text-transform: uppercase;
}

.cbc-fixture-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 14px;
}

.cbc-fixture-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--cbc-dark-navy);
    cursor: pointer;
    user-select: none;
}

.cbc-fixture-item input {
    margin-right: 8px;
    width: 17px;
    height: 17px;
    accent-color: var(--cbc-dark-navy);
}

/* Final Estimated Total Box */
.cbc-total-section {
    margin-bottom: 70px;
}

.cbc-total-single-box {
    background-color: var(--cbc-input-yellow);
    border: 2px solid var(--cbc-dark-navy);
    border-radius: 6px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cbc-total-single-box .cbc-total-label {
    font-size: 14px;
    font-weight: 900;
    color: var(--cbc-dark-navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cbc-total-single-box .cbc-total-highlight {
    font-size: 32px;
    font-weight: 900;
    color: var(--cbc-dark-navy);
}

.cbc-custom-quote-banner {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 8px;
    text-align: center;
}

.cbc-estimate-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(0, 43, 73, 0.9);
    font-style: italic;
    margin-top: 14px;
    text-align: center;
    padding: 0 10px;
}

/* Dynamic Validation Warnings */
.cbc-validation-alert {
    display: none;
    background: #ffe6e6;
    color: #b30000;
    border: 1px solid #ff9999;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 18px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Notice Banner */
.cbc-notice-banner {
    background-color: transparent;
    font-size: 17px;
    font-weight: 900;
    color: var(--cbc-dark-navy);
    margin: 28px 0;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.cbc-col-comments {
    grid-column: span 1;
}

/* Terms and Conditions */
.cbc-terms-row {
    margin: 30px 0 35px 0;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease, border 0.2s ease;
}

.cbc-terms-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--cbc-dark-navy);
    cursor: pointer;
}

.cbc-terms-label input {
    margin-right: 8px;
    width: 17px;
    height: 17px;
    accent-color: var(--cbc-dark-navy);
}

.cbc-terms-link {
    color: #ff0000;
    text-decoration: underline;
    font-weight: 900;
}

/* Submit Button - Always Clickable so it can trigger smooth auto-scroll to missing fields */
.cbc-submit-button {
    display: block;
    margin: 0 auto;
    height: 46px;
    line-height: 44px;
    background-color: var(--cbc-input-yellow);
    color: var(--cbc-dark-navy);
    border: 1px solid var(--cbc-border-yellow);
    padding: 0 50px;
    font-size: 15px;
    font-weight: 900;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cbc-submit-button:hover {
    background-color: #f2f200;
    transform: translateY(-1px);
}

/* Responsive: Tablet View */
@media (max-width: 992px) {
    .cbc-section,
    .cbc-total-section {
        margin-bottom: 50px;
    }

    .cbc-fixture-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsive: Mobile View */
@media (max-width: 768px) {
    .cbc-form-wrapper {
        padding: 25px 16px;
    }

    .cbc-section,
    .cbc-total-section {
        margin-bottom: 35px;
    }

    .cbc-grid-3,
    .cbc-grid-2,
    .cbc-schedule-row {
        grid-template-columns: 1fr;
    }

    .cbc-fixture-grid {
        grid-template-columns: 1fr;
    }

    .cbc-section-title {
        font-size: 17px;
        padding: 0 10px;
    }

    .cbc-notice-banner {
        font-size: 15px;
    }

    .cbc-submit-button {
        width: 100%;
        text-align: center;
    }
}