/* ==========================================================================
   Booking Page Styles
   Extracted from booking/index.blade.php and booking/confirmation.blade.php
   ========================================================================== */

/* ---------- Booking Form Layout ---------- */

.booking-container {
    max-width: 900px;
    margin: 0 auto;
}

.booking-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.booking-section:last-child {
    border-bottom: none;
}

.booking-note {
    margin-top: 15px;
    color: #999;
}

/* ---------- Alerts ---------- */

.booking-container .alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.booking-container .alert-info {
    background: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
}

.booking-container .alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* ---------- Form Helpers ---------- */

.form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* ---------- Treatment Cards ---------- */

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.treatment-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.treatment-card:hover {
    border-color: #203965;
    box-shadow: 0 2px 8px rgba(32, 57, 101, 0.1);
}

.treatment-card.selected {
    border-color: #203965;
    background: #f8fafc;
}

.treatment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.treatment-name {
    font-size: 16px;
    font-weight: 600;
    color: #203965;
}

.treatment-check {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.treatment-card.selected .treatment-check {
    background: #203965;
    border-color: #203965;
}

.treatment-check i {
    font-size: 12px;
    display: none;
}

.treatment-card.selected .treatment-check i {
    display: block;
}

.treatment-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.treatment-duration {
    font-size: 13px;
    color: #999;
}

.treatment-duration i {
    margin-right: 5px;
}

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

.calendar-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: #203965;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-weekday {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: #f1f5f9;
}

.calendar-day.available {
    color: #203965;
    font-weight: 600;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #203965;
    color: #fff;
}

.calendar-day.today {
    border: 2px solid #203965;
}

.datetime-label {
    font-size: 14px;
    font-weight: 600;
    color: #203965;
    margin-bottom: 15px;
}

.datetime-label i {
    margin-right: 8px;
}

.timezone-info {
    font-size: 12px;
    color: #999;
}

.timezone-info i {
    margin-right: 5px;
}

/* ---------- Time Slots ---------- */

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover:not(.selected) {
    border-color: #203965;
    background: #f8fafc;
}

.time-slot.selected {
    border-color: #203965;
    background: #203965;
    color: #fff;
}

/* ---------- Form Styling ---------- */

.booking-container .form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.booking-container .form-group label .required {
    color: #e74c3c;
}

.booking-container .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.booking-container .form-control:focus {
    border-color: #203965;
    box-shadow: 0 0 0 3px rgba(32, 57, 101, 0.1);
    outline: none;
}

/* ---------- Therapist Select Dropdown ---------- */

#therapist_id {
    max-width: 400px;
    background-color: #fff !important;
    color: #333 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px;
    text-decoration: none !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    height: auto !important;
}

#therapist_id option {
    color: #333 !important;
    background-color: #fff !important;
    padding: 10px;
    text-decoration: none !important;
}

#step-therapist .form-group {
    max-width: 450px;
}

/* ---------- Booking Summary ---------- */

.booking-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #203965;
}

.booking-submit-area {
    margin-top: 20px;
}

#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Booking Slots Loading ---------- */

.booking-slots-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

/* ---------- Therapist Select Inline Override ---------- */

.booking-therapist-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.booking-therapist-group {
    max-width: 400px;
}

/* ---------- Booking Confirmation Page ---------- */

.booking-confirmation {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.booking-confirmation__icon {
    width: 80px;
    height: 80px;
    background-color: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.booking-confirmation__icon svg {
    width: 40px;
    height: 40px;
    color: #28a745;
}

.booking-confirmation__title {
    font-size: 28px;
    color: #203965;
    margin-bottom: 15px;
}

.booking-confirmation__subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.booking-confirmation__details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
}

.booking-confirmation__details-title {
    font-size: 18px;
    color: #203965;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.booking-confirmation__row {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.booking-confirmation__row:last-child {
    margin-bottom: 0;
}

.booking-confirmation__label {
    color: #666;
}

.booking-confirmation__value {
    font-weight: 600;
    color: #333;
}

.booking-confirmation__btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #203965;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
}

/* ---------- Responsive ---------- */

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