/*
 * Booking page (/dat-hen) — form UI mirroring soispa.myspa.vn/dat-hen.
 * Purple accents follow the myspa look; typography inherits the BeTheme base.
 */

/* Restore BeTheme's default #Content spacing removed by the layout's global no-content-padding */
.booking-page #Content {
    padding-top: 30px !important;
}

.booking {
    max-width: 36rem;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.booking__header {
    text-align: center;
    margin-bottom: 2rem;
}

.booking__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.booking__heading-brand {
    color: #9ccc65;
}

.booking__contact {
    margin-bottom: 0.25rem;
    color: #555555;
}

.booking__form {
    background: #ffffff;
    border: 1px solid #ececf3;
    border-radius: 0.5rem;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.75rem 2.5rem;
}

.booking__form-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

/* -------------------------------------------------------------- form fields */

.booking__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.booking__field label,
.booking__label {
    display: block;
    margin-bottom: 0.4rem;
    color: #444444;
}

.booking__field input,
.booking__field select,
.booking__field textarea {
    width: 100%;
    border: 1px solid #d9d9e3;
    border-radius: 1.25rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    box-shadow: none;
    margin-bottom: 0;
}

.booking__field textarea {
    border-radius: 0.75rem;
    resize: vertical;
}

.booking__field input[readonly] {
    background: #f2f2f6;
}

.booking__field--full {
    margin-bottom: 1.25rem;
}

.booking__required {
    color: #e53935;
}

.booking__group {
    margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------------- branches */

.booking__branches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.booking .booking__branch {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    background: #7d6bc9;
    color: #ffffff;
    border: 2px solid #7d6bc9;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.booking .booking__branch:hover {
    background: #6a58b8;
    border-color: #6a58b8;
}

.booking .booking__branch--active {
    background: #55429e;
    border-color: #2e1f6e;
}

.booking .booking__branch-name {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.35;
}

.booking .booking__branch-address {
    font-size: 0.72rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* ----------------------------------------------------------------- calendar */

.booking__calendar {
    border: 1px solid #ececf3;
    border-radius: 0.5rem;
    padding: 1rem;
}

.booking__calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.booking__calendar-month {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: lowercase;
}

.booking .booking__calendar-today,
.booking .booking__calendar-nav button {
    background: #ffffff;
    border: 1px solid #d9d9e3;
    border-radius: 0.35rem;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    color: #555555;
}

.booking .booking__calendar-today:hover,
.booking .booking__calendar-nav button:hover {
    border-color: #7d6bc9;
    color: #7d6bc9;
}

.booking__calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.booking__calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #888888;
    padding: 0.4rem 0;
    border-bottom: 1px solid #ececf3;
}

.booking .booking__calendar-day {
    background: none;
    border: 0;
    border-bottom: 1px solid #f3f3f7;
    padding: 0.55rem 0;
    text-align: center;
    cursor: pointer;
    color: #444444;
    border-radius: 0;
}

.booking .booking__calendar-day:hover:not(:disabled) {
    background: #f0edfb;
}

.booking .booking__calendar-day--outside {
    color: #c3c3cd;
}

.booking .booking__calendar-day--today {
    font-weight: 700;
}

.booking .booking__calendar-day--active {
    background: #7d6bc9;
    color: #ffffff;
}

.booking .booking__calendar-day--active:hover:not(:disabled) {
    background: #6a58b8;
}

.booking .booking__calendar-day:disabled {
    color: #c3c3cd;
    cursor: default;
}

/* --------------------------------------------------------------- time slots */

.booking__slots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.booking .booking__slot {
    background: #ffffff;
    border: 1px solid #8878cf;
    border-radius: 0.35rem;
    color: #6a58b8;
    font-weight: 600;
    padding: 0.55rem 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.booking .booking__slot:hover:not(:disabled) {
    background: #f0edfb;
}

.booking .booking__slot--active {
    background: #7d6bc9;
    border-color: #7d6bc9;
    color: #ffffff;
}

.booking .booking__slot:disabled {
    border-color: #d9d9e3;
    color: #c3c3cd;
    cursor: default;
}

/* ------------------------------------------------------------------- footer */

.booking__note {
    font-style: italic;
    color: #777777;
    margin-bottom: 1.5rem;
}

.booking__error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 0.35rem;
    color: #b71c1c;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
}

.booking .booking__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #a99ee0;
    border: 0;
    border-radius: 1.5rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.booking .booking__submit:hover {
    background: #7d6bc9;
    color: #ffffff;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 768px) {
    .booking__branches {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking__slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .booking__fields {
        grid-template-columns: 1fr;
    }

    .booking__form {
        padding: 1.5rem 1rem 2rem;
    }

    .booking__slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .booking__branches {
        grid-template-columns: 1fr;
    }
}
