#BodyHolder{    background-color: #f6f7f9;}

.booking {
    --brand: #006699;
    --brand-dark: #004c73;
    --brand-tint: #e3f1f8;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --error: #b42318;
    --error-tint: #fef3f2;
    --radius: 16px;

    margin: 0 auto;
    font-family: Poppins, sans-serif;
    color: var(--text);
}

.booking .Hidden {
    display: none !important;
}

/* ---------- Steps ---------- */

.booking-step {
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.booking .booking-step__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.booking-step__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 600;
}

.booking-required {
    margin-left: -6px;
    color: var(--brand);
}

.booking-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f9fc;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Inputs (also styles the partials' fields) ---------- */

.booking select,
.booking textarea,
.booking input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="image"]):not([type="range"]):not([type="color"]) {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.92rem;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking textarea {
    min-height: 84px;
    resize: vertical;
}

.booking select:focus,
.booking input:focus,
.booking textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.15);
}

.booking label,
.booking .booking-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.booking ul.booking-fields,
.booking ul.ulContact {
    display: grid;
    gap: 16px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.booking ul.ulContact > li {
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}

/* ---------- Selected course ---------- */

.booking-course {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f9fc;
}

.booking-course__name {
    font-weight: 600;
    color: var(--brand);
}

.booking-link-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.booking-link-button:hover,
.booking-link-button:focus-visible {
    color: var(--brand-dark);
}

/* ---------- Venue badges ---------- */

.booking-venue {
    --venue: #6b7280;

    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
}

.booking-venue::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--venue);
}

.booking-venue.vNewcastle { --venue: #006699; }
.booking-venue.vDurham    { --venue: #7c3aed; }
.booking-venue.vLeeds     { --venue: #0f9d77; }
.booking-venue.vVirtual   { --venue: #d97706; }

.booking small {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
}

/* ---------- Chosen date summary ---------- */

.booking-chosen {
    margin-bottom: 16px;
    border: 1px solid var(--brand);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.booking-chosen__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 20px;
}

.booking-chosen__info {
    min-width: 0;
}

.booking-chosen__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
}

.booking-chosen__label svg {
    width: 14px;
    height: 14px;
}

.booking .booking-chosen__dates {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.booking-chosen__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.booking-chosen__length {
    font-size: 0.8rem;
    color: var(--muted);
}

.booking-chosen__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.booking-chosen__amount {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.booking-chosen__vat {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Actions strip */
.booking-chosen__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 16px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: #f7f9fc;
}

.booking-chosen__actions .day-details {
    grid-column: 1;
}

/* "Change date or location" */
.booking-chosen__change {
    grid-column: 2;
    grid-row: 1;
    padding: 2px 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.booking-chosen__change:hover,
.booking-chosen__change:focus-visible {
    color: var(--brand-dark);
}

/* ---------- Day breakdown (shared by step 2 and the overview) ---------- */

.day-details {
    min-width: 0;
}

.day-details__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.day-details__toggle::-webkit-details-marker {
    display: none;
}

.day-details__toggle::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.day-details[open] .day-details__toggle::after {
    margin-top: 2px;
    transform: rotate(-135deg);
}

.day-details__toggle:hover {
    color: var(--brand-dark);
}

.day-details__toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.day-details[open] .day-details__closed,
.day-details:not([open]) .day-details__open {
    display: none;
}

.booking .day-details__list {
    margin: 10px 0 0 !important;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.day-details__list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
}

.day-details__list li + li {
    border-top: 1px solid var(--line);
}

.day-details__num {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.day-details__date {
    font-weight: 500;
    color: var(--text);
}

/* ---------- Date list ---------- */

.booking-dates {
    display: grid;
    gap: 10px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.booking-date {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 6px 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.booking-date:hover,
.booking-date:focus-visible {
    border-color: var(--brand);
    outline: none;
}

.booking-date:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.15);
}

.booking-date__radio {
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking-date.is-selected {
    border-color: var(--brand);
    background: var(--brand-tint);
}

.booking-date.is-selected .booking-date__radio {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 4px var(--brand);
}

.booking-date__when {
    font-size: 0.92rem;
    font-weight: 500;
}

.booking-date__price {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- No dates ---------- */

.booking-nodates {
    padding: 18px 20px;
    border-radius: 14px;
    background: #f7f9fc;
}

.booking-nodates.HighlightSection {
    background: var(--brand-tint);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.booking-nodates__message {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------- Delegates ---------- */

.booking-delegates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.booking-delegate {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.booking-delegate:hover,
.booking-delegate:focus-visible {
    border-color: var(--brand);
    outline: none;
}

.booking-delegate.is-selected {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.booking-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.booking-total__label {
    font-size: 0.88rem;
    color: var(--muted);
}

.booking-total__amount {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brand);
}

/* ---------- Booking overview ---------- */

.summary {
    margin: 0 0 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.summary__head {
    padding: 22px 24px 0;
}

.booking .summary__eyebrow {
    margin: 0 0 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
}

.booking .summary__course {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.summary__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px 24px 22px;
}

.summary__row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.summary__row dt {
    padding-top: 1px;
    color: var(--brand);
}

.summary__row dt svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary__row dd {
    margin: 0;
    min-width: 0;
}

.summary__value {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
}

.summary__sub {
    display: block;
    margin-top: 1px;
    font-size: 0.8rem;
    color: var(--muted);
}

.summary__row .day-details {
    margin-top: 4px;
}

/* Screen-reader-only labels */
.summary__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Total band */
.summary__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: #f7f9fc;
}

.summary__total dt {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.summary__total dd {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.summary__total dd.summary__note {
    max-width: 70%;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    color: var(--text);
}

/* ---------- Errors ---------- */

.booking-alert {
    margin: 0 0 20px;
    padding: 16px 20px;
    border: 1px solid #fecdca;
    border-radius: 14px;
    background: var(--error-tint);
    color: var(--error);
    font-size: 0.88rem;
}

.booking-alert__title {
    margin: 0 0 6px;
    font-weight: 600;
}

.booking .errorMessage,
.booking .errorMsg {
    display: block;
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--error);
}

.booking .lightErrorMsg {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--error-tint);
}

.booking .ErrorOnDate {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

/* ---------- Consent and submit (booking form) ---------- */

.booking-consent {
    margin: 0 0 20px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--muted);
}

.booking-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.booking .booking-submit__button {
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom:80px;
    transition: background-color 0.15s ease;
}

.booking .booking-submit__button:hover,
.booking .booking-submit__button:focus-visible {
    background: var(--brand-dark);
}

.booking-submit__note {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------- Quote form extras ---------- */

.quote-hint {
    margin: -6px 0 16px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted);
}

.quote-hint a {
    font-weight: 500;
    color: var(--brand);
}

.booking .quote-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.booking .quote-choices.HasError .quote-choice {
    border-color: var(--error);
}
/* Layout: 2 columns on wider screens, last item ("Other") full width */
.quote-choices.AttendenceType {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .quote-choices.AttendenceType {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-choices.AttendenceType > li:last-child {
        grid-column: 1 / -1;
    }
}

.quote-choices.AttendenceType > li {
    display: flex; /* lets the label stretch so cards in a row match height */
    margin: 0;
}

/* Card */
.quote-choices.AttendenceType .quote-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    line-height: 1.4;
    background: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-choices.AttendenceType .quote-choice:hover {
    border-color: #9fb3c8;
}

/* Native input: hidden visually, still focusable */
.quote-choices.AttendenceType .quote-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

/* Custom box: pinned to the first line of text */
.quote-choices.AttendenceType .quote-choice__box {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.1rem 0 0;
    border: 2px solid #9aa5b1;
    border-radius: 4px;
    background: #fff;
    align-self: flex-start;
}

.quote-choices.AttendenceType .quote-choice input:checked + .quote-choice__box {
    background: #2a5d8f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
    border-color: #2a5d8f;
}

.quote-choices.AttendenceType .quote-choice input:focus-visible + .quote-choice__box {
    outline: 3px solid #f2b705;
    outline-offset: 2px;
}

.quote-choices.AttendenceType .quote-choice:has(input:checked) {
    border-color: #2a5d8f;
    background: #f2f7fb;
}

/* Text */
.quote-choices.AttendenceType .quote-choice__text {
    line-height: 1.4;
    color: #1d2a36;
}
.booking label.quote-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.booking label.quote-choice:hover {
    border-color: var(--brand);
}

.quote-choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.quote-choice__box {
    flex: none;
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-choice__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
}

.quote-choice input:checked + .quote-choice__box {
    border-color: var(--brand);
    background: var(--brand);
}

.quote-choice input:checked + .quote-choice__box::after {
    opacity: 1;
}

.booking label.quote-choice:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-tint);
}

.quote-choice input:focus-visible + .quote-choice__box {
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.25);
}

.booking ul.quote-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.quote-end {
    margin-top: 8px;
}

.quote-end button[type="submit"],
.quote-end input[type="submit"] {
    margin-bottom:80px;
    padding: 14px 48px;
    border: none;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.quote-end button[type="submit"]:hover,
.quote-end input[type="submit"]:hover {
    background: var(--brand-dark);
}

/* ---------- Enquiry form extras ---------- */

.enquiry-context {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 20px;
    padding: 16px 20px;
    border-left: 3px solid var(--brand);
    border-radius: 0 12px 12px 0;
    background: var(--brand-tint);
}

.enquiry-context__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
}

.enquiry-context__course {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}

.enquiry-optional {
    font-weight: 400;
    color: var(--muted);
}

.booking .chkboxs {
    margin: 20px 0;
    padding-top: 0;
}

.booking .chkboxs legend {
    margin-bottom: 10px;
}

/* ---------- Radios and plain checkboxes from the shared partials ---------- */

/* Native input: visually hidden, still focusable and announced */
.booking input[type="radio"],
.booking input[type="checkbox"]:not(.quote-choice input) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Radio groups wrap onto new lines; position: relative keeps the hidden
   inputs here, so keyboard focus doesn't scroll the page to the top */
.booking .form-end__options,
.booking :has(> input[type="radio"] + label),
.booking :has(> * > input[type="radio"] + label) {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
    max-width: 100%;
    white-space: normal;
}

/* Each option is a pill */
.booking input[type="radio"] + label,
.booking input[type="checkbox"]:not(.quote-choice input) + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin: 0;
    padding: 9px 16px 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    white-space: normal;
    vertical-align: middle;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* The drawn control (overrides any legacy ::before / ::after) */
.booking input[type="radio"] + label::before,
.booking input[type="checkbox"]:not(.quote-choice input) + label::before {
    content: "";
    position: static;
    flex: none;
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #9ca3af;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.booking input[type="checkbox"]:not(.quote-choice input) + label::before {
    border-radius: 4px;
}

.booking input[type="radio"] + label::after,
.booking input[type="checkbox"]:not(.quote-choice input) + label::after {
    content: none !important;
    display: none !important;
}

/* Hover */
.booking input[type="radio"] + label:hover,
.booking input[type="checkbox"]:not(.quote-choice input) + label:hover {
    border-color: var(--brand);
}

/* Checked: tinted pill, brand text, slim ring with a dot */
.booking input[type="radio"]:checked + label,
.booking input[type="checkbox"]:not(.quote-choice input):checked + label {
    border-color: var(--brand);
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 500;
}

.booking input[type="radio"]:checked + label::before {
    border-color: var(--brand);
    background: radial-gradient(circle, var(--brand) 0 3.5px, #fff 4px);
}

.booking input[type="checkbox"]:not(.quote-choice input):checked + label::before {
    border-color: var(--brand);
    background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Keyboard focus on the whole pill */
.booking input[type="radio"]:focus-visible + label,
.booking input[type="checkbox"]:not(.quote-choice input):focus-visible + label {
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.2);
}

/* ---------- Compact version for the popout ---------- */

.booking--compact .booking-step {
    margin-bottom: 14px;
    padding: 16px 0 0;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.booking--compact .booking-step:first-of-type {
    padding-top: 0;
    border-top: none;
}

.booking--compact .booking-step__title {
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.booking--compact .enquiry-context {
    margin-bottom: 16px;
    padding: 12px 16px;
}

.booking--compact .booking-alert {
    margin-bottom: 14px;
    padding: 12px 16px;
}

/* ---------- End of form (EnquiryEndSegment) ---------- */

.form-end {
    --fe-brand: var(--brand, #006699);
    --fe-brand-dark: var(--brand-dark, #004c73);
    --fe-text: var(--text, #1f2937);
    --fe-muted: var(--muted, #6b7280);
    --fe-line: var(--line, #e5e7eb);

    display: grid;
    gap: 20px;
    margin-top: 4px;
    font-family: Poppins, sans-serif;
    color: var(--fe-text);
}

/* Consent */
.form-end__consent {
    margin: 0;
    padding: 20px 24px;
    border: 1px solid var(--fe-line);
    border-radius: 16px;
    background: #fff;
}

.form-end__legend {
    float: left; /* lets the legend sit inside the padding like a normal heading */
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--fe-text);
}

.form-end__hint {
    clear: both;
    margin: 0 12px; width:100%;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--fe-muted);
}

.form-end__options {
    clear: both;
}

/* reCAPTCHA */
.form-end__captcha {
    padding: 20px 24px;
    border: 1px solid var(--fe-line);
    border-radius: 16px;
    background: #f7f9fc;
}

.form-end__captcha-text {
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--fe-text);
}

/* Privacy note */
.form-end__privacy {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--fe-muted);
}

/* Messages */
.form-end__messages {
    display: grid;
    gap: 10px;
}

.form-end__message {
    margin: 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.form-end__message--success {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.form-end__message--error {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.form-end__alert {
    margin: 0;
}

/* Submit */
.form-end__submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.form-end .form-end__submit {
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    background: var(--fe-brand);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.form-end .form-end__submit:hover,
.form-end .form-end__submit:focus-visible {
    background: var(--fe-brand-dark);
}

.form-end .form-end__submit:active {
    transform: translateY(1px);
}

.form-end__required {
    font-size: 0.78rem;
    color: var(--fe-muted);
}

/* Compact popout version */
.booking--compact .form-end__consent,
.booking--compact .form-end__captcha {
    padding: 16px 0 0;
    border: none;
    border-top: 1px solid var(--fe-line);
    border-radius: 0;
    background: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
    .booking-step {
        padding: 18px;
    }

    .booking-date {
        grid-template-columns: auto 1fr;
    }

    .booking-date .booking-venue,
    .booking-date__price {
        grid-column: 2;
        justify-self: start;
    }

    .booking .booking-submit__button {
        width: 100%;
    }

    .booking-chosen__main {
        padding: 16px;
    }

    .booking-chosen__price {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        text-align: left;
    }

    .booking-chosen__actions {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }

    .booking-chosen__change {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }

    .day-details__list li {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .day-details__list li .booking-venue {
        grid-column: 2;
        justify-self: start;
    }

    .summary__head {
        padding: 18px 18px 0;
    }

    .summary__list {
        padding: 16px 18px 18px;
    }

    .summary__total {
        padding: 14px 18px;
    }

    .summary__total dd.summary__note {
        max-width: none;
        text-align: left;
    }

    .booking ul.quote-row {
        grid-template-columns: 1fr;
    }

    .form-end__consent,
    .form-end__captcha {
        padding: 18px;
    }

    .form-end .form-end__submit {
        width: 100%;
    }

    .form-end__submit-row {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking *,
    .booking *::before,
    .booking *::after {
        transition: none !important;
    }
}
/*Success */

.success-message {
    --success-accent: #1f8a4c;
    --success-accent-soft: #e8f5ee;
    --success-text: #1d2a22;
    --success-muted: #4a5a50;

    max-width: 40rem;
    margin: 2.5rem 0;
    padding: 30px 30px 50px 30px ;
    text-align: lefty;
    background: #fff;
    border: 1px solid #dfe9e3;
    border-top: 4px solid var(--success-accent);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    outline: none;
    animation: success-message-in 0.35s ease-out;
}

.success-message__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    color: var(--success-accent);
    background: var(--success-accent-soft);
}

.success-message__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--success-text);
}

.success-message__body {
    margin: 0 auto;

    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--success-muted);
}

@keyframes success-message-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .success-message { animation: none; }
}

@media (max-width: 480px) {
    .success-message {
        margin: 1.5rem 1rem;
        padding: 2rem 1.25rem;
    }
}

.success-message--frozen h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--success-text);
}

.success-message--frozen h2 {
    margin: 0 auto;

    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--success-muted);
}