/* ============================================
   Booking System Styles
   ============================================ */

.booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .booking-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Calendar Panel ---- */

.booking-calendar-panel {
    background: var(--color-pure-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--color-gray);
    box-shadow: var(--shadow-md);
}

.booking-calendar-panel h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
}

/* Calendar */
.calendar {
    user-select: none;
}

.calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.calendar__month {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-dark);
}

.calendar__arrow {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast) ease;
}

.calendar__arrow:hover {
    background: var(--color-gray-light);
}

.calendar__arrow svg {
    width: 18px;
    height: 18px;
    color: var(--color-slate);
}

.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: var(--space-2);
}

.calendar__weekday {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-slate);
    padding: var(--space-2) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
    color: var(--color-dark);
}

.calendar__day:hover:not(.calendar__day--disabled):not(.calendar__day--empty) {
    background: rgba(var(--color-violet-rgb), 0.08);
    cursor: pointer;
}

.calendar__day--today {
    border: 1.5px solid var(--color-violet);
}

.calendar__day--selected {
    background: var(--gradient-brand) !important;
    color: var(--color-pure-white) !important;
    font-weight: var(--fw-semibold);
    box-shadow: 0 2px 8px rgba(var(--color-violet-rgb), 0.3);
}

.calendar__day--disabled {
    color: var(--color-gray);
    cursor: not-allowed;
}

.calendar__day--empty {
    cursor: default;
}

/* Time Slots */
.time-slots {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray);
}

.time-slots h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.time-slots__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.time-slot {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    text-align: center;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-gray);
    color: var(--color-dark);
    transition: all var(--duration-fast) ease;
}

.time-slot:hover {
    border-color: var(--color-violet);
    background: rgba(var(--color-violet-rgb), 0.04);
}

.time-slot--selected {
    background: var(--gradient-brand) !important;
    color: var(--color-pure-white) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(var(--color-violet-rgb), 0.3);
}

@media (min-width: 480px) {
    .time-slots__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ---- Form Panel ---- */

.booking-form-panel {
    background: var(--color-pure-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--color-gray);
    box-shadow: var(--shadow-md);
}

.booking-form-panel h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.booking-form-panel > p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.booking-selected-info {
    background: rgba(var(--color-violet-rgb), 0.06);
    border: 1px solid rgba(var(--color-violet-rgb), 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    display: none;
}

.booking-selected-info.show {
    display: block;
}

.booking-selected-info__label {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-violet);
    margin-bottom: var(--space-1);
}

.booking-selected-info__value {
    font-weight: var(--fw-semibold);
    color: var(--color-dark);
}

/* Package context banner */
.booking-context {
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-8);
    color: var(--color-pure-white);
    display: none;
}

.booking-context.show {
    display: block;
}

.booking-context__label {
    font-size: var(--text-xs);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-context__package {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
}


/* ---- Confirmation ---- */

.booking-confirmation {
    display: none;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--color-pure-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray);
    box-shadow: var(--shadow-lg);
}

.booking-confirmation.show {
    display: block;
}

.confirmation__check {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    animation: scaleIn 0.4s var(--ease-out);
}

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

.confirmation__check svg {
    width: 36px;
    height: 36px;
    color: var(--color-green);
    animation: drawCheck 0.6s ease 0.3s both;
}

@keyframes drawCheck {
    from { stroke-dashoffset: 50; }
    to   { stroke-dashoffset: 0; }
}

.confirmation__check svg {
    stroke-dasharray: 50;
}

.booking-confirmation h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.booking-confirmation > p {
    margin-bottom: var(--space-6);
}

.confirmation__details {
    background: var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: left;
    margin-bottom: var(--space-6);
}

.confirmation__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.confirmation__row:not(:last-child) {
    border-bottom: 1px solid var(--color-gray);
}

.confirmation__row-label {
    color: var(--color-slate);
}

.confirmation__row-value {
    font-weight: var(--fw-semibold);
    color: var(--color-dark);
}

.confirmation__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 480px) {
    .confirmation__actions {
        flex-direction: row;
        justify-content: center;
    }
}
