/* booking-system.css - WORKING VERSION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.booking-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Left Column */
.left-column {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 15px;
    color: white;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s;
    flex: 1;
    cursor: pointer;
}

.step-item.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    border: 2px solid white;
}

.step-item.active .step-number {
    background: white;
    color: #667eea;
}

.step-line {
    display: none;
}

.step-info {
    display: none;
}

/* Desktop styles */
@media (min-width: 768px) {
    .booking-container {
        flex-direction: row;
    }
    
    .left-column {
        width: 33.33%;
        padding: 40px 30px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-item {
        flex-direction: row;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .step-line {
        display: block;
        width: 2px;
        height: 30px;
        background: rgba(255,255,255,0.3);
        margin-left: 25px;
        margin-bottom: 20px;
    }
    
    .step-info {
        display: block;
    }
    
    .step-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .step-description {
        font-size: 14px;
        opacity: 0.8;
    }
}

/* Right Column */
.right-column {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .right-column {
        padding: 40px;
    }
}

.step-content {
    max-width: 100%;
}

.step-content h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
    font-size: 20px;
}

/* Categories - Toggle Design */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.category-toggle {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
}

.category-toggle:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.category-toggle.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
}

.category-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.category-toggle.active .category-icon {
    transform: rotate(180deg);
}

.category-subservices {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.category-subservices.open {
    max-height: 600px;
    transition: max-height 0.3s ease-in;
}

.subservices-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subservice-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.subservice-item:hover {
    background: #f0f0ff;
    border-color: #667eea;
    transform: translateX(5px);
}

.subservice-item.selected {
    background: #667eea;
    border-color: #667eea;
}

.subservice-item.selected .subservice-info,
.subservice-item.selected .subservice-info p {
    color: white;
}

.subservice-info {
    flex: 1;
}

.subservice-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.subservice-info p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.subservice-details {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
}

.select-subservice-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.select-subservice-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.subservice-item.selected .select-subservice-btn {
    background: white;
    color: #667eea;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.month-nav {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.month-nav:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.month-year-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Calendar Container */
#calendar-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.calendar th {
    padding: 12px;
    background: #667eea;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.calendar td {
    padding: 12px;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.calendar td:hover:not(.empty):not(.disabled) {
    background: #e0e7ff;
    transform: scale(1.02);
}

.calendar td.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.calendar td.has-booking {
    background: #fef3c7;
    position: relative;
}

.calendar td.has-booking::after {
    content: '📅';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    background: white;
    border-radius: 50%;
    padding: 2px;
}

.calendar td.selected {
    background: #667eea;
    color: white;
    transform: scale(0.98);
}

/* Time Slots Container */
#time-slots-container {
    margin-top: 25px;
}

#time-slots-container h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

#time-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.time-slot {
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.time-slot.available {
    background: white;
    color: #333;
    border-color: #c3e6cb;
}

.time-slot.available:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.time-slot.booked {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
}

.time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(0.98);
}

/* Form Styles */
#booking-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-back,
.btn-continue,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-continue,
.btn-submit {
    background: #667eea;
    color: white;
}

.btn-continue:hover:not(:disabled),
.btn-submit:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Booking Summary */
.booking-details {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.booking-details h3 {
    margin-bottom: 10px;
    color: #333;
}

.booking-details p {
    margin: 5px 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 20px;
    border-bottom: none;
}

.success-message .btn-continue,
.success-message .btn-submit {
    display: inline-block;
    text-decoration: none;
    margin: 10px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}