/* ============================================
   BOOKING MODAL STYLES - LUXURY EMERALD THEME
   ============================================ */

/* ============ Nav Book Button ============ */
.nav-book-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: var(--charcoal) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    letter-spacing: 1px;
}

.nav-book-btn:hover {
    transform: scale(1.03);
}

/* ============ Modal Overlay ============ */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 42, 31, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.booking-modal-content {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--white, #ffffff);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.booking-modal.active .booking-modal-content {
    transform: translateY(0) scale(1);
}

/* ============ Booking Header ============ */
.booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.booking-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0B3D2E;
    font-weight: 700;
}

.booking-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F9F7F3;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.booking-close i {
    font-size: 1.2rem;
    color: #1F1F1F;
}

.booking-close:hover {
    background: #0B3D2E;
}

.booking-close:hover i {
    color: #fff;
}

/* ============ Progress Steps ============ */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 0 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: #F9F7F3;
    color: #888;
    border: 2px solid #E8DCCB;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #0B3D2E, #145C44);
    color: #fff;
    border-color: #0B3D2E;
    box-shadow: 0 4px 12px rgba(11, 61, 46, 0.3);
}

.progress-step.completed .step-circle {
    background: #C9A227;
    color: #1F1F1F;
    border-color: #C9A227;
}

.progress-step span {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active span {
    color: #0B3D2E;
}

.progress-line {
    height: 2px;
    flex: 1;
    background: #E8DCCB;
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

/* ============ Booking Steps ============ */
.booking-step {
    animation: fadeInUp 0.3s ease;
}

.booking-step.hidden {
    display: none;
}

.booking-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #0B3D2E;
    margin-bottom: 16px;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Service Search ============ */
.booking-search-wrapper {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.booking-search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0B3D2E;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.booking-search-wrapper:focus-within i {
    color: #C9A227;
}

.booking-search-wrapper input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid rgba(11, 61, 46, 0.12);
    border-radius: 50px;
    background: #F9F7F3;
    color: #1F1F1F;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.booking-search-wrapper input::placeholder {
    color: #999;
    font-weight: 300;
}

.booking-search-wrapper input:focus {
    border-color: #0B3D2E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.08);
}

.booking-search-wrapper::after {
    display: none;
}

/* ============ Service Cards ============ */
.booking-services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.booking-services-list::-webkit-scrollbar {
    width: 4px;
}

.booking-services-list::-webkit-scrollbar-track {
    background: transparent;
}

.booking-services-list::-webkit-scrollbar-thumb {
    background: #E8DCCB;
    border-radius: 4px;
}

.booking-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F9F7F3;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.booking-service-item:hover {
    border-color: rgba(11, 61, 46, 0.15);
    background: #fff;
    box-shadow: 0 4px 12px rgba(11, 61, 46, 0.06);
}

.booking-service-item.selected {
    border-color: #0B3D2E;
    background: rgba(11, 61, 46, 0.04);
    box-shadow: 0 4px 16px rgba(11, 61, 46, 0.1);
}

.booking-service-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1F1F1F;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2px;
}

.booking-service-info p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.4;
}

.booking-service-meta {
    text-align: right;
    flex-shrink: 0;
}

.booking-service-meta .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0B3D2E;
}

.booking-service-meta .duration {
    font-size: 0.72rem;
    color: #C9A227;
    font-weight: 500;
}

/* ============ Stylists ============ */
.booking-stylists-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.booking-stylist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #F9F7F3;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.booking-stylist-item:hover {
    border-color: rgba(11, 61, 46, 0.15);
    background: #fff;
}

.booking-stylist-item.selected {
    border-color: #0B3D2E;
    background: rgba(11, 61, 46, 0.04);
    box-shadow: 0 4px 16px rgba(11, 61, 46, 0.1);
}

.stylist-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B3D2E, #145C44);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.stylist-avatar i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.booking-stylist-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1F1F1F;
    font-family: 'Poppins', sans-serif;
}

.booking-stylist-item span {
    font-size: 0.72rem;
    color: #C9A227;
    font-weight: 500;
}

/* ============ Selected Service Badge ============ */
.selected-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 61, 46, 0.06);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #0B3D2E;
    font-weight: 500;
    margin-bottom: 16px;
}

/* ============ Date & Slots ============ */
.booking-date-picker {
    margin-bottom: 20px;
}

.booking-date-picker label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.booking-date-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(11, 61, 46, 0.12);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #1F1F1F;
    background: #F9F7F3;
    outline: none;
    transition: all 0.3s;
}

.booking-date-input:focus {
    border-color: #0B3D2E;
    box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.08);
}

.booking-slots-container {
    max-height: 200px;
    overflow-y: auto;
}

.slots-hint {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.booking-slots-grid,
.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.slot-btn,
.slot-item {
    padding: 10px 8px;
    border: 1.5px solid rgba(11, 61, 46, 0.12);
    border-radius: 8px;
    background: #F9F7F3;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1F1F1F;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

.slot-btn:hover,
.slot-item:hover {
    border-color: #0B3D2E;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 61, 46, 0.08);
}

.slot-btn.selected,
.slot-item.selected {
    background: #0B3D2E;
    color: #fff;
    border-color: #0B3D2E;
    box-shadow: 0 4px 12px rgba(11, 61, 46, 0.2);
    transform: translateY(-1px);
}

.slot-btn.unavailable,
.slot-item.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

/* ============ Booking Form ============ */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-form-group {
    position: relative;
}

.booking-form-group input,
.booking-form-group textarea {
    width: 100%;
    padding: 13px 16px 13px 40px;
    border: 1.5px solid rgba(11, 61, 46, 0.12);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #1F1F1F;
    background: #F9F7F3;
    outline: none;
    transition: all 0.3s;
}

.booking-form-group textarea {
    padding: 13px 16px 13px 40px;
    resize: vertical;
    min-height: 60px;
}

.booking-form-group input:focus,
.booking-form-group textarea:focus {
    border-color: #0B3D2E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.08);
}

.booking-form-group input::placeholder,
.booking-form-group textarea::placeholder {
    color: #999;
}

.booking-form-group i {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 1rem;
    color: #0B3D2E;
    opacity: 0.5;
}

/* ============ Summary Card ============ */
.booking-summary-card {
    background: #F9F7F3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(11, 61, 46, 0.08);
}

.booking-selection-summary {
    background: #F9F7F3;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: #555;
}

/* ============ Buttons ============ */
.booking-submit-btn {
    background: linear-gradient(135deg, #0B3D2E, #145C44);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(11, 61, 46, 0.2);
}

.booking-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 61, 46, 0.3);
}

.booking-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    padding: 10px 0;
    margin-top: 12px;
    transition: all 0.3s;
}

.booking-back-btn:hover {
    color: #0B3D2E;
}

/* ============ Success State ============ */
.booking-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B3D2E, #145C44);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 1.8rem;
    color: #C9A227;
}

.booking-success h3 {
    text-align: center;
    color: #0B3D2E;
}

.success-message {
    font-size: 0.88rem;
    color: #555;
    margin: 8px 0 20px;
    line-height: 1.6;
}

.booking-id-display {
    background: #F9F7F3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(11, 61, 46, 0.08);
}

.booking-id-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-id-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0B3D2E;
    font-family: 'Playfair Display', serif;
}

/* ============ Status Check ============ */
.booking-status-check {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E8DCCB;
}

.booking-status-check p {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 10px;
}

.status-check-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-check-form input {
    padding: 10px 14px;
    border: 1.5px solid rgba(11, 61, 46, 0.12);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #1F1F1F;
    background: #F9F7F3;
    outline: none;
}

.status-check-form input:focus {
    border-color: #0B3D2E;
}

.status-check-form .btn {
    padding: 10px;
    font-size: 0.82rem;
}

.status-result {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    display: none;
}

.status-result.show {
    display: block;
}

.status-result.success {
    background: rgba(11, 61, 46, 0.06);
    color: #0B3D2E;
    border: 1px solid rgba(11, 61, 46, 0.12);
}

.status-result.error {
    background: rgba(220, 53, 69, 0.06);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

/* ============ Loading & Spinner ============ */
.booking-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(11, 61, 46, 0.1);
    border-top-color: #0B3D2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.booking-loading p {
    font-size: 0.85rem;
    color: #888;
}

/* ============ Error State ============ */
.booking-error {
    text-align: center;
    padding: 20px;
}

.booking-error p {
    font-size: 0.88rem;
    color: #dc3545;
    margin-bottom: 12px;
}

.retry-btn {
    background: #F9F7F3;
    border: 1.5px solid rgba(11, 61, 46, 0.12);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    color: #0B3D2E;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.retry-btn:hover {
    background: #0B3D2E;
    color: #fff;
}

/* ============ Responsive ============ */
@media screen and (max-width: 768px) {
    .booking-modal {
        align-items: flex-end;
    }
    
    .booking-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
        transform: translateY(100%);
    }
    
    .booking-modal.active .booking-modal-content {
        transform: translateY(0);
    }
    
    .booking-header h2 {
        font-size: 1.25rem;
    }
    
    .booking-progress {
        margin-bottom: 20px;
        padding: 0 4px;
    }
    
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
    
    .progress-step span {
        font-size: 0.62rem;
    }
    
    .progress-line {
        margin: 0 4px;
        margin-bottom: 18px;
    }
    
    .booking-step h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    
    .booking-services-list {
        max-height: 320px;
    }
    
    .booking-service-item {
        padding: 12px 14px;
    }
    
    .booking-service-info h4 {
        font-size: 0.84rem;
    }
    
    .booking-service-info p {
        font-size: 0.72rem;
    }
    
    .booking-stylists-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .booking-stylist-item {
        padding: 16px 10px;
    }
    
    .booking-slots-container {
        max-height: 180px;
    }
    
    .booking-slots-grid,
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .slot-btn,
    .slot-item {
        padding: 10px 6px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .booking-form-group input,
    .booking-form-group textarea {
        padding: 12px 14px 12px 38px;
        font-size: 0.85rem;
    }
    
    .booking-submit-btn {
        padding: 13px;
        font-size: 0.85rem;
    }
    
    .booking-summary-card {
        padding: 14px;
    }
    
    .success-icon {
        width: 56px;
        height: 56px;
    }
    
    .success-icon i {
        font-size: 1.5rem;
    }
    
    .booking-id-value {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 380px) {
    .booking-modal-content {
        padding: 20px 16px;
    }
    
    .booking-slots-grid,
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-stylists-list {
        grid-template-columns: 1fr;
    }
    
    .progress-step span {
        display: none;
    }
    
    .booking-header h2 {
        font-size: 1.1rem;
    }
}
