/* ==========================================================================
   Public Site: shared booking widget styles
   Used by the home booking form and room details booking form.
   ========================================================================== */

.room-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.room-price-container {
    width: 100%;
    margin-top: 5px;
}

.fixed-width {
    min-width: 80px;
    text-align: center;
}

.booking-form .input-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shared availability date states for Bootstrap Datepicker. */
.datepicker-past {
    color: #ccc !important;
    background-color: #f8f9fa !important;
}

.datepicker-booked {
    color: #fff !important;
    background-color: #dc3545 !important;
}

.datepicker-available {
    color: #fff !important;
    background-color: #28a745 !important;
}

.datepicker-default {
    color: #000 !important;
    background-color: #fff !important;
}

/* Keep datepicker clickable on room details and home pages. */
.datepicker table td,
.datepicker table th,
.datepicker table tr,
.datepicker table,
.datepicker,
.datepicker-dropdown,
.datepicker-days th,
.datepicker-days td,
.datepicker-prev,
.datepicker-next {
    cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   Premium booking theme shared by room-details.php and db/book.php
   -------------------------------------------------------------------------- */

.room-details-page .booking-form,
.booking-page-card,
.booking-page-side {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 41, 74, 0.08);
    border-radius: 26px;
    box-shadow: 0 24px 56px rgba(12, 34, 63, 0.12);
}

.room-details-page .booking-form {
    padding: 28px 26px 24px;
}

.room-details-page .booking-form h2,
.booking-page-title,
.booking-page-card h4,
.booking-page-side h4 {
    color: #132a47;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.room-details-page .booking-form h2 {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 14px;
    text-align: center;
}

.room-details-page .booking-form h2::after,
.booking-page-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, #d2ac72 0%, #2d6fcb 100%);
}

.room-details-page .booking-form label,
.booking-page-card label,
.booking-page-side label {
    display: block;
    margin-bottom: 8px;
    color: #314760;
    font-size: 0.88rem;
    font-weight: 700;
}

.room-details-page .booking-form input[type="text"],
.room-details-page .booking-form input[type="email"],
.room-details-page .booking-form select,
.booking-page-card .form-control,
.booking-page-card .form-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8e0eb;
    border-radius: 14px;
    padding: 0 16px;
    color: #223754;
    background: #fbfcfe;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.room-details-page .booking-form input[type="text"]:focus,
.room-details-page .booking-form input[type="email"]:focus,
.room-details-page .booking-form select:focus,
.booking-page-card .form-control:focus,
.booking-page-card .form-select:focus {
    border-color: rgba(45, 111, 203, 0.45);
    box-shadow: 0 0 0 4px rgba(45, 111, 203, 0.12);
    background: #fff;
    outline: none;
}

.room-details-page .booking-form input[readonly],
.room-details-page .booking-form input[disabled],
.booking-page-card .form-control[readonly] {
    color: #66788e;
    background: #f6f8fb;
}

.room-details-page .booking-form .room-container label:first-child {
    color: #132a47;
    font-size: 1rem;
}

.room-details-page .booking-form .check-date,
.room-details-page .booking-form .select-option,
.room-details-page .booking-form .form-group {
    margin-bottom: 18px;
}

.room-details-page .booking-form button[type="submit"],
.booking-page-card .btn-primary {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #122d4d 0%, #2d6fcb 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 18px 30px rgba(18, 45, 77, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.room-details-page .booking-form button[type="submit"]:hover,
.booking-page-card .btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 20px 32px rgba(18, 45, 77, 0.26);
}

.booking-page-shell {
    background: linear-gradient(180deg, #f7f1e8 0%, #ffffff 24%);
    min-height: 100vh;
}

.booking-page-main {
    padding: 48px 0 72px;
}

.booking-page-header {
    text-align: center;
    margin-bottom: 28px;
}

.booking-page-header p {
    margin: 10px auto 0;
    max-width: 620px;
    color: #6a7688;
}

.booking-page-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 14px;
    font-size: 2.1rem;
}

.booking-page-card {
    padding: 32px;
}

.booking-page-card h4,
.booking-page-side h4 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.booking-page-card .form-check {
    padding: 12px 14px 12px 2rem;
    margin-bottom: 10px;
    border: 1px solid #e6ecf4;
    border-radius: 14px;
    background: #fbfcfe;
}

.booking-page-card .form-check-input {
    margin-top: 0.35rem;
}

.booking-page-card .form-check-label {
    margin-bottom: 0;
    font-weight: 600;
}

.booking-page-side {
    padding: 28px;
    height: 100%;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

.booking-page-side h5 {
    margin: 18px 0 8px;
    color: #1d3655;
    font-size: 1rem;
    font-weight: 700;
}

.booking-page-side p,
.booking-page-side .booking-page-live p {
    color: #5f6f82;
    line-height: 1.7;
}

.booking-page-live {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e7edf5;
}

.booking-page-live p {
    margin-bottom: 8px;
}

.booking-page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #2d6fcb;
    font-weight: 700;
}

.booking-page-back-link:hover {
    color: #132a47;
}

@media (max-width: 991px) {
    .booking-page-main {
        padding: 34px 0 54px;
    }

    .booking-page-side {
        margin-top: 22px;
    }
}

@media (max-width: 767px) {
    .room-details-page .booking-form,
    .booking-page-card,
    .booking-page-side {
        border-radius: 22px;
    }

    .room-details-page .booking-form,
    .booking-page-card,
    .booking-page-side {
        padding: 22px 18px;
    }

    .booking-page-title {
        font-size: 1.75rem;
    }
}
