/* --- services-style.css (Premium Glassmorphism Redesign - FIXED) --- */

.page-padding { padding-top: 4rem; padding-bottom: 5rem; }

/* Section Overhaul */
#service-selection-section {
    padding: 3rem 2rem;
    margin-bottom: 4rem;
}

#services-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2.5rem;
}

.service-checkbox-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.service-checkbox-item input[type="checkbox"] { display: none; }

.service-checkbox-item input[type="checkbox"]:checked + label {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.service-checkbox-item .service-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.service-checkbox-item .service-price {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.25rem;
}

.total-price-display {
    margin-top: 3.5rem;
    padding: 2.5rem;
    text-align: center;
}

.total-price-display h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.total-price-display #total-price {
    color: var(--primary);
    font-size: 3rem;
    margin-right: 15px;
    font-weight: 900;
}

/* Calendar Redesign */
#calendar-section {
    padding: 3rem 2rem;
    margin-bottom: 4rem;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: rgba(20, 20, 20, 0.8);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    gap: 15px;
}

.calendar-controls h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    flex: 1;
}

.calendar-controls .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 120px;
}

@media (max-width: 600px) {
    .calendar-controls {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 20px;
    }
    
    .calendar-controls .btn {
        width: 100%;
    }
    
    .calendar-controls h3 {
        order: -1;
        width: 100%;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
}

.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.day-slot {
    padding: 30px 15px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    position: relative;
}

.day-slot * { pointer-events: none; }

.day-slot strong { font-size: 1.1rem; color: #fff; margin-bottom: 5px; display: block; }
.day-slot small { color: var(--text-muted); }

.day-slot:hover:not(.disabled):not(.full):not(.off-day) {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.05);
}

.day-slot.available { 
    color: #fff; 
    border: 1px solid rgba(212, 175, 55, 0.3) !important; 
    background: rgba(212, 175, 55, 0.015) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.day-slot.available small { color: var(--primary); opacity: 0.8; font-weight: 400; }

.day-slot.full { 
    opacity: 1 !important;
    cursor: not-allowed; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    background: rgba(255, 255, 255, 0.01) !important;
    color: #888;
}
.day-slot.full small { 
    color: #666; 
    opacity: 0.8; 
    font-weight: 400; 
    text-decoration: line-through;
}

.day-slot.off-day { 
    opacity: 0.6 !important; 
    background: transparent; 
    border: 1px dashed rgba(255, 255, 255, 0.1) !important; 
    color: #666;
}
.day-slot.off-day small { color: #555; opacity: 0.8; font-weight: 400; }

.day-slot.disabled { 
    opacity: 0.3; 
    pointer-events: none; 
    filter: grayscale(1); 
    background: rgba(0,0,0,0.2);
}

/* Modals Premium */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 45px;
    border-radius: 30px !important;
}

.close-button {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-button:hover { color: #fff; transform: rotate(90deg); }

/* Time Slots */
#time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 2rem;
}

.time-slot {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot strong { display: block; font-size: 1.1rem; }
.time-slot small { font-size: 0.8rem; opacity: 0.6; margin-top: 5px; display: block; }

.time-slot.available {
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    background: rgba(212, 175, 55, 0.01) !important;
}

.time-slot.available:hover {
    border-color: var(--primary) !important;
    background: rgba(212, 175, 55, 0.05) !important;
    transform: scale(1.02);
}

.time-slot.available small { color: var(--primary); opacity: 0.7; font-weight: 400; }

.time-slot.approved { 
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    color: #666 !important;
    opacity: 0.5 !important; 
    cursor: not-allowed; 
}

.time-slot.approved strong {
    text-decoration: line-through;
    text-decoration-color: rgba(212, 175, 55, 0.4);
    text-decoration-thickness: 1px;
}

.time-slot.approved small { color: #555; opacity: 0.8; font-weight: 400; }

/* Form Final Stage */
#booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#booking-form label {
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

#booking-form input, 
#booking-form select,
#booking-form textarea {
    background: #111 !important; /* Force solid dark background */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    color: #fff !important;
    width: 100%;
    font-family: var(--font-body);
}

/* Fix dropdown option contrast */
select option {
    background-color: #111;
    color: #fff;
}

#booking-form textarea {
    border-color: rgba(212, 175, 55, 0.3);
    min-height: 80px;
}

#booking-form input:focus, 
#booking-form select:focus, 
#booking-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Confirmation View specifics */
.conf-item {
    font-size: 1.1rem;
    color: #eee;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.conf-item strong { color: #fff; }

.summary-box {
    padding: 25px;
    border-radius: 20px;
}

.summary-box h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .week-view { grid-template-columns: 1fr; }
    .day-slot { display: flex; justify-content: space-between; align-items: center; padding: 25px; }
    .modal-content { padding: 30px 20px; }
    .time-slot { padding: 15px 10px; font-size: 0.95rem; }
    #time-slots-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}