/* ============================================================
   DCBS Quote Section — shared partial
   ============================================================ */

.dcbs-quote {
    background: #f0f2f8;
    padding: 105px var(--pad-x-desktop);
    position: relative;
    overflow: hidden;
}

/* Overlay backgrounds — chosen via modifier class */
.dcbs-quote::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.dcbs-quote--overlay-1::before {
    background-image: url('/wp-content/uploads/2026/06/overlay-1.webp');
    background-position: top right;
}

.dcbs-quote--overlay-2::before {
    background-image: url('/wp-content/uploads/2026/06/overlay-2.webp');
}

.dcbs-quote__inner {
    max-width: var(--site-max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

/* ── Form card ─────────────────────────────────────────────── */

.dcbs-quote__form-card {
    flex-shrink: 0;
    width: 50%;
    background: var(--dark);
    padding: 40px;
    position: relative;
}

.dcbs-quote__form-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 32px;
}

.dcbs-quote__tail {
    position: absolute;
    bottom: -66px;
    left: 0;
    width: 68px;
    height: 68px;
    background: var(--dark);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ── Right col — heading + body + sub ─────────────────────── */

.dcbs-quote__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.dcbs-quote__heading {
    font-family: var(--font-heading);
    font-size: clamp(40px, 4.17vw, 60px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin: 0;
    text-transform: capitalize;
}

.dcbs-quote__heading .dcbs-quote__accent {
    color: var(--accent);
}

.dcbs-quote__body {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.1;
    margin: 0;
}

.dcbs-quote__body p {
    margin: 0 0 0.75em;
}

.dcbs-quote__body p:last-child {
    margin-bottom: 0;
}

/* ── Sub / CTA (inside __text) ─────────────────────────────── */

.dcbs-quote__sub {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.dcbs-quote__sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dcbs-quote__sub-divider {
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(18, 14, 31, 0.2);
}

.dcbs-quote__sub-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: rgba(18, 14, 31, 0.6);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.dcbs-quote__sub-body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.1;
}

.dcbs-quote__cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin-top: 4px;
}

.dcbs-quote__cta-btn {
    background: var(--dark);
    color: var(--neutral);
    flex-shrink: 0;
}

.dcbs-quote__cta-btn:hover {
    background: #1e182e;
    color: var(--neutral);
}

.dcbs-quote__phone {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

/* ── WPForms overrides ─────────────────────────────────────── */

.dcbs-quote__form-card .wpforms-form .wpforms-field {
    padding: 0 0 24px;
}

.dcbs-quote__form-card .wpforms-form .wpforms-field-label {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.dcbs-quote__form-card .wpforms-form input[type="text"],
.dcbs-quote__form-card .wpforms-form input[type="email"],
.dcbs-quote__form-card .wpforms-form input[type="tel"],
.dcbs-quote__form-card .wpforms-form input[type="number"],
.dcbs-quote__form-card .wpforms-form input[type="url"],
.dcbs-quote__form-card .wpforms-form select,
.dcbs-quote__form-card .wpforms-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
    outline: none;
    box-shadow: none;
}

.dcbs-quote__form-card .wpforms-form input::placeholder,
.dcbs-quote__form-card .wpforms-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.dcbs-quote__form-card .wpforms-form input:focus,
.dcbs-quote__form-card .wpforms-form select:focus,
.dcbs-quote__form-card .wpforms-form textarea:focus {
    border-bottom-color: #fff;
    box-shadow: none;
    outline: none;
}

.dcbs-quote__form-card .wpforms-form select {
    appearance: none;
    cursor: pointer;
}

.dcbs-quote__form-card .wpforms-form select option {
    background: var(--dark);
    color: #fff;
}

.dcbs-quote__form-card .wpforms-form .wpforms-submit-container {
    padding: 0;
    margin: 0;
}

.dcbs-quote__form-card .wpforms-form .wpforms-submit {
    background: var(--accent);
    border: none;
    color: var(--neutral);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    height: 50px;
    width: 100%;
    cursor: pointer;
    border-radius: 0;
    letter-spacing: 0;
    padding: 0 40px;
    transition: background 200ms ease;
}

.dcbs-quote__form-card .wpforms-form .wpforms-submit:hover {
    background: #1e3a77;
}

.dcbs-quote__form-card .wpforms-form .wpforms-field-select .wpforms-field-label::after {
    display: none;
}

/* ============================================================
   Responsive — Smaller desktop (≤ 1366px)
   ============================================================ */

@media (max-width: 1366px) {
    .dcbs-quote__inner {
        gap: 60px;
    }
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .dcbs-quote {
        padding: 80px var(--pad-x-tablet);
    }

    .dcbs-quote__inner {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .dcbs-quote__text      { order: 1; }
    .dcbs-quote__form-card { order: 2; width: 100%; padding: 22px; }

    .dcbs-quote__heading { font-size: 48px; }

    .dcbs-quote__form-title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .dcbs-quote__tail {
        display: block;
        width: 36px;
        height: 36px;
        bottom: -35px;
    }

    .dcbs-quote__cta-row { flex-direction: column; align-items: center; gap: 12px; }

    .dcbs-quote__sub-body { text-align: center; }
}

/* ============================================================
   Responsive — Mobile (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {

    .dcbs-quote {
        padding: 48px var(--pad-x-mobile);
    }

    .dcbs-quote__inner {
        gap: 20px;
    }

    .dcbs-quote__heading { font-size: 42px; line-height: 1.1; }

    .dcbs-quote__form-card {
        padding: 22px;
        margin-bottom: 35px;
    }

    .dcbs-quote__form-title { font-size: 24px; margin-bottom: 20px; }

    .dcbs-quote__tail { display: block; width: 36px; height: 36px; bottom: -35px; }

    .dcbs-quote__cta-btn { width: 100%; text-align: center; }
}
