/* ============================================================
   NEXT COWORKING CENTER — Booking / Reservation Styles
   ============================================================ */

/* ---- BOOKING PAGE BODY ---- */
.booking-page { background: #F8FAFC; }

/* ---- BOOKING HEADER ---- */
.booking-header {
    position: relative;
    height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 72px;
}

.booking-header-bg {
    position: absolute;
    inset: 0;
}

.booking-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,46,110,0.90), rgba(19,86,196,0.75));
}

.booking-header-content {
    position: relative;
    z-index: 2;
    padding: 0 0 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.72rem; }

.booking-header-content h1 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.booking-header-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

/* ---- STEP INDICATOR ---- */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0 40px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-500);
    transition: var(--transition);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--royal), var(--blue));
    border-color: var(--royal);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(19,86,196,0.35);
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label { color: var(--royal); }
.step.completed .step-label { color: var(--success); }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 8px;
    margin-bottom: 24px;
    transition: background 0.3s;
    max-width: 80px;
}

.step-line.active { background: var(--royal); }

/* ---- BOOKING LAYOUT ---- */
.booking-app {
    padding-bottom: 80px;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ---- BOOKING STEP ---- */
.booking-step {
    display: none;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    animation: stepIn 0.4s ease;
}

.booking-step.active { display: block; }

@keyframes stepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-header {
    margin-bottom: 32px;
}

.step-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.step-header h2 span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--royal), var(--blue));
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-left: 44px;
}

/* ---- LEGEND ---- */
.legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.available { background: #10B981; }
.legend-dot.partial { background: #F59E0B; }
.legend-dot.full { background: #EF4444; }

/* ---- CALENDAR ---- */
.calendar-wrap {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--navy), var(--royal));
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cal-nav-btn:hover { background: rgba(255,255,255,0.3); }

.cal-month-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: capitalize;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--pale);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-days-header span {
    text-align: center;
    padding: 10px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--royal);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px;
    gap: 6px;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    gap: 3px;
}

.cal-day:hover:not(.empty):not(.past):not(.closed) {
    background: var(--pale);
    border-color: var(--royal);
}

.cal-day.empty { cursor: default; }

.cal-day.past {
    color: var(--gray-200);
    cursor: not-allowed;
}

.cal-day.closed {
    color: var(--gray-200);
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-day.today { font-weight: 800; }

.cal-day.today::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--royal);
    border-radius: 50%;
}

.cal-day.selected {
    background: linear-gradient(135deg, var(--royal), var(--blue));
    color: var(--white) !important;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(19,86,196,0.4);
}

.cal-day-num {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
}

.cal-day.selected .cal-day-num { color: var(--white); }

/* Availability dots */
.avail-dots {
    display: flex;
    gap: 2px;
}

.avail-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.avail-dot.available { background: #10B981; }
.avail-dot.partial { background: #F59E0B; }
.avail-dot.full { background: #EF4444; }

/* ---- STEP 2 ELEMENTS ---- */
.selected-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pale);
    border: 1px solid rgba(19,86,196,0.2);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--royal);
    margin-bottom: 28px;
}

.option-group {
    margin-bottom: 28px;
}

.option-group > h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Type options */
.type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-option {
    cursor: pointer;
}

.type-option input { display: none; }

.type-option-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
}

.type-option input:checked + .type-option-inner {
    border-color: var(--royal);
    background: var(--pale);
}

.type-option:hover .type-option-inner {
    border-color: var(--blue);
}

.type-icon {
    width: 44px;
    height: 44px;
    background: var(--pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--royal);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.type-icon.gold {
    background: #FEF3C7;
    color: var(--gold);
}

.type-label strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.type-label span { font-size: 0.78rem; color: var(--gray-500); }

/* Period options */
.period-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.period-option {
    cursor: pointer;
}

.period-option input { display: none; }

.period-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
}

.period-option input:checked + .period-inner {
    border-color: var(--royal);
    background: var(--pale);
}

.period-option.disabled .period-inner {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.period-icon {
    width: 44px;
    height: 44px;
    background: var(--pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--royal);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.period-icon.gold {
    background: #FEF3C7;
    color: var(--gold);
}

.period-info { flex: 1; }
.period-info strong { display: block; font-size: 0.95rem; }
.period-info span { font-size: 0.82rem; color: var(--gray-500); }

.period-avail { margin-top: 4px; }

.avail-count {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: #ECFDF5;
    color: #059669;
    display: inline-block;
}

.avail-count.low { background: #FEF3C7; color: #D97706; }
.avail-count.none { background: #FEF2F2; color: #DC2626; }

.period-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.period-price em {
    display: block;
    font-style: normal;
    font-size: 0.72rem;
    color: var(--gray-500);
    font-weight: 400;
}

.period-price.gold { color: var(--gold); }

/* Seats selector */
.seats-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.seats-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pale);
    color: var(--royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(19,86,196,0.2);
    cursor: pointer;
}

.seats-btn:hover:not(:disabled) {
    background: var(--royal);
    color: var(--white);
    border-color: var(--royal);
}

.seats-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.seats-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.seats-count {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.seats-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.seats-max-info {
    font-size: 0.82rem;
    color: var(--gray-500);
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.seats-max-info strong { color: var(--royal); }

/* Step actions */
.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.btn-back:hover {
    background: var(--gray-200);
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--royal), var(--blue));
    color: var(--white);
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(19,86,196,0.3);
    border: none;
    cursor: pointer;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(19,86,196,0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---- BOOKING FORM (STEP 3) ---- */
.booking-form .form-group { margin-bottom: 16px; }
.booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.required { color: var(--error); }

.form-terms {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--royal);
    flex-shrink: 0;
}

.checkbox-label a { color: var(--royal); }

.btn-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--navy), var(--royal));
    color: var(--white);
    padding: 16px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(11,46,110,0.35);
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(11,46,110,0.45);
}

/* ---- CONFIRMATION SCREEN ---- */
.confirmation-screen {
    text-align: center;
    padding: 20px 0;
}

.conf-icon {
    width: 80px;
    height: 80px;
    background: #ECFDF5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--success);
    margin: 0 auto 24px;
    animation: confPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes confPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.confirmation-screen h2 { margin-bottom: 12px; }
.confirmation-screen > p {
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto 32px;
}

.conf-summary {
    background: var(--pale);
    border: 1px solid rgba(19,86,196,0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 480px;
    margin: 0 auto 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    gap: 12px;
}

.conf-row span:first-child { color: var(--gray-500); }
.conf-row span:last-child { font-weight: 600; color: var(--dark); text-align: right; }

.conf-row.total {
    border-top: 1px solid rgba(19,86,196,0.15);
    padding-top: 12px;
    font-weight: 700;
}

.conf-row.total span:last-child {
    color: var(--royal);
    font-size: 1.05rem;
}

.conf-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.conf-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.conf-notice i { color: var(--blue); }

/* ---- SIDEBAR ---- */
.booking-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.sum-icon {
    width: 36px;
    height: 36px;
    background: var(--pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--royal);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sum-text span {
    font-size: 0.72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
}

.sum-text strong {
    font-size: 0.88rem;
    color: var(--dark);
    display: block;
}

.summary-divider {
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-total span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.summary-total strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.info-item i { color: var(--blue); margin-top: 1px; flex-shrink: 0; }

.sidebar-contact {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
    text-align: center;
}

.sidebar-contact p {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.sidebar-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pale);
    color: var(--royal);
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(19,86,196,0.2);
}

.sidebar-phone:hover {
    background: var(--royal);
    color: var(--white);
}

/* Availability bars */
.avail-bars { display: flex; flex-direction: column; gap: 14px; }

.avail-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avail-bar-row > span:first-child {
    font-size: 0.75rem;
    color: var(--gray-500);
    min-width: 130px;
    flex-shrink: 0;
}

.avail-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.avail-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 100px;
    transition: width 0.6s ease;
}

.avail-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    min-width: 35px;
    text-align: right;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .booking-layout { grid-template-columns: 1fr; }
    .booking-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .sidebar-card.sticky { position: static; }
}

@media (max-width: 768px) {
    .booking-step { padding: 24px; }
    .steps-indicator { overflow-x: auto; padding: 24px 16px 32px; }
    .step-label { font-size: 0.65rem; }
    .type-options { grid-template-columns: 1fr; }
    .booking-form .form-row { grid-template-columns: 1fr; }
    .booking-sidebar { grid-template-columns: 1fr; }
    .conf-actions { flex-direction: column; }
    .booking-header { height: 220px; }
    .booking-header-content h1 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .legend { flex-direction: column; gap: 10px; }
    .cal-day { font-size: 0.78rem; }
    .period-price { display: none; }
}
