.top-booking-heading {
    border-bottom: 2px solid #1556a2;
    padding-bottom: .35em;
}

.top-booking-heading > span {
    margin-inline-end: .35em;
}

.booking-card legend.top-booking-heading,
.booking-card h3.top-booking-heading {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: .35em;
    margin-bottom: 12px;
    border-bottom: 2px solid #1556a2;
}

.booking-card .booking-price {
    position: relative;
}

.booking-card .top-booking-calculating {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: inherit;
    background: rgba(238, 245, 255, .55);
    -webkit-backdrop-filter: blur(6px) saturate(1.2);
    backdrop-filter: blur(6px) saturate(1.2);
    color: #142a43;
    text-align: center;
}

.booking-card .top-booking-calculating[hidden] {
    display: none;
}

.booking-card .top-booking-calculating strong {
    font-size: 1.05rem;
}

.booking-card .top-booking-calculating small {
    color: #40566f;
}

.booking-card .top-booking-calculating-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(21, 86, 162, .25);
    border-top-color: #1556a2;
    border-radius: 50%;
    animation: top-booking-spin .8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .booking-card .top-booking-calculating-spinner { animation-duration: 2s; }
}

.booking-card .top-booking-required {
    color: #d32f2f;
    font-weight: 700;
}

.booking-card .top-booking-required[hidden] {
    display: none;
}

.booking-card .top-booking-required-note {
    margin: 0 0 12px;
    color: #475c74;
    font-size: .875rem;
}

.booking-card .top-booking-field-error {
    display: block;
    margin: 4px 0 0;
    color: #a11c18;
    font-size: .875rem;
    line-height: 1.35;
    font-weight: 600;
}

.booking-card .top-booking-field-error[hidden] {
    display: none;
}

.booking-card [aria-invalid="true"] {
    border-color: #a11c18 !important;
    background: #fff7f6;
}

.booking-card .top-booking-form-error,
.booking-card .top-booking-quote-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #d97575;
    border-inline-start-width: 4px;
    border-radius: 8px;
    background: #fff2f2;
    color: #761e24;
    font-weight: 600;
    line-height: 1.4;
}

.booking-card .top-booking-form-error[hidden],
.booking-card .top-booking-quote-error[hidden],
.booking-card .top-booking-capacity[hidden] {
    display: none;
}

.booking-card .top-booking-capacity {
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #d97575;
    border-inline-start-width: 6px;
    border-radius: 8px;
    background: #fff2f2;
    color: #761e24;
    font-weight: 700;
    line-height: 1.45;
}

.booking-card .booking-calculator [data-quote-status].is-visible {
    display: block;
    margin: 8px 0 0;
    color: #40566f;
    font-size: .9rem;
}

.booking-card .booking-calculator [data-quote-status].is-error {
    color: #a11c18;
    font-weight: 600;
}

.booking-card[aria-busy="true"] button[type="submit"]::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: .5em;
    vertical-align: -.15em;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: top-booking-spin .75s linear infinite;
}

@keyframes top-booking-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .booking-card[aria-busy="true"] button[type="submit"]::before { animation: none; }
}
