body { background: #f5f8fb; }

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

.booking-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.booking-head h2 { font-size: 2rem; margin-bottom: 0.2rem; }
.booking-head .stage-desc { color: #567; margin-bottom: 0.3rem; }
.booking-head .stage-price { font-size: 1.4rem; font-weight: 700; color: var(--color1); }
.booking-head .stage-price span { font-weight: 400; color: #789; font-size: 1rem; }

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.panel {
    background: #fff;
    border-radius: 10px;
    padding: 1.4rem;
    box-shadow: 0 4px 14px rgba(29, 81, 127, 0.12);
}
.panel h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel h3 .step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--color1);
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
}

/* Calendar */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.cal-nav button {
    width: 40px; height: 40px;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
    border-radius: 8px;
}
#cal-title { font-weight: 700; font-size: 1.15rem; }

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    min-height: 260px;
}
.calendar.loading { opacity: 0.5; }
.cal-dow {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #789;
    padding: 4px 0;
}
.cal-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #234;
    border: 2px solid transparent;
}
.cal-cell.empty { background: transparent; }
.cal-cell.free { background: #d6f5e0; color: #147a3f; }
.cal-cell.partial { background: #fdf1c7; color: #8a6d10; }
.cal-cell.full { background: #f8d6d6; color: #a12626; }
.cal-cell.closed { background: #eef1f4; color: #aab4bd; }
.cal-cell.clickable { cursor: pointer; }
.cal-cell.clickable:hover { border-color: var(--color1); }
.cal-cell.selected { border-color: var(--color1); box-shadow: 0 0 0 2px var(--color1) inset; }

/* Hours */
.hours {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    min-height: 60px;
}
.slot {
    margin: 0;
    padding: 0.6rem 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #d6f5e0;
    color: #147a3f;
}
.slot:hover { border-color: var(--color1); }
.slot.taken { background: #f8d6d6; color: #a12626; cursor: not-allowed; opacity: 0.85; }
.slot.past { background: #eef1f4; color: #aab4bd; cursor: not-allowed; }
.slot.sel { background: var(--color1); color: #fff; border-color: var(--color1); }
.slot:disabled { pointer-events: none; }

.hint { color: #789; font-style: italic; }

/* Legend */
.legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0.9rem 0 0;
    padding: 0;
    font-size: 0.8rem;
    color: #567;
}
.legend li { display: flex; align-items: center; gap: 5px; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .sw.free { background: #d6f5e0; }
.legend .sw.partial { background: #fdf1c7; }
.legend .sw.full { background: #f8d6d6; }
.legend .sw.closed { background: #eef1f4; }
.legend .sw.taken { background: #f8d6d6; }
.legend .sw.sel { background: var(--color1); }

/* Details */
.details-panel { margin-top: 1.5rem; }
.summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.9rem 1rem;
    background: #eef4fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.summary strong { color: var(--color1); }
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.btn-back {
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    background: #dde3ea;
    color: #345 !important;
    text-decoration: none;
}
#submit-btn { margin: 0; }
#submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.review-table {
    width: 100%;
    margin-bottom: 1.2rem;
}
.review-table th {
    text-align: left;
    color: #567;
    width: 40%;
    padding: 0.5rem 0.5rem 0.5rem 0;
    vertical-align: top;
}
.review-table td { padding: 0.5rem 0; }
.review-table .total-row th,
.review-table .total-row td {
    border-top: 2px solid #dde3ea;
    font-size: 1.2rem;
    padding-top: 0.8rem;
}
.review-table .total-row strong { color: var(--color1); }
.checkout-note { color: #567; margin-top: 1rem; }

@media (max-width: 760px) {
    .booking-grid { grid-template-columns: 1fr; }
    .fields { grid-template-columns: 1fr; }
}
