/* =====================================================================
   Seitenweiter Anfragebereich (.cmp-request) im Look der Kampagnenseite
   - Box „Ihre Transportanfrage“ (Container „Formular“, Rahmen „Minus 255px“)
   - Kontakt-Overlay hinter dem Mail-Symbol (#contact-form)
   Typo, Felder und Button kommen aus campaign.css (Selektoren mit .cmp-request).
   ===================================================================== */

/* ---------- Box ---------- */
/* Ueberlappung mit der Buehne wie bisher (stand frueher in form.css) */
.minus-255px #form-top {
    margin-top: -255px;
}

#form-top.cmp-request-slot {
    position: relative;
    z-index: 2;
    height: auto;
}

.cmp-request--box {
    max-width: calc(var(--cmp-container) + 2 * var(--cmp-gutter));
    margin: 0 auto 50px;
    padding: clamp(32px, 4.2vw, 64px) 0;
}

.cmp-request--box .cmp-container {
    padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- Overlay ---------- */
/* Das Theme-Overlay bleibt (Position, Einfahren, Schliessen-Leiste links); nur der Inhalt scrollt */
#contact-form {
    padding: 0 0 0 36px;
    overflow: hidden;
}

.cmp-request--overlay {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 5vh, 56px) 0;
}

.cmp-request--overlay .cmp-container {
    padding: 0 clamp(20px, 3vw, 40px);
}

.cmp-request--overlay .cmp-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
}

.cmp-request--overlay .cmp-contact__title {
    font-size: clamp(34px, 11cqi, 56px);
}

.cmp-request--overlay .cmp-phone {
    margin-top: 20px;
}

@media (max-width: 767.98px) {
    #contact-form {
        right: -100vw;
        width: 100vw;
        max-width: none;
    }

    #contact-form.show {
        right: 0;
    }
}

/* ---------- Absenden ---------- */
.cmp-request [data-rq-form].is-sending {
    opacity: .55;
    pointer-events: none;
    transition: opacity .2s;
}

.cmp-request [data-rq-form]:focus {
    outline: none;
}

/* Bestaetigung nach dem Absenden */
.cmp-request [data-rq-form].is-sent {
    font-family: var(--cmp-bold);
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.3;
}
