:root {
    --cbl-ink: #1C2430;
    --cbl-muted: #5B6675;
    --cbl-border: #E9EDF1;
    --cbl-surface: #F7F9FB;
}

.cbl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.grid-2 {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
}

.cbl-hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cbl-muted);
    font-size: 14px;
}

.cbl-hero-stars {
    color: #FFBF3D;
    letter-spacing: 2px;
    font-size: 14px;
}

.cbl-hero-score {
    font-weight: 700;
    color: var(--cbl-ink);
}

.cbl-hero-title {
    font-size: 35px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--cbl-ink);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 18px;
}

.title-2 {
    font-size: 36px;
}

.cbl-hero-accent {
    color: var(--theme-color);
}

.cbl-hero-desc {
    color: #363b42;
    font-size: 15px;
    line-height: 1.5;
    max-width: 720px;
    margin-bottom: 22px;
}

.cbl-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.cbl-hero-benefits li {
    display: flex;
    align-items: center;
    color: var(--cbl-ink);
    font-size: 15px;
    font-weight: 500;
}

.cbl-hero-benefits i {
    color: var(--theme-color);
    margin-right: 8px;
}

.cbl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cbl-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 4px;
    border: 1px solid var(--cbl-ink);
    color: var(--cbl-ink);
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.cbl-btn-outline:hover {
    background: var(--cbl-ink);
    color: #FFF;
}

.cbl-hero-badges {
    margin-top: 26px;
    margin-bottom: 26px;
}

.cbl-hero-badges img {
    max-width: 100%;
    width: 35%;
}

@media (max-width: 991px) {
    .cbl-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .grid-2 div:nth-child(1) {
        order: 2;
    }

    .grid-2 div:nth-child(2) {
        order: 1;
    }

    .cbl-hero-title {
        font-size: 32px;
    }

    .cbl-hero-desc {
        font-size: 15px;
        max-width: none;
    }
}

@media (max-width: 575px) {
    .cbl-hero-title {
        font-size: 27px;
    }
}

/* Quote Form */
.cbl-quote-card {
    background: #FFFFFF;
    border: 1px solid var(--cbl-border);
    border-radius: 16px;
    box-shadow: 0 20px 45px -20px rgba(28, 36, 48, 0.18);
    padding: 22px 26px !important;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.cbl-quote-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--theme-color), #6FD6C4);
}

.cbl-quote-header {
    margin-bottom: 14px;
}

.cbl-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cbl-surface);
    color: var(--theme-color);
    font-size: 17px;
}

.cbl-quote-header h3 {
    font-size: 25px;
    font-weight: 800;
    color: var(--cbl-ink);
    margin-bottom: 4px;
}

.cbl-quote-form .form-title p {
    /* color: var(--cbl-muted); */
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
}

.cbl-quote-form .custom-form {
    margin-bottom: 10px !important;
}

.cbl-quote-form .custom-input,
.cbl-quote-form .custom-textarea {
    position: relative;
}

/* Higher-specificity prefix needed here: the legacy site-wide
   ".custom-quote-section .right-sidebar-box .custom-form .custom-input i"
   rules (and an !important input padding rule) outrank a plain
   ".cbl-quote-form ..." selector, so icons/inputs must match or beat that chain. */
.custom-quote-section .right-sidebar-box.cbl-quote-card .custom-form .custom-input i,
.custom-quote-section .right-sidebar-box.cbl-quote-card .custom-form .custom-textarea i {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--cbl-muted) !important;
    font-size: 14px !important;
    pointer-events: none;
    transition: color .2s ease;
}

.custom-quote-section .right-sidebar-box.cbl-quote-card .custom-form .form-control:focus + i {
    color: var(--theme-color) !important;
}

.cbl-quote-form .form-control {
    width: 100%;
    height: 42px;
    border: 1px solid var(--cbl-border);
    background: var(--cbl-surface);
    border-radius: 8px;
    font-size: 14px;
    color: var(--cbl-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cbl-quote-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6675' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.custom-quote-section .right-sidebar-box.cbl-quote-card .custom-form .custom-textarea .form-control {
    height: 100px !important;
    padding: 10px 16px 10px 42px !important;
    line-height: 1.5;
    border: 1px solid #d0d0d0 !important;
}

.cbl-quote-form .form-control::placeholder {
    color: #94A0AD;
}

.cbl-quote-form .form-control:focus {
    outline: none;
    background: #FFF;
    border-color: var(--theme-color);
    /* box-shadow: 0 0 0 4px rgba(var(--theme-color-rgb, 15, 157, 130), 0.12); */
}

.cbl-quote-form .form-control.has-error {
    border-color: #E2544B;
}

.cbl-quote-form .validation-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #E2544B;
    font-size: 14px;
    cursor: help;
}

.cbl-quote-form .send-quote {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    letter-spacing: .2px;
    margin-top: 6px !important;
}

.cbl-quote-form .cbl-quote-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--cbl-muted);
    font-size: 12px;
    margin: 10px 0 0;
}

@media (max-width: 575px) {
    .cbl-quote-card {
        padding: 20px 18px;
    }
}
