:root {
    --enquiry-primary: #a071dc;
    --enquiry-primary-dark: #562d82;
    --enquiry-surface: #ffffff;
    --enquiry-page: #ffffff;
    --enquiry-border: #d8dee5;
    --enquiry-muted: #5f6b76;
    --enquiry-success: #198754;
    --enquiry-danger: #b02a37;
}

.booking-enquiry-page {
    background: var(--enquiry-page);
    min-height: 100vh;
    zoom: 1.2;
}

.enquiry-container {
    max-width: 1180px;
}

.enquiry-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--enquiry-primary-dark), var(--enquiry-primary));
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 1rem 2.5rem rgba(0, 63, 115, 0.18);
}

.enquiry-eyebrow,
.step-kicker {
    display: block;
    margin-bottom: .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.enquiry-eyebrow {
    color: rgba(255, 255, 255, .75);
}

.enquiry-progress {
    display: grid;
    gap: .85rem;
}

.progress-step {
    display: flex;
    gap: .75rem;
    align-items: center;
    color: rgba(255, 255, 255, .7);
}

.progress-step.is-active {
    color: #fff;
}

.progress-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
}

.progress-step small {
    display: block;
    color: inherit;
    opacity: .8;
}

.enquiry-step {
    scroll-margin-top: 1rem;
}

.step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-kicker {
    color: var(--enquiry-primary);
}

.enquiry-card {
    border: 1px solid var(--enquiry-border);
    border-radius: .9rem;
    box-shadow: 0 .35rem 1.25rem rgba(27, 45, 61, .06);
    overflow: hidden;
}

.enquiry-card .card-header {
    background: var(--enquiry-surface);
    border-bottom: 1px solid var(--enquiry-border);
    padding: 1.15rem 1.25rem;
}

.enquiry-card .card-body {
    padding: 1.25rem;
}

.form-label,
.form-check-label {
    font-weight: 600;
}

.form-control,
.form-select,
.input-group .btn {
    min-height: 2.75rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--enquiry-primary);
    box-shadow: 0 0 0 .2rem rgba(0, 94, 168, .18);
}

.form-check-input:checked {
    background-color: var(--enquiry-primary);
    border-color: var(--enquiry-primary);
}

.required {
    color: var(--enquiry-danger);
    font-weight: 700;
}

.enquiry-switch .form-check-input {
    width: 2.75rem;
    height: 1.45rem;
    margin-right: .6rem;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    background-color: var(--enquiry-primary);
    border-color: var(--enquiry-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--enquiry-primary-dark);
    border-color: var(--enquiry-primary-dark);
}

#alAddr.has-error .invalid-feedback {
    display: block;
}

.booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.booking-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.availability-status {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    color: var(--enquiry-muted);
    background: #f7f9fb;
    border: 1px solid var(--enquiry-border);
    border-radius: .7rem;
}

.availability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 1.6rem;
    color: #fff;
    background: var(--enquiry-primary);
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.summary-row + .summary-row {
    border-top: 1px solid var(--enquiry-border);
}

.summary-label {
    display: block;
    margin-bottom: .15rem;
    color: var(--enquiry-muted);
    font-size: .85rem;
}

.submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--enquiry-surface);
    border: 1px solid var(--enquiry-border);
    border-left: .35rem solid var(--enquiry-primary);
    border-radius: .75rem;
}

/* Stage 2 availability states */
.availability-status--loading {
    background: #fff8e1;
    border-color: #ffe08a;
}

.availability-status--loading .availability-icon {
    background: #997404;
}

.availability-status--success {
    color: #146c43;
    background: #eaf7ef;
    border-color: #a3cfbb;
}

.availability-status--success .availability-icon {
    background: var(--enquiry-success);
}

.availability-status--danger {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

.availability-status--danger .availability-icon {
    background: var(--enquiry-danger);
}

.progress-step.is-complete .progress-step-number {
    color: var(--enquiry-primary-dark);
    background: #fff;
    border-color: #fff;
}

.booking-card .is-invalid {
    border-color: var(--enquiry-danger);
}

#localResidentFieldset.is-invalid .invalid-feedback {
    display: block;
}

#localResidentFieldset.is-invalid {
    border-left: 3px solid var(--bs-danger);
    padding-left: .75rem;
}

.booking-summary-list {
    display: grid;
    gap: 1rem;
}

.booking-summary-item {
    padding: 1rem;
    background: #f7f9fb;
    border: 1px solid var(--enquiry-border);
    border-radius: .7rem;
}

.booking-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.booking-summary-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1.5rem;
    margin: 0;
}

.booking-summary-details > div {
    min-width: 0;
}

.booking-summary-details dt {
    margin-bottom: .15rem;
    color: var(--enquiry-muted);
    font-size: .8rem;
    font-weight: 600;
}

.booking-summary-details dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.customer-summary-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.5rem;
}

.customer-summary-details > div {
    min-width: 0;
}

.customer-summary-details dt {
    margin-bottom: .15rem;
    color: var(--enquiry-muted);
    font-size: .8rem;
    font-weight: 600;
}

.customer-summary-details dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.availability-status--loading {
    color: #664d03;
    background: #fff3cd;
    border-color: #ffecb5;
}

.availability-status--loading .availability-icon {
    background: #997404;
}

.availability-status--success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #badbcc;
}

.availability-status--danger {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.availability-status--danger .availability-icon {
    background: var(--enquiry-danger);
}

/* Confirmation page */

.confirmation-content {
    max-width: 900px;
    margin: 0 auto;
}

.confirmation-hero {
    margin-bottom: 1.5rem;
    padding: 2rem 2.25rem;

    color: #fff;
    background: linear-gradient(
            135deg,
            var(--enquiry-primary-dark),
            var(--enquiry-primary)
    );

    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgba(86, 45, 130, .14);
}

.confirmation-hero-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;

    color: var(--enquiry-success);
    background: #fff;

    border-radius: 50%;

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.confirmation-kicker {
    display: block;
    margin-bottom: .3rem;

    color: rgba(255, 255, 255, .75);

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.confirmation-hero h1 {
    margin: 0 0 .4rem;
    font-size: 2rem;
    font-weight: 700;
}

.confirmation-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    line-height: 1.5;
}


/* Main confirmation content */

.confirmation-panel {
    padding: 2rem;

    background: #fff;
    border: 1px solid var(--enquiry-border);
    border-radius: 1rem;

    box-shadow: 0 .35rem 1.25rem rgba(27, 45, 61, .06);
}

.confirmation-message {
    margin-bottom: 1.75rem;
}

.confirmation-message h2 {
    margin-bottom: .5rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.confirmation-message p {
    margin-bottom: 0;
    color: var(--enquiry-muted);
    line-height: 1.6;
}


/* What happens next */

.confirmation-next {
    margin-bottom: 1.75rem;
    padding: 1.5rem;

    background: #f7f9fb;

    border: 1px solid var(--enquiry-border);
    border-radius: .75rem;
}

.confirmation-next h2 {
    margin-bottom: .75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.confirmation-next p {
    margin-bottom: .75rem;
    color: var(--enquiry-muted);
    line-height: 1.6;
}

.confirmation-next p:last-child {
    margin-bottom: 0;
}


/* Actions */

.confirmation-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirmation-actions .btn {
    min-width: 11rem;
}

/* Payment summary */

.summary-hero {
    color: #fff;
    background: linear-gradient(
            135deg,
            var(--enquiry-primary-dark),
            var(--enquiry-primary)
    );
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 .75rem 2rem rgba(86, 45, 130, .14);
}

.summary-hero p {
    color: rgba(255, 255, 255, .88);
}

.customer-summary-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-summary-address {
    grid-column: 2;
    grid-row: 1 / span 3;
}

/* Label/value summary */

.payment-summary-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
}

.payment-summary-details > div {
    min-width: 0;
}

.payment-summary-details dt {
    margin-bottom: .2rem;
    color: var(--enquiry-muted);
    font-size: .8rem;
    font-weight: 600;
}

.payment-summary-details dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Seasonal pitch preferences */

.preferred-pitch-list {
    display: grid;
    gap: .85rem;
}

.preferred-pitch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;

    background: #f7f9fb;

    border: 1px solid var(--enquiry-border);
    border-radius: .7rem;
}

.preferred-pitch-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;

    color: #fff;
    background: var(--enquiry-primary);

    border-radius: 50%;

    font-weight: 700;
}

.preferred-pitch strong {
    display: block;
}

.preferred-pitch span:not(.preferred-pitch-rank) {
    display: block;
    margin-top: .15rem;
    color: var(--enquiry-muted);
}


/* Price */

.payment-total-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 1.5rem 1.75rem;

    background: #f7f9fb;

    border: 1px solid var(--enquiry-border);
    border-radius: .75rem;
}

.payment-total-label {
    display: block;
    margin-bottom: .2rem;

    color: var(--enquiry-muted);

    font-size: .85rem;
    font-weight: 600;
}

.payment-total-value {
    display: block;

    color: var(--enquiry-primary-dark);

    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}


/* Expired payment */

.payment-expired-alert {
    border-radius: .75rem;
}


/* Final payment action */

.payment-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    padding: 1.5rem;

    background: var(--enquiry-surface);

    border: 1px solid var(--enquiry-border);
    border-left: .35rem solid var(--enquiry-primary);
    border-radius: .75rem;

    box-shadow: 0 .25rem .85rem rgba(27, 45, 61, .04);
}

.payment-action-panel form {
    flex: 0 0 auto;
}

/* Payment outcome */

.payment-outcome-content {
    max-width: 900px;
    margin: 0 auto;
}

.payment-outcome-hero {
    margin-bottom: 1.5rem;
    padding: 2rem 2.25rem;

    color: #fff;

    border-radius: 1rem;

    box-shadow: 0 .75rem 2rem rgba(27, 45, 61, .12);
}

.payment-outcome-hero--success {
    background: linear-gradient(
            135deg,
            #146c43,
            var(--enquiry-success)
    );
}

.payment-outcome-hero--failure {
    background: linear-gradient(
            135deg,
            #842029,
            var(--enquiry-danger)
    );
}

.payment-outcome-hero-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.payment-outcome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;

    color: #1f2933;
    background: #fff;

    border-radius: 50%;

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.payment-outcome-kicker {
    display: block;
    margin-bottom: .3rem;

    color: rgba(255, 255, 255, .75);

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.payment-outcome-hero p {
    color: rgba(255, 255, 255, .9);
}

.payment-outcome-panel .card-body {
    padding: 2rem;
}

.payment-reference-panel {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;

    background: #f7f9fb;

    border: 1px solid var(--enquiry-border);
    border-radius: .75rem;
}

.payment-reference-label {
    display: block;
    margin-bottom: .2rem;

    color: var(--enquiry-muted);

    font-size: .8rem;
    font-weight: 600;
}

.payment-reference-value {
    display: block;

    font-size: 1.2rem;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.payment-outcome-message {
    margin-bottom: 1.75rem;
}

.payment-outcome-message p {
    color: var(--enquiry-muted);
    line-height: 1.6;
}

.payment-outcome-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

/* Mobile */

@media (max-width: 767.98px) {

    .step-heading,
    .submit-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .step-actions,
    .step-actions .btn,
    .submit-panel .btn {
        width: 100%;
    }

    .booking-card-header {
        align-items: flex-start;
    }

    .booking-summary-details {
        grid-template-columns: 1fr;
    }

    .customer-summary-details {
        grid-template-columns: 1fr;
    }

    .customer-summary-address {
        grid-column: auto;
        grid-row: auto;
    }

    .confirmation-hero,
    .confirmation-panel {
        padding: 1.5rem;
    }

    .confirmation-hero-content {
        align-items: flex-start;
    }

    .confirmation-icon {
        width: 3rem;
        height: 3rem;
        flex-basis: 3rem;
        font-size: 1.35rem;
    }

    .confirmation-hero h1 {
        font-size: 1.6rem;
    }

    .confirmation-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .confirmation-actions .btn {
        width: 100%;
    }

    .summary-hero {
        padding: 1.5rem;
    }

    .payment-summary-details {
        grid-template-columns: 1fr;
    }

    .payment-total-panel {
        justify-content: flex-start;
    }

    .payment-action-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .payment-action-panel form,
    .payment-action-panel .btn {
        width: 100%;
    }

    .payment-outcome-hero,
    .payment-outcome-panel .card-body {
        padding: 1.5rem;
    }

    .payment-outcome-hero-content {
        align-items: flex-start;
    }

    .payment-outcome-icon {
        width: 3rem;
        height: 3rem;
        flex-basis: 3rem;
        font-size: 1.35rem;
    }

    .payment-outcome-actions {
        flex-direction: column;
    }

    .payment-outcome-actions .btn {
        width: 100%;
    }
}