/* Enquiry popup: photo panel with the facts, form beside it */
html { --eq-bg: #FFFFFF; --eq-text: #121315; --eq-muted: #55595F; --eq-line: #DDE0E3; --eq-field: #F7F8F9; }
html.ch-theme-dark { --eq-bg: #141619; --eq-text: #F3F4F5; --eq-muted: #A9AEB4; --eq-line: rgba(255, 255, 255, 0.13); --eq-field: #1B1D21; }

html body dialog#ch-modal { width: min(920px, calc(100vw - 28px)); max-width: none; height: fit-content; max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 0; border-radius: 22px; overflow: auto; background: var(--eq-bg); color: var(--eq-text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65); }
html body dialog#ch-modal[open] { animation: eq-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
html body dialog#ch-modal::backdrop { background: rgba(4, 5, 6, 0.72); backdrop-filter: blur(5px); }
@keyframes eq-in { from { opacity: 0; transform: translateY(18px); } }
.eq { display: grid; grid-template-columns: 5fr 7fr; text-align: left; }

.eq-side { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 480px; padding: 38px 34px 32px; background: linear-gradient(rgba(6, 7, 8, 0.78), rgba(6, 7, 8, 0.55) 45%, rgba(6, 7, 8, 0.93)), url('/images/about/bento-team.jpg') center / cover; color: #FFFFFF; }
html body #ch-modal .eq h2 { margin: 0; font-family: "Cabinet Grotesk", sans-serif !important; font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: #FFFFFF !important; }
.eq-side dl { margin: 0; }
.eq-side dl > div { padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.eq-side dt { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #D5D8DC; }
.eq-side dd { margin: 5px 0 0; font-size: 16px; font-weight: 700; color: #FFFFFF; overflow-wrap: anywhere; }
html body #ch-modal .eq-side a { color: #FFFFFF; text-decoration: none; }
html body #ch-modal .eq-side a:hover { text-decoration: underline; }

html body #ch-modal form.eq-form { display: flex; flex-direction: column; justify-content: center; gap: 18px; margin: 0; padding: 40px clamp(22px, 3.6vw, 40px) 32px; border: 0; background: transparent; }
html body #ch-modal .eq-form .eq-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--eq-text) !important; }
.eq-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
html body #ch-modal .eq-form label { display: block; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--eq-text) !important; }
html body #ch-modal .eq-form :is(input, textarea):not(.ch-trap) { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--eq-line); border-radius: 10px; background: var(--eq-field); color: var(--eq-text); font-size: 15.5px; font-weight: 400; resize: vertical; }
html body #ch-modal .eq-form textarea::placeholder { color: var(--eq-muted); opacity: 0.8; }
html body #ch-modal .eq-form :is(input, textarea):focus { border-color: #E2501A; outline: none; box-shadow: 0 0 0 3px rgba(226, 80, 26, 0.2); }
#ch-modal .ch-trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
html body #ch-modal .eq-form button.ch-submit { align-self: flex-start; width: auto !important; padding: 14px 34px; border: 0; border-radius: 999px; background: #C2410C !important; color: #FFFFFF !important; font-size: 15.5px; font-weight: 800; cursor: pointer; }
html body #ch-modal .eq-form button.ch-submit:hover { background: #A3360A !important; }
html body #ch-modal .ch-form-status { margin: 0; font-size: 14px; color: var(--eq-muted); }
html body #ch-modal .ch-form-status:empty { display: none; }
html body #ch-modal button.ch-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--eq-line); border-radius: 50%; background: var(--eq-bg); color: var(--eq-text); font-size: 22px; line-height: 1; cursor: pointer; }
html body #ch-modal button.ch-modal-close:hover { border-color: #E2501A; color: #E2501A; }

@media (max-width: 760px) {
    .eq, .eq-pair { grid-template-columns: minmax(0, 1fr); }
    .eq-side { min-height: 0; gap: 14px; padding: 28px 22px 22px; }
    .eq-side dl { display: none; }
    html body #ch-modal button.ch-modal-close { top: 10px; right: 10px; }
    html body #ch-modal form.eq-form { padding: 22px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html body dialog#ch-modal[open] { animation: none; } }

/* ---------- header "Get in Touch": one solid style, readable in every state and theme ---------- */
html body header.header button.rounded-full:not(#f1):not(#f2):not(#f3),
html body header.header button.rounded-full:not(#f1):not(#f2):not(#f3):is(:hover, :focus, :focus-visible, :active) { background: #C2410C !important; border: 0 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; opacity: 1 !important; }
html body header.header button.rounded-full:not(#f1):not(#f2):not(#f3):hover { background: #A3360A !important; }
html body header.header button.rounded-full:not(#f1):not(#f2):not(#f3) span,
html body header.header button.rounded-full:not(#f1):not(#f2):not(#f3):is(:hover, :focus, :focus-visible, :active) span { background: transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; }
html body header.header button.rounded-full:focus-visible { outline: 2px solid #FFFFFF !important; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(194, 65, 12, 0.55); }

/* ---------- quote request fields, used by the popup and the contact page ---------- */
.qf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qf > * { grid-column: 1 / -1; min-width: 0; }
.qf > .qf-half { grid-column: auto; }
.qf small { margin-left: 6px; font-weight: 500; opacity: 0.65; }
.qf fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.qf legend { margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: 700; }
html body .qf label.qf-chip { position: relative; display: inline-block; margin: 0; cursor: pointer; }
html body .qf label.qf-chip input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
.qf-chip span { display: block; padding: 8px 14px; border: 1px solid rgba(128, 128, 128, 0.35); border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.qf-chip:hover span { border-color: #E2501A; }
html body .qf .qf-chip input:checked + span:not(#f1):not(#f2):not(#f3) { border-color: #C2410C; background: #C2410C; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; }
.qf-chip input:focus-visible + span { outline: 2px solid #E2501A; outline-offset: 2px; }
.qf input[type="file"] { font-size: 14px !important; }
.qf input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: #C2410C; color: #FFFFFF; font-weight: 700; cursor: pointer; }
.qf .qf-note { margin: -8px 0 0; font-size: 12.5px; opacity: 0.75; }
.qf .qf-note a { color: #E2501A; text-decoration: underline; }
.qf-files { margin: -8px 0 0; padding: 0; list-style: none; font-size: 13px; overflow-wrap: anywhere; }
.qf-files:empty { display: none; }

/* the longer popup form scrolls on its own beside the photo */
@media (min-width: 761px) {
    html body dialog#ch-modal .eq { height: min(760px, calc(100dvh - 30px)); grid-template-rows: minmax(0, 1fr); }
    html body #ch-modal .eq .eq-side { min-height: 0; }
    html body #ch-modal form.eq-form { justify-content: flex-start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
html body #ch-modal form.eq-form > * { flex-shrink: 0; }
@media (max-width: 520px) { .qf > .qf-half { grid-column: 1 / -1; } }
