/* Keep the success/error notice tidy inside reusable booking blocks. */
.modal.open.hero .modal-container,
.modal.open.price .modal-container {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.cbg .wpcf7-response-output {
    box-sizing: border-box;
    width: 100%;
    margin: 14px auto 28px !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    line-height: 150% !important;
    text-align: center;
}

.modal .wpcf7-response-output {
    box-sizing: border-box;
    width: 100%;
    margin: 10px auto 16px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    line-height: 140% !important;
    text-align: center;
}

/* Inline field messages are sufficient for validation errors. */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.wpcf7-validation-errors .wpcf7-response-output {
    display: none !important;
}

/* Successful submission: replace the completed form with one centered notice. */
.cbg .wpcf7-form.sent > :not(.wpcf7-response-output),
.modal .wpcf7-form.sent > :not(.wpcf7-response-output) {
    display: none !important;
}

.cbg .wpcf7-form.sent,
.modal .wpcf7-form.sent {
    justify-content: center;
    min-height: 430px;
}

.cbg .wpcf7-form.sent .wpcf7-response-output,
.modal .wpcf7-form.sent .wpcf7-response-output {
    width: 100%;
    max-width: 560px;
    margin: 0 auto !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    line-height: 150% !important;
}

@media only screen and (max-width: 600px) {
    .cbg .wpcf7-response-output {
        margin: 12px auto 14px !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    .modal .wpcf7-response-output {
        margin: 8px auto 10px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    .cbg .wpcf7-form.sent,
    .modal .wpcf7-form.sent {
        min-height: 180px;
    }

    .cbg .wpcf7-form.sent .wpcf7-response-output,
    .modal .wpcf7-form.sent .wpcf7-response-output {
        padding: 12px 14px !important;
        font-size: 12px !important;
    }
}
