/**
 * Booking Wizard CSS
 * Styles for the booking wizard and confirmation page
 */

/* =====================================================
   PROGRESS BAR
   ===================================================== */

.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    margin: 0 auto 5px;
}

.step-label {
    font-size: 12px;
    color: #999;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: #c9a961;
    color: #fff;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #333;
    font-weight: bold;
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */

.service-card {
    cursor: pointer;
    margin-bottom: 20px;
}

.service-card .card-content {
    border: 2px solid #eee;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    min-height: 150px;
}

.service-card:hover .card-content,
.service-card:focus .card-content,
.service-card.selected .card-content {
    border-color: #c9a961;
    background: #faf8f3;
}

.service-card:focus {
    outline: none;
}

.service-card:focus .card-content {
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.4);
}

.service-card h4 {
    margin: 0 0 10px;
}

.service-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #c9a961;
    margin: 0;
}

.service-card .duration {
    font-size: 12px;
    color: #999;
    margin: 5px 0;
}

/* =====================================================
   STYLIST CARDS
   ===================================================== */

.stylist-card {
    cursor: pointer;
}

.stylist-card .team-member {
    border: 2px solid transparent;
    padding: 10px;
    transition: all 0.3s;
}

.stylist-card:hover .team-member,
.stylist-card:focus .team-member,
.stylist-card.selected .team-member {
    border-color: #c9a961;
    background: #faf8f3;
}

.stylist-card:focus {
    outline: none;
}

.stylist-card:focus .team-member {
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.4);
}

/* =====================================================
   CALENDAR
   ===================================================== */

#calendar-container {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    padding: 5px;
    color: #999;
}

.calendar-day {
    text-align: center;
    padding: 10px 5px;
    cursor: default;
    border: 1px solid transparent;
}

.calendar-day.available {
    cursor: pointer;
    background: #f5f5f5;
}

.calendar-day.available:hover {
    background: #e8e8e8;
}

.calendar-day.selected {
    background: #c9a961 !important;
    color: #fff;
}

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

.calendar-day.other-month {
    color: #bbb;
}

.calendar-day.other-month.available {
    cursor: pointer;
    background: #f9f9f9;
    color: #999;
}

.calendar-day.other-month.available:hover {
    background: #f0f0f0;
    color: #666;
}

/* =====================================================
   TIME SLOTS
   ===================================================== */

#time-slots-container {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    min-height: 300px;
    position: relative;
}

.time-slot {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover,
.time-slot:focus,
.time-slot.selected {
    background: #c9a961;
    border-color: #c9a961;
    color: #fff;
}

.time-slot:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.4);
}

/* Booked/unavailable slots - red */
.time-slot.booked {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

.time-slot.booked:hover,
.time-slot.booked:focus {
    background: #ffcdd2;
    border-color: #ef5350;
    color: #b71c1c;
}

/* =====================================================
   SLOTS LEGEND
   ===================================================== */

.slots-legend {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid;
}

.legend-dot.available {
    background: #f5f5f5;
    border-color: #ddd;
}

.legend-dot.booked {
    background: #ffebee;
    border-color: #ef9a9a;
}

/* =====================================================
   BOOKING SUMMARY
   ===================================================== */

.booking-summary {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
}

.booking-summary table {
    margin: 0;
}

.booking-summary th {
    width: 120px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn-back {
    margin-right: 10px;
}

/* =====================================================
   LOADING OVERLAY
   ===================================================== */

.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #c9a961;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

/* =====================================================
   ERROR MESSAGE
   ===================================================== */

.error-message {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.error-message.active {
    display: block;
}

/* =====================================================
   CONFIRMATION PAGE
   ===================================================== */

.booking-confirmation-details {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #eee;
}

.booking-confirmation-details table {
    margin: 0;
}

.booking-confirmation-details th {
    width: 120px;
    font-weight: normal;
    color: #666;
}

.booking-confirmation-details td {
    font-weight: 500;
}

/* =====================================================
   LABELS (status badges)
   ===================================================== */

.label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #fff;
    border-radius: 3px;
}

.label-warning {
    background-color: #f0ad4e;
}

.label-success {
    background-color: #5cb85c;
}

.label-info {
    background-color: #5bc0de;
}

.label-danger {
    background-color: #d9534f;
}
