
/* =========================================================
   BOOKING FORM + CONSENT
========================================================= */

#booking-form > p,
.consent-box,
.signature-box,
.booking-actions {
    margin-bottom: 22px;
}

.modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px;
}

#booking-modal .modal-card {
    width: min(96vw, 980px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.consent-box {
    margin: 20px 0;
    padding: clamp(20px, 3vw, 32px);
    border: 2px solid #e0d2c2;
    border-radius: 18px;
    background: #fffaf7;
    transition: all 0.2s ease;

    max-height: none;
    overflow: visible;
}

.consent-text {
    max-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: break-word;
    padding: 12px;
    background: white;
    border-radius: 10px;
    font-size: 0.95rem;
}


.consent-box.consent-missing {
    border-color: #d32f2f;
    background: #fff3f3;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}


#booking-modal .consent-text {
    max-height: 70vh !important;
}

.consent-section p {
    margin: 16px 0 8px;
    line-height: 1.55;
}

.consent-section label {
    display: block;
    margin: 10px 0 6px;
    line-height: 1.35;
}

.optional-note {
    display: inline;
    margin-left: 4px;
    font-size: 0.9rem;
    opacity: 0.75;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

.consent-section input[type="text"],
.consent-section input[type="email"],
.consent-section input[type="date"],
.consent-section textarea,
.signature-box input,
#booking-form input,
#booking-form select,
#booking-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.consent-section textarea {
    min-height: 90px;
    resize: vertical;
}

.consent-section label:has(input[type="radio"]),
.consent-section label:has(input[type="checkbox"]),
.consent-check,
.consent-check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    line-height: 1.35;
    cursor: pointer;
}

.consent-section input[type="radio"],
.consent-section input[type="checkbox"],
.consent-check input[type="checkbox"],
.consent-check-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 18px;
    accent-color: #7a4f3a;
}

.consent-radio-row {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

.consent-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.consent-radio-row input[type="radio"] {
    margin: 0;
}

.consent-detail-box {
    margin: 16px 0 22px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
}

.consent-detail-box label {
    display: block;
    margin-top: 0;
}

.consent-signoff-box {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
}

.consent-check {
    justify-content: center;
    text-align: center;
    font-weight: 600;
}

.consent-error {
    display: none;
    color: #b00020;
    font-weight: 600;
}

.consent-box.consent-missing .consent-error {
    display: block;
}

.form-error {
    color: #b00020;
    font-size: 0.9rem;
}

.booking-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

