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

.dcbs-quote {
    background: #f0f2f8;
    padding: 80px var(--pad-x) 148px;
    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: center;
    gap: 80px;
}

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

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

.dcbs-quote__form-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 32px;
    text-align: center;
}

.dcbs-quote__tail {
    position: absolute;
    bottom: -48px;
    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;
}

.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;
}

.dcbs-quote__cta {
    margin-top: 24px;
    align-self: flex-start;
}

/* ── 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: 300;
    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 20px;
}

.dcbs-quote__form-card .wpforms-form .wpforms-field-layout {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.dcbs-quote__form-card .wpforms-uploader {
    background: transparent !important;
    border: 1px solid #c4cce4 !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
}

.dcbs-quote__form-card .wpforms-uploader svg path {
    fill: #fff;
}

.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 .wpforms-field input,
.dcbs-quote__form-card .wpforms-form .wpforms-field textarea,
.dcbs-quote__form-card .wpforms-form .wpforms-field select {
    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;
}

/* Remove number-input spinner arrows (phone field) */
.dcbs-quote__form-card .wpforms-form .wpforms-field input[type="number"]::-webkit-outer-spin-button,
.dcbs-quote__form-card .wpforms-form .wpforms-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dcbs-quote__form-card .wpforms-form .wpforms-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.dcbs-quote__form-card .wpforms-form .wpforms-field textarea {
    padding: 8px 0 !important;
    resize: vertical !important;
}

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

.dcbs-quote__form-card .wpforms-form .wpforms-field input:focus,
.dcbs-quote__form-card .wpforms-form .wpforms-field select:focus,
.dcbs-quote__form-card .wpforms-form .wpforms-field textarea:focus {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff !important;
    caret-color: #fff;
}
.dcbs-quote__form-card .wpforms-form .wpforms-field input:focus::placeholder,
.dcbs-quote__form-card .wpforms-form .wpforms-field textarea:focus::placeholder {
    color: transparent;
}

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

.dcbs-quote__form-card .wpforms-form .wpforms-field.wpforms-field-select-style-classic select {
    padding-inline-start: 0 !important;
}

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

.dcbs-quote__form-card .wpforms-form select option.placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.dcbs-quote__form-card .wpforms-form .wpforms-field select:has(option.placeholder:checked),
.dcbs-quote__form-card .wpforms-form .wpforms-field select:focus:has(option.placeholder:checked) {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Modern (Choices.js) multi-select dropdown */
.dcbs-quote__form-card .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices .choices__inner {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding-left: 0px !important;
}
.dcbs-quote__form-card .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices .choices__inner .choices__list--multiple {
    display: flex !important;
    flex-wrap: wrap;
}
.dcbs-quote__form-card .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices input.choices__input {
    width: 100% !important;
}
.dcbs-quote__form-card .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices .choices__input.choices__input--cloned::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.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: 600;
    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;
}

.dcbs-quote__form-card .wpforms-confirmation-container-full {
    background: #c4cce4 !important;
    border: 1px solid #c4cce4 !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
}

/* Mobile/tablet-only duplicates — hidden on desktop.
   Placed last among base rules so it wins over .dcbs-quote__text /
   .dcbs-quote__sub (equal specificity, cascade order decides). */
.dcbs-quote__text--mobile,
.dcbs-quote__sub--mobile {
    display: none;
}

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

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

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

@media (max-width: 1024px) {

    .dcbs-quote::before { background-size: 250%; }

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

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

    /* Swap in the mobile/tablet duplicates so form card can sit
       between heading/body and the sub CTA */
    .dcbs-quote__text--desktop { display: none; }

    .dcbs-quote__text--mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        order: 1;
    }

    .dcbs-quote__cta { align-self: center; }

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

    .dcbs-quote__sub--mobile {
        display: flex;
        order: 3;
        margin-top: 0;
    }

    .dcbs-quote__heading { font-size: 48px; text-align: center; }
    .dcbs-quote__body { text-align: center; }

    .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; text-align: left; }
	.dcbs-quote__body {text-align: left;font-size: 16px; font-weight: 400; }
    .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 {width: 100%; margin-top: 0;}
    .dcbs-quote__cta-btn { width: 100%; text-align: center; }
}
