/* ==========================================================================
   Single enquiry form
   Pages/Shared/Partials/_SingleEnquiryForm.cshtml + wwwroot/newexperience/single-enquiry-form.js

   - Everything is namespaced `sef-` and the design tokens live on `.sef`, so nothing leaks into the page.
   - reset.css applies `all: unset` to every element (zero specificity), so buttons, inputs, selects,
     textareas, headings and lists are styled explicitly here and the base resets below use :where()
     to stay below the component classes.
   - Layout is driven by the width of `.sef-frame` (container queries): >=900px two-column with the
     navy banner, <=640px phone / narrow-column layout, anything in between is the single-column "tablet" layout.
   - Static file (not a scoped .cshtml.css) because the calendar, month/chip buttons and child-age
     selects are built by script and would not receive Razor's scope attribute.
   ========================================================================== */

.sef {
    --sef-ink: #171a20;
    --sef-muted: #727a8c;
    --sef-muted-2: #676a6e;
    --sef-line: #e5e7eb;
    --sef-line-2: #e3e5e9;
    --sef-soft: #f4f5f6;
    --sef-blue: #0080ff;
    --sef-blue-hover: #006fe0;
    --sef-blue-panel: #f2f9ff;
    --sef-blue-panel-line: #daedff;
    --sef-red: #e30000;
    --sef-green: #009c4d;
    --sef-green-bg: #e5f5ed;
    --sef-green-line: #b7e3cd;
    --sef-amber: #9b5f00;
    --sef-amber-bg: #fffaf2;
    --sef-amber-line: #ffe7c2;
    --sef-navy: #102132;
    --sef-navy-text: #ccd3dc;
    --sef-navy-line: #2b3b4a;
    --sef-serif: "Noto Serif", Georgia, serif;
    --sef-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    font-family: var(--sef-sans);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--sef-ink);
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.sef *,
.sef *::before,
.sef *::after {
    box-sizing: border-box;
}

.sef [hidden] {
    display: none !important;
}

/* Zero-specificity base resets (see note above) */
:where(.sef) :is(h2, h3, h4, p, ol, ul, hr, figure) {
    margin: 0;
    padding: 0;
}

:where(.sef) :is(button, input, select, textarea) {
    font: inherit;
    color: inherit;
}

:where(.sef) button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

/* Icons are the site's mask-based `span.icon` (icons.css + images/icons/enquiry-form/*.svg) and take the text colour. */
.sef .icon {
    flex: none;
    background-color: currentColor;
}

.sef .icon.enquiry-form-stars-icon,
.sef .icon.enquiry-form-tree-icon {
    background-color: transparent; /* self-coloured assets */
}

/* reset.css strips UA focus rings; controls draw their own ring (.sef-control), everything else gets this one */
.sef :is(button, a):not(.sef-control):focus-visible {
    outline: 2px solid var(--sef-blue);
    outline-offset: 2px;
}

.sef-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Modal shell ---------- */
.sef--modal {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    display: none;
}

.sef--modal.is-open {
    display: block;
}

.sef-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 33, 50, .56);
    opacity: 0;
    transition: opacity .25s ease;
}

.sef--modal.is-visible .sef-overlay {
    opacity: 1;
}

.sef--modal .sef-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1072px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px;
    outline: none;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px));
    transition: opacity .25s ease, transform .25s ease;
}

.sef--modal.is-visible .sef-dialog {
    opacity: 1;
    transform: translate(-50%, -50%);
}

@media (max-width: 599px) {
    .sef--modal .sef-dialog {
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 96vh;
        max-height: 96dvh;
        border-radius: 20px 20px 0 0;
        transform: translateY(32px);
    }

    .sef--modal.is-visible .sef-dialog {
        transform: translateY(0);
    }

    .sef--modal .sef-panel {
        border-radius: 20px 20px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sef-overlay,
    .sef--modal .sef-dialog {
        transition: none;
    }
}

/* ---------- Frame / panel (tablet = base) ---------- */
.sef-frame {
    container: sef / inline-size;
    width: 100%;
    max-width: 1072px;
}

.sef-panel {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.sef--inline .sef-panel {
    border: 1px solid var(--sef-line);
    box-shadow: 0 8px 30px rgba(16, 24, 40, .08);
}

.sef-banner {
    display: none;
}

.sef-main {
    display: block;
    min-width: 0;
}

.sef-body {
    display: block;
    position: relative;
    padding: 24px;
}

.sef-close {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--sef-ink);
}

.sef-close:hover {
    background: var(--sef-soft);
}

.sef-eyebrow {
    display: block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sef-muted);
    padding-right: 40px;
}

.sef-title {
    display: block;
    font-family: var(--sef-serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    margin: 18px 0 0;
    letter-spacing: -.005em;
    color: var(--sef-ink);
}

.sef-sub {
    display: block;
    font-size: 14px;
    line-height: 22px;
    margin: 16px 0 0;
}

.sef-guide {
    display: block;
    font-size: 14px;
    line-height: 22px;
    margin: 12px 0 0;
}

.sef-guide strong,
.sef-b-guide strong {
    font-weight: 700;
}

/* ---------- Open / closed pill ---------- */
.sef-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.sef-status:empty {
    display: none;
}

.sef-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}

.sef-status.open {
    background: var(--sef-green-bg);
    border-color: var(--sef-green-line);
}

.sef-status.open .sef-dot {
    background: var(--sef-green);
}

.sef-s-strong {
    color: var(--sef-green);
    font-weight: 600;
}

.sef-s-text {
    color: #515358;
    margin-left: 2px;
}

.sef-status.open a {
    color: var(--sef-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 2px;
    cursor: pointer;
}

/* ---------- Steps ---------- */
.sef-form {
    display: block;
}

.sef-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.sef-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sef-soft);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 500;
    flex: none;
}

.sef-step h3 {
    font-family: var(--sef-serif);
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    margin: 0;
    color: var(--sef-ink);
}

.sef-step + .sef-grid {
    margin-top: 16px;
}

.sef-step.sef-s2 {
    margin-top: 24px;
}

.sef-grid {
    display: grid;
    gap: 18px 16px;
}

.sef-grid + .sef-grid {
    margin-top: 18px;
}

.sef-g-date {
    grid-template-columns: 79fr 40fr;
}

.sef-g-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sef-g-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sef-g-1 {
    grid-template-columns: 1fr;
}

/* Telephone + preferred contact method: stacked until the desktop layout, then side by side */
.sef-g-pair {
    grid-template-columns: 1fr;
}

.sef-ages:empty {
    display: none;
}

.sef-field {
    display: block;
    min-width: 0;
    position: relative;
}

.sef-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 20px;
    margin-bottom: 6px;
}

.sef-label {
    display: inline;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--sef-ink);
    white-space: nowrap;
}

.sef-req {
    color: var(--sef-red);
}

.sef-hint {
    color: var(--sef-muted-2);
    font-weight: 400;
}


.sef-err-msg {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--sef-red);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sef-err-msg:empty {
    display: none;
}

/* ---------- Controls ---------- */
.sef-control {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    border: 1px solid var(--sef-line);
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    line-height: 22px;
    padding: 0 16px;
    color: var(--sef-ink);
    transition: border-color .15s, box-shadow .15s;
}

.sef-control:hover {
    border-color: #cfd3da;
}

.sef-control:focus-visible,
.sef-control:focus-within {
    outline: none;
    border-color: var(--sef-blue);
    box-shadow: 0 0 0 3px rgba(0, 128, 255, .12);
}

input.sef-control::placeholder {
    color: var(--sef-muted);
    opacity: 1;
}

.sef-field.is-error .sef-control {
    border-color: var(--sef-red);
}

.sef-field.is-error .sef-control:focus-visible,
.sef-field.is-error .sef-control:focus-within {
    box-shadow: 0 0 0 3px rgba(227, 0, 0, .10);
}

.sef-select {
    display: block;
    position: relative;
}

.sef .sef-chev {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 11px;
    height: 6px;
}

.sef-date-wrap {
    display: block;
    position: relative;
}

.sef-date-trigger {
    gap: 13px;
    text-align: left;
    justify-content: flex-start;
    cursor: pointer;
}

.sef-date-value {
    display: block;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.sef-date-value.placeholder {
    color: var(--sef-muted);
    font-weight: 400;
}

.sef-date-trigger[aria-expanded="true"] {
    border-color: var(--sef-blue);
    box-shadow: 0 0 0 3px rgba(0, 128, 255, .12);
}

.sef-stepper {
    justify-content: space-between;
    padding: 0 6px;
}

.sef-stepper button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--sef-ink);
}

.sef-stepper button:hover:not(:disabled) {
    background: var(--sef-soft);
}

.sef-stepper button:disabled {
    opacity: .3;
    cursor: default;
}

.sef-stepper .icon {
    width: 14px;
    height: 14px;
}

.sef-stepper output {
    display: block;
    font-size: 16px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.sef-notes {
    display: block;
    margin-top: 16px;
    background: var(--sef-blue-panel);
    border: 1px solid var(--sef-blue-panel-line);
    border-radius: 12px;
    padding: 16px 16px 20px;
}

.sef-notes h4 {
    font-family: var(--sef-serif);
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    margin: 0 0 8px;
    color: var(--sef-ink);
}

.sef-notes textarea {
    display: block;
    width: 100%;
    height: 120px;
    resize: none;
    overflow: auto;
    border: 1px solid var(--sef-line);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    font-size: 14px;
    line-height: 18px;
    color: var(--sef-ink);
}

.sef-notes textarea::placeholder {
    color: var(--sef-muted);
    opacity: 1;
}

.sef-notes textarea:focus {
    outline: none;
    border-color: var(--sef-blue);
    box-shadow: 0 0 0 3px rgba(0, 128, 255, .12);
}

.sef-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    user-select: none;
}

.sef-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.sef-box {
    width: 24px;
    height: 24px;
    flex: none;
    border: 1.5px solid #8d96a8;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #fff;
    transition: background .12s, border-color .12s;
}

.sef-box .icon {
    width: 12px;
    height: 10px;
    background-color: #fff;
    opacity: 0;
}

.sef-check input:checked + .sef-box {
    background: var(--sef-blue);
    border-color: var(--sef-blue);
}

.sef-check input:checked + .sef-box .icon {
    opacity: 1;
}

.sef-check input:focus-visible + .sef-box {
    box-shadow: 0 0 0 3px rgba(0, 128, 255, .2);
}

.sef-submit {
    margin-top: 16px;
    width: 100%;
    height: 58px;
    border-radius: 10px;
    background: var(--sef-blue);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: background .15s;
}

.sef-submit .icon {
    width: 8px;
    height: 14px;
}

.sef-submit:hover {
    background: var(--sef-blue-hover);
}

.sef-submit:disabled {
    cursor: progress;
    opacity: .9;
}

.sef-spinner {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sef-spin .7s linear infinite;
}

@keyframes sef-spin {
    to {
        transform: rotate(360deg);
    }
}

.sef-form-error {
    display: block;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    background: #fff5f5;
    color: #b00020;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.sef-form-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sef-form-error li + li {
    margin-top: 4px;
}

.sef-legal {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    line-height: 18px;
    color: var(--sef-muted-2);
    text-align: center;
}

.sef-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* ---------- Trust strip (shared by footer + banner) ---------- */
.sef-foot {
    background: var(--sef-navy);
    margin: 0;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sef-tp {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    line-height: 24px;
}

.sef-tp a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    cursor: pointer;
}

.sef-tp strong {
    font-weight: 700;
}

.sef-tp span {
    color: #e3e8ee;
}

.sef .sef-stars {
    display: block;
    width: 156px;
    height: 28px;
    flex: none;
}

.sef-accr {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sef-accr img {
    display: block;
    height: 46px;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* "A tree planted for every booking": under the logos in the phone footer, above the trust box in the desktop banner */
.sef-tree {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--sef-navy-text);
}

.sef-tree .icon {
    width: 18px;
    height: 20px;
}

.sef-foot .sef-tree {
    margin-top: 4px;
}

.sef-banner .sef-tree {
    margin-top: auto;
    align-self: flex-start;
    justify-content: flex-start;
    font-size: 15px;
    padding-left: 2px;
}

/* ---------- Desktop banner ---------- */
.sef-banner {
    background: var(--sef-navy);
    color: var(--sef-navy-text);
    padding: 24px;
    flex-direction: column;
}

.sef-banner .sef-eyebrow {
    color: var(--sef-navy-text);
    padding: 0;
}

.sef-banner h2 {
    font-family: var(--sef-serif);
    font-weight: 400;
    font-size: 34px;
    line-height: 46px;
    letter-spacing: -.01em;
    color: #fff;
    margin: 20px 0 0;
}

.sef-b-guide {
    display: block;
    font-size: 16px;
    line-height: 24px;
    margin: 30px 0 0;
}

.sef-b-guide strong {
    color: #fff;
}

.sef-banner hr {
    display: block;
    width: auto;
    border: 0;
    border-top: 1px solid var(--sef-navy-line);
    margin: 22px 0 0;
}

.sef-b-next {
    display: block;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 24px 0 0;
}

.sef-banner ol {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sef-banner li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 24px;
}

.sef-banner li i {
    font-style: normal;
    width: 20px;
    height: 20px;
    border: 1.25px solid var(--sef-navy-text);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    line-height: 1;
    flex: none;
}

.sef-trust {
    margin-top: 14px;
    border: 1px solid var(--sef-line);
    border-radius: 12px;
    padding: 14px 12px 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sef-trust .sef-t-left {
    display: block;
}

.sef .sef-trust .sef-stars {
    width: 147px;
    height: 26px;
}

.sef-trust .sef-t-text {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 17px;
    line-height: 22px;
    white-space: nowrap;
}

.sef-trust a.sef-t-left,
.sef-accr a {
    display: block;
    color: inherit;
    cursor: pointer;
}

.sef-trust .sef-t-text strong {
    font-weight: 700;
}

.sef-trust .sef-accr img {
    height: 40px;
}

/* ---------- Date popover ---------- */
.sef-pop {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    z-index: 30;
    background: #fff;
    border: 1px solid var(--sef-line-2);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
}

.sef-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--sef-soft);
    border-radius: 12px;
    padding: 4px;
}

.sef-tabs button {
    height: 38px;
    border-radius: 9px;
    font-size: 15px;
    color: var(--sef-muted);
}

.sef-tabs button[aria-selected="true"] {
    background: #fff;
    color: var(--sef-ink);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .14);
}

.sef-pane {
    display: block;
}

.sef-cal {
    display: block;
    margin-top: 12px;
    border: 1px solid var(--sef-line);
    border-radius: 16px;
    padding: 16px 10px 8px;
}

.sef-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.sef-cal-head h4 {
    margin: 0;
    font-family: var(--sef-serif);
    font-weight: 700;
    font-size: 15px;
    color: var(--sef-ink);
}

.sef-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--sef-line-2);
    background: #fff;
    display: grid;
    place-items: center;
}

.sef-nav:disabled {
    cursor: default;
}

.sef-nav .icon {
    width: 8px;
    height: 14px;
}

.sef-nav:disabled .icon {
    background-color: #c5c9d1;
}

.sef-nav:hover:not(:disabled) {
    background: var(--sef-soft);
}

.sef-dow,
.sef-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.sef-dow {
    margin-top: 14px;
}

.sef-dow span {
    display: block;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: var(--sef-muted);
}

.sef-days {
    margin-top: 8px;
}

.sef-day {
    height: 44px;
    display: grid;
    place-items: center;
}

.sef-day button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--sef-ink);
}

.sef-day button:hover:not(:disabled):not([aria-pressed="true"]) {
    background: var(--sef-soft);
}

.sef-day button:disabled {
    color: #b8bcc5;
    cursor: default;
}

.sef-day button.today:not([aria-pressed="true"]) {
    box-shadow: inset 0 0 0 1px var(--sef-line-2);
}

.sef-day button[aria-pressed="true"] {
    background: var(--sef-blue);
    color: #fff;
}

.sef-q {
    display: block;
    margin: 16px 0 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.sef-q small {
    font-size: 13px;
    font-weight: 400;
    color: var(--sef-muted);
    margin-left: 4px;
}

.sef-q-sub {
    display: block;
    font-size: 13px;
    color: var(--sef-muted);
    line-height: 18px;
    margin-top: 2px;
}

.sef-months {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sef-mo {
    height: 50px;
    border: 1px solid var(--sef-line);
    background: var(--sef-soft);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
}

.sef-mo b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
}

.sef-mo span {
    display: block;
    font-size: 13px;
    color: var(--sef-muted);
    line-height: 16px;
}

.sef-mo:hover {
    border-color: #cfd3da;
}

.sef-mo[aria-pressed="true"] {
    background: var(--sef-blue);
    border-color: var(--sef-blue);
    color: #fff;
}

.sef-mo[aria-pressed="true"] span {
    color: rgba(255, 255, 255, .88);
}

.sef-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sef-chip {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sef-line-2);
    background: #fff;
    border-radius: 999px;
    font-size: 13px;
}

.sef-chip:hover {
    border-color: #cfd3da;
}

.sef-chip[aria-pressed="true"] {
    background: var(--sef-blue);
    border-color: var(--sef-blue);
    color: #fff;
}

.sef-pop hr {
    display: block;
    width: auto;
    border: 0;
    border-top: 1px solid var(--sef-line);
    margin: 14px 0 12px;
}

.sef-summary {
    display: block;
    font-size: 14px;
    line-height: 20px;
    min-height: 20px;
}

.sef-summary.empty {
    color: var(--sef-muted);
}

.sef-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}

.sef-clear {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sef-apply {
    height: 42px;
    min-width: 93px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--sef-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.sef-apply:hover:not(:disabled) {
    background: var(--sef-blue-hover);
}

.sef-apply:disabled {
    opacity: .4;
    cursor: default;
}

/* ---------- Search variant: destination + hotel pickers ---------- */
.sef-label-hint {
    font-size: 14px;
    line-height: 20px;
    color: var(--sef-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sef-combo-wrap {
    display: block;
    position: relative;
}

.sef-combo {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 12px 7px 16px;
    cursor: text;
}

.sef-combo > .icon {
    width: 16px;
    height: 16px;
    margin-right: 7px;
}

.sef-combo input {
    flex: 1 1 120px;
    min-width: 100px;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    padding: 0;
}

.sef-combo input::placeholder {
    color: var(--sef-muted);
    opacity: 1;
}

.sef-combo input:read-only {
    cursor: default;
}

.sef-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 32px;
    max-width: 100%;
    padding: 0 4px 0 10px;
    border-radius: 8px;
    background: var(--sef-blue-panel);
    border: 1px solid var(--sef-blue-panel-line);
    font-size: 14px;
    font-weight: 500;
}

.sef-tag > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sef-tag--locked {
    padding-right: 8px;
}

.sef-tag-lock {
    flex: none;
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    color: var(--sef-ink-sub, #6b7280);
    opacity: 0.7;
}

.sef-tag-lock .icon {
    width: 12px;
    height: 12px;
}

.sef-tag button {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
}

.sef-tag button:hover {
    background: #dcecff;
}

.sef-tag .icon {
    width: 10px;
    height: 10px;
}

.sef-suggest {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 25;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--sef-line-2);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
    max-height: 300px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c5c9d1 transparent;
}

/* Phones and touch screens: while a dropdown or the date picker is open the form behind it stays put (set by listOpened
   in the script). The destination and hotel suggestion lists do not freeze it: the keyboard is up while they are open. */
.sef-list-open .sef-dialog,
.sef-list-open .sef-main {
    overflow: hidden;
}

/* ...so on a short screen the date picker scrolls inside itself, keeping its Apply button reachable */
.sef-list-open .sef-pop {
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-margin-bottom: 12px;
}

.sef-suggest li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
}

.sef-suggest li small {
    font-size: 13px;
    color: var(--sef-muted);
    white-space: nowrap;
}

.sef-suggest li[aria-selected="true"] {
    background: var(--sef-soft);
}

.sef-suggest li b {
    font-weight: 700;
}

.sef-suggest li.sef-empty {
    color: var(--sef-muted);
    cursor: default;
    font-size: 14px;
}

.sef-suggest li.sef-loading {
    justify-content: flex-start;
    color: var(--sef-muted);
    cursor: default;
    font-size: 14px;
}

.sef-loading-dot {
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--sef-muted);
    border-top-color: transparent;
    border-radius: 50%;
    opacity: .6;
    animation: sef-spin .7s linear infinite;
}

.sef-suggest li.sef-s-head {
    padding: 8px 12px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sef-muted);
    cursor: default;
}

/* ---------- Custom dropdown (every variant) ----------
   Each <select> is drawn by script (createDropdown) instead of the browser's own popup, whose look changes with the
   browser and OS. The <select> stays in the form, hidden; the list reuses the .sef-suggest panel above. */
.sef-dd {
    padding-right: 40px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.sef-dd-value {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sef-dd.is-default {
    color: var(--sef-muted);
    font-weight: 400;
}

.sef-dd[aria-expanded="true"] {
    border-color: var(--sef-blue);
    box-shadow: 0 0 0 3px rgba(0, 128, 255, .12);
}

.sef-dd[aria-expanded="true"] ~ .sef-chev {
    transform: translateY(-50%) rotate(180deg);
}

/* as wide as the box, or as wide as its longest option (the airport list is longer than its narrow column) */
.sef-dd-list {
    right: auto;
    min-width: 100%;
    width: max-content;
    max-width: min(320px, calc(100vw - 48px));
    max-height: 264px;
}

.sef-dd-list.is-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.sef-dd-list li.is-active {
    background: var(--sef-soft);
}

.sef-dd-list li[aria-selected="true"] {
    background: var(--sef-blue-panel);
    font-weight: 600;
}

.sef-dd-list li[aria-selected="true"].is-active {
    background: #e3f1ff;
}

/* .sef prefix: icons.css gives span.icon display:inline-block, which would otherwise win */
.sef .sef-dd-check {
    display: none;
    width: 12px;
    height: 10px;
    color: var(--sef-blue);
}

.sef-dd-list li[aria-selected="true"] .sef-dd-check {
    display: block;
}

.sef-dd-list li.sef-dd-sep {
    display: block;
    height: 1px;
    padding: 0;
    margin: 6px 4px;
    background: var(--sef-line);
    cursor: default;
}

.sef-check.sef-small {
    margin-top: 12px;
}

/* ---------- Search variant: "Tailor your quote" ----------
   Optional, so collapsed by default on every layout: the heading is a toggle (.sef-th-toggle is the button that
   covers it) and the body stays hidden until .sef-open is set. */
.sef-tailor {
    display: block;
    margin-top: 24px;
}

.sef-tailor-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sef-tailor-head h3 {
    font-family: var(--sef-serif);
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    margin: 0;
    color: var(--sef-ink);
}

.sef-opt {
    font-family: var(--sef-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--sef-muted);
    margin-left: 6px;
}

.sef-th-text {
    display: block;
    flex: 1;
    min-width: 0;
}

.sef-th-sub {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: var(--sef-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the button covers the whole heading, so a click anywhere on it toggles */
.sef-th-toggle {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
}

.sef-th-chev {
    width: 14px;
    height: 8px;
    transition: transform .2s;
}

.sef-th-toggle[aria-expanded="true"] .sef-th-chev {
    transform: rotate(180deg);
}

.sef-tailor-body {
    display: block;
    margin-top: 16px;
}

.sef-tailor:not(.sef-open) .sef-tailor-body {
    display: none;
}

.sef-opt-group {
    display: block;
    margin-top: 18px;
}

.sef-opt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sef-opt-chips .sef-chip {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
}

/* the search variant has no guide price, so the banner rule sits lower; its notes panel follows the tailor section */
.sef[data-sef-variant="search"] .sef-banner hr {
    margin-top: 30px;
}

.sef[data-sef-variant="search"] .sef-notes {
    margin-top: 24px;
}

/* ================= DESKTOP (frame >= 900px) ================= */
@container sef (min-width: 900px) {
    .sef-panel {
        display: grid;
        grid-template-columns: 450px minmax(0, 1fr);
    }

    .sef-banner {
        display: flex;
    }

    .sef-m-only,
    .sef-foot {
        display: none;
    }

    .sef-body {
        padding: 24px 24px 33px;
    }

    .sef-close {
        top: 26px;
        right: 15px;
    }

    .sef-title {
        font-size: 30px;
        line-height: 40px;
        margin-top: 0;
        padding-right: 44px;
    }

    .sef-sub {
        line-height: 20px;
        margin-top: 16px;
    }

    .sef-status {
        margin-top: 11px;
    }

    .sef-step {
        margin-top: 24px;
    }

    .sef-step-num {
        width: 30px;
        height: 30px;
    }

    .sef-step + .sef-grid {
        margin-top: 21px;
    }

    .sef-label-row {
        margin-bottom: 4px;
    }

    .sef-grid {
        row-gap: 16px;
        column-gap: 18px;
    }

    .sef-grid + .sef-grid {
        margin-top: 16px;
    }

    .sef-g-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sef-opt-group {
        margin-top: 16px;
    }

    .sef-notes {
        padding: 16px 15px 16px;
    }

    .sef-notes h4 {
        margin-bottom: 10px;
    }

    .sef-notes textarea {
        height: 118px;
    }

    .sef-step.sef-s2 {
        margin-top: 24px;
    }

    .sef-submit {
        margin-top: 14px;
    }
}

/* ================= DESKTOP MODAL: banner stays put, only the form scrolls =================
   The dialog is capped to the window height (.sef--modal .sef-dialog). Here the dialog stops scrolling and the
   navy banner keeps its heading at the top and its trust strip at the bottom while the form column (.sef-main)
   scrolls on its own.
   - 932px = the 900px frame breakpoint + the dialog's 2 x 16px side margin (the modal frame is as wide as the
     dialog), so this applies exactly where the banner is shown.
   - Short windows hide the "What happens next" steps so the heading and trust strip still fit; below 480px of
     height the whole dialog scrolls as before. */
@media (min-width: 932px) and (min-height: 480px) {
    .sef--modal .sef-dialog {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .sef--modal .sef-frame {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .sef--modal .sef-panel {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-rows: minmax(0, 1fr);
    }

    .sef--modal .sef-banner {
        min-height: 0;
        overflow: hidden;
    }

    .sef--modal .sef-main {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Tall windows: the popup is 70% of the window height, not nearly all of it (the form column scrolls) */
@media (min-width: 932px) and (min-height: 700px) {
    .sef--modal .sef-dialog {
        max-height: 70vh;
        max-height: 70dvh;
    }
}

/* the steps need ~560px of banner: hide them where the dialog is shorter than that (window < 580px, or 70% of a window < 800px) */
@media (min-width: 932px) and (min-height: 480px) and (max-height: 579px),
       (min-width: 932px) and (min-height: 700px) and (max-height: 799px) {
    .sef--modal .sef-banner hr,
    .sef--modal .sef-b-next,
    .sef--modal .sef-banner ol {
        display: none;
    }
}

/* ================= PHONE / NARROW COLUMN (frame <= 640px) =================
   The prototype switched at 440px; between 441px and ~640px the date label + "I'm flexible" chip and the
   three-up airport/adults/children row do not fit (seen in the Why-Book planning column), so the single-column
   layout is used up to 640px. */
@container sef (max-width: 640px) {
    .sef-body {
        padding: 24px 20px 28px;
    }

    .sef-title {
        margin-top: 13px;
    }

    .sef-sub {
        margin-top: 10px;
    }

    .sef-guide {
        margin-top: 8px;
    }

    .sef-status {
        gap: 7px;
        padding: 6px 10px;
        white-space: normal;
        line-height: 1.25;
    }

    .sef-step + .sef-grid,
    .sef-grid + .sef-grid {
        margin-top: 16px;
    }

    .sef-g-date,
    .sef-g-2:not(.sef-ages) {
        grid-template-columns: 1fr;
    }

    .sef-g-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sef-g-3 .sef-f-from {
        grid-column: 1 / -1;
    }

    .sef-grid {
        gap: 16px 12px;
    }

    .sef-label-row {
        margin-bottom: 4px;
        min-height: 24px;
    }

    .sef-label {
        font-size: 16px;
        line-height: 24px;
    }

    .sef .sef-chev {
        right: 16px;
    }

    .sef-stepper {
        padding: 0 4px;
    }

    .sef-stepper button {
        width: 32px;
    }

    .sef-notes h4 {
        margin-bottom: 10px;
    }

    .sef-notes textarea {
        height: 150px;
        font-size: 16px;
        line-height: 22px;
    }

    .sef-notes textarea::placeholder {
        font-size: 14px;
        line-height: 20px;
    }

    .sef-submit {
        font-size: 16px;
        gap: 12px;
        height: 56px;
    }

    .sef-tp,
    .sef-tp a {
        font-size: 18px;
        gap: 10px;
    }

    .sef-tp a,
    .sef-tp div {
        white-space: nowrap;
    }

    .sef-label-hint {
        display: none;
    }

    .sef-opt-group {
        margin-top: 16px;
    }
}
