/* Website (Code)/public/assets/css/dnb-request-v2.css
   v3  ·  2026-10-23 MYT

   /chauffeur-1-v2/request: the Driver & Bodyguard request form, on top of v2.css. Apple's buy/checkout
   language, as /chauffeur-v2/book: "Step. Question?" headings (bold lead + grey), a 44px segmented control with
   a sliding white thumb, 56px floating-label fields with 12px corners, bordered option tiles (selected = 2px
   #0071e3), a sticky grey summary with the one black pill, and an 18px review sheet. */

/* The local nav: the product name links back to the sales page, then Overview and Request (as /chauffeur-v2/book). */
.rq-ln__links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.rq-ln__link {
    position: relative; display: block; padding: 16px 0;
    font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em;
    color: var(--ink); opacity: .8;
}
a.rq-ln__link:hover { opacity: 1; }
.rq-ln__link[aria-current] { opacity: 1; }
.rq-ln__link[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }

.rq { padding: 72px 0 var(--pad); background: var(--bg); }
.rq__head { max-width: 760px; margin-bottom: 64px; }
.rq__eyebrow { color: var(--gold-ink); font-size: 21px; line-height: 1.19048; font-weight: 600; letter-spacing: .011em; margin-bottom: 8px; }
.rq__title { font-size: 64px; line-height: 1.0625; font-weight: 600; letter-spacing: -0.009em; text-wrap: balance; }
.rq__lede { margin-top: 20px; color: var(--ink-2); font-size: 21px; line-height: 1.38105; letter-spacing: .011em; }
.rq__lede strong { color: var(--ink); font-weight: 600; }

.rq__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }

/* ─── STEPS ───────────────────────────────────────────────────────────────── */

.rq__step { margin: 0 0 56px; padding: 0; border: 0; min-width: 0; }
.rq__step[hidden] { display: none; }
.rq__h { display: block; margin-bottom: 24px; padding: 0;
    color: var(--ink-2); font-size: 28px; line-height: 1.14286; font-weight: 600; letter-spacing: .007em; }
.rq__h span { color: var(--ink); }
.rq__hint { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; }
.rq__row { display: grid; gap: 14px; }
.rq__row--2 { grid-template-columns: 1fr 1fr; }
.rq__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* the same three columns as the protection tiles */
.rq__step > .fld + .fld, .rq__step > .tiles + .fld, .rq__step > .rq__row + .tiles,
.rq__step > .tiles + .rq__row { margin-top: 14px; }

/* ─── SEGMENTED CONTROL ───────────────────────────────────────────────────── */

.seg {
    position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 4px; border-radius: 980px; background: var(--platter);
}
.seg__thumb {
    position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
    border-radius: 980px; background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 3px 8px rgba(0, 0, 0, .06);
    transition: transform .32s var(--ease-out), width .32s var(--ease-out);
}
.seg__opt { position: relative; z-index: 1; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg__opt span {
    display: grid; place-items: center; min-height: 48px; padding: 0 12px;
    font-size: 17px; line-height: 1.23536; color: var(--ink-2); transition: color .2s linear;
}
.seg__opt input:checked + span { color: var(--ink); font-weight: 600; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 980px; }

/* ─── FLOATING-LABEL FIELDS ───────────────────────────────────────────────── */

.fld { position: relative; }
.fld[hidden] { display: none; }
.fld__input {
    display: block; width: 100%; height: 56px; min-height: 56px;   /* every control the same height, date and time included */
    padding: 24px 16px 8px;
    border: 1px solid var(--ink-3); border-radius: 12px;
    background: var(--white); color: var(--ink);
    font: inherit; font-size: 17px; line-height: 1.23536; letter-spacing: -0.022em;
    appearance: none; -webkit-appearance: none;
    transition: border-color .2s linear, box-shadow .2s linear;
}
textarea.fld__input { height: auto; min-height: 112px; max-height: 320px; resize: none; field-sizing: content; padding-top: 28px; }
.fld__input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(0, 113, 227, .3); }
.fld__label {
    position: absolute; left: 17px; top: 17px; right: 40px;
    color: var(--ink-2); font-size: 17px; line-height: 1.23536;
    pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transform-origin: left top; transition: transform .2s var(--ease-out), color .2s linear;
}
/* Floated once focused or filled (date, time and select always are). */
.fld__input:focus + .fld__label,
.fld__input:not([type="date"]):not(select):not(:placeholder-shown) + .fld__label,
input[type="date"]:valid + .fld__label, input[type="time"] + .fld__label,
select.fld__input + .fld__label { transform: translateY(-9px) scale(.706); }

/* Native date and time: no browser padding, text on the same baseline as every other field. An empty date shows
   only its label (Chrome otherwise prints a greyed-out date that looks filled in). */
.fld__input::-webkit-datetime-edit, .fld__input::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.fld__input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].fld__input:invalid:not(:focus)::-webkit-datetime-edit { color: transparent; }
select.fld__input:invalid { color: transparent; }
select.fld__input:invalid + .fld__label { transform: none; }
select.fld__input:focus:invalid + .fld__label { transform: translateY(-9px) scale(.706); }
.fld--select .fld__input { padding-right: 40px; cursor: pointer; }
.fld__chev { position: absolute; right: 16px; top: 24px; width: 12px; height: 8px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

.fld__error { display: none; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--error); font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; }
.fld__error::before {                       /* Apple checkout's error mark, as on /chauffeur-v2/book */
    content: '!'; flex: none; display: grid; place-items: center;
    width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; border: 1px solid currentColor;
    font-size: 10px; line-height: 1; font-weight: 600;
}
.fld.has-error .fld__input { border-color: var(--error); background: var(--error-bg); }
.fld.has-error .fld__label { color: #b00020; }
.fld.has-error .fld__error { display: flex; }

/* ─── OPTION TILES ────────────────────────────────────────────────────────── */

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Under the three protection tiles: "People to protect" takes the first column, the occasion the other two. */
.tiles--3 + .rq__row--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--3 + .rq__row--2 > :last-child { grid-column: span 2; }
.tiles--compact { grid-template-columns: 1fr 1fr; margin-top: 14px; }   /* the same two columns as the fields above */
.tile-opt { position: relative; display: block; cursor: pointer; }
.tile-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tile-opt__body {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 18px 20px 20px;
    border: 1px solid var(--ink-3); border-radius: 12px; background: var(--white);
    transition: border-color .15s linear, box-shadow .15s linear;
}
.tile-opt__body svg { width: 26px; height: 26px; color: var(--gold-ink); margin-bottom: 8px; }
.tile-opt__body strong { font-size: 17px; line-height: 1.23536; font-weight: 600; }
.tile-opt__body span { color: var(--ink-2); font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; }
.tiles--compact .tile-opt__body { flex-direction: row; align-items: center; gap: 12px; padding: 16px 18px; }
.tiles--compact .tile-opt__body svg { margin: 0; width: 22px; height: 22px; flex: none; }
/* Three across: icon over the label, so a longer label ("Someone else") does not wrap out of line. */
.tiles--3 .tile-opt__body { align-items: flex-start; gap: 10px; padding: 18px 18px 16px; }
.tiles--3 .tile-opt__body svg { margin: 0; width: 24px; height: 24px; }
.tile-opt__body strong { white-space: nowrap; }
.tile-opt:hover .tile-opt__body { border-color: var(--ink-2); }
.tile-opt input:checked + .tile-opt__body { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.tile-opt input:focus-visible + .tile-opt__body { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ─── SUMMARY ─────────────────────────────────────────────────────────────── */

.rq__aside { position: sticky; top: calc(var(--ln-h) + 24px); }
.sum { padding: 28px; border-radius: 18px; background: var(--bg-alt); }
.sum__title { font-size: 21px; line-height: 1.19048; font-weight: 600; letter-spacing: .011em; margin-bottom: 16px; }
.sum__list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.sum__list > div[hidden] { display: none; }
.sum__list dt { color: var(--ink-2); font-size: 14px; line-height: 1.42859; }
.sum__list dd { font-size: 14px; line-height: 1.42859; font-weight: 600; overflow-wrap: anywhere; }
.sum__list dd.is-empty { color: var(--ink-3); font-weight: 400; }
.sum__price {   /* the rule above it sits right under the last row, 12px below its text like every row */
    padding-top: 16px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 14px; line-height: 1.42859; }
.sum__cta { width: 100%; margin-top: 20px; }
.sum__alt { margin-top: 14px; text-align: center; color: var(--ink-2); font-size: 14px; }

.rq__error { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--error-bg); color: var(--error); font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; }
.rq__error[hidden] { display: none; }
.rq__error::before {                         /* same "!" mark as the field messages and the chauffeur form's alert */
    content: '!'; flex: none; display: grid; place-items: center;
    width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1px solid currentColor;
    font-size: 11px; line-height: 1; font-weight: 600;
}

/* ─── REVIEW SHEET ────────────────────────────────────────────────────────── */

.review__list { margin-top: 28px; border-top: 1px solid var(--hair); }
.review__list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.review__list dt { color: var(--ink-2); }
.review__list dd { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.review__actions .more { font-size: 17px; }
.review__actions [hidden] { display: none; }
.review__actions .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.review__note { margin-top: 16px; color: var(--ink-2); font-size: 14px; line-height: 1.42859; }
/* "Could not be sent": the message sits above the WhatsApp pill that replaces "Send request". */
#reviewError { margin-top: 28px; }
#reviewError .link { color: inherit; text-decoration: underline; }

/* Honeypot: off screen for people, still in the form for bots (lib/enquiry.js). */
.rq__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ─── DONE ────────────────────────────────────────────────────────────────── */

.rq__done { max-width: 720px; padding: 40px 0; text-align: center; outline: none; }
.rq__done .rq__lede { margin-bottom: 28px; }
/* Same mark, title and lede as the chauffeur confirmation (/chauffeur-v2/book step 5). */
.rq__done .rq__title { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.rq__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--gold-ink); }
.rq__tick svg { width: 30px; height: 30px; }
.rq__done [hidden] { display: none; }
/* WhatsApp after a saved request is optional, so it is the secondary (outline) pill, as Vision Pro's "Book a demo". */
.rq__done-extra { margin: 0 auto 32px; padding: 24px; max-width: 480px; border-radius: 18px; background: var(--bg-alt); }
.rq__done-ask { margin-bottom: 14px; color: var(--ink-2); font-size: 17px; line-height: 1.47059; }
.rqp .btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.rqp .btn--outline:hover { background: var(--ink); color: var(--white); }

/* ─── BREAKPOINTS ─────────────────────────────────────────────────────────── */

@media (max-width: 1068px) {
    .rq__title { font-size: 48px; line-height: 1.08349; letter-spacing: -0.003em; }
    .rq__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
    /* Beside the summary the main column is narrow: two "When" fields with the length under them, and the
       protection choices as full-width rows (icon beside the label), so every edge lines up. */
    .rq__row--3 { grid-template-columns: 1fr 1fr; }
    .rq__row--3 .fld--select { grid-column: 1 / -1; }
    .tiles--3 { grid-template-columns: 1fr; }
    .tiles--3 .tile-opt__body { flex-direction: row; align-items: center; gap: 12px; padding: 16px 18px; }
    .tiles--3 + .rq__row--2 { grid-template-columns: 1fr 1fr; }
    .tiles--3 + .rq__row--2 > :last-child { grid-column: auto; }
    .rq__done .rq__title { font-size: 32px; line-height: 1.125; letter-spacing: .004em; }
}
@media (max-width: 833px) {
    .rq__grid { grid-template-columns: 1fr; }
    .rq__aside { position: static; }
}
@media (max-width: 734px) {
    .rq { padding-top: 48px; }
    .rq__head { margin-bottom: 48px; }
    .rq__title { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
    .rq__lede { font-size: 19px; line-height: 1.4211; letter-spacing: .012em; }
    .rq__h { font-size: 24px; line-height: 1.16667; letter-spacing: .009em; }
    .rq__step { margin-bottom: 44px; }
    .rq__row--2, .rq__row--3, .tiles, .tiles--3, .tiles--3 + .rq__row--2 { grid-template-columns: 1fr; }
    .tiles--3 + .rq__row--2 > :last-child { grid-column: auto; }
    .tiles--compact { grid-template-columns: 1fr 1fr; }   /* two short labels side by side, as Apple's contact choice */
    .rq__done .rq__title { font-size: 28px; line-height: 1.14286; letter-spacing: .007em; }
    .tiles--3 .tile-opt__body { flex-direction: row; align-items: center; gap: 12px; padding: 16px 18px; }
    .review__list > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .seg__thumb, .fld__label { transition: none; } }

/* ─── DATE FIELD AND CALENDAR ──────────────────────────────────────────────── */

/* A read-only date field plus the site's calendar (ui/datePicker.js appends .calendar to <body>). */

/* A read-only date field plus the site's calendar (ui/datePicker.js appends .calendar to <body>). */

.fld--date .fld__input { padding-right: 48px; cursor: pointer; caret-color: transparent; }
.fld__icon { position: absolute; right: 16px; top: 17px; width: 22px; height: 22px; color: var(--ink-2); pointer-events: none; }
.fld.has-error .fld__icon { color: #b00020; }

.calendar__nav { display: flex; align-items: center; }
@media (max-width: 380px) { .calendar { width: calc(100vw - 16px); } }
@media (prefers-reduced-motion: reduce) { .calendar { transition: none; } }
