/* Booking Page Styles */

.booking-section {
    display: none;
    padding: 120px 0 80px;
    min-height: 100vh;
}

.booking-section.active {
    display: block;
}

/* Page 1: Service Selection */
.booking-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-list-container {
    background: #fff8f1;
    padding: 30px;
    border-radius: 8px;
}

.service-list-title {
    font-size: 24px;
    font-weight: 600;
    color: #3b2c1a;
}

.service-group {
    margin-bottom: 25px;
}

.service-group-title {
    font-size: 18px;
    font-weight: 600;
    color: #3b2c1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e7df;
}

.service-group-items {
    margin-left: 0;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    margin-left: 20px;
    background: white;
    border-radius: 5px;
    border: 1px solid #f0e7df;
    cursor: pointer;
    transition: all 0.3s;
    gap: 14px;
}

.service-item:hover {
    border-color: #3b2c1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: auto;
    cursor: pointer;
    display: flex;
    align-self: center;
    justify-self: center;
}

.service-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-item-name {
    font-size: 16px;
    color: #333;
    margin-right: 10px;
}

.service-item-recommend {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.service-item-price {
    font-size: 18px;
    font-weight: 600;
    color: #3b2c1a;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #3b2c1a;
}

.modal-body {
    padding: 30px;
}

.edit-link {
    color: #3b2c1a;
    text-decoration: none;
    font-size: 14px;
}

.edit-link:hover {
    text-decoration: underline;
}

/* Page 2: Schedule */
.back-link {
    color: #3b2c1a;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link i {
    margin-right: 8px;
}

.schedule-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timezone-info {
    color: #666;
    font-size: 14px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 20px;
    color: #3b2c1a;
    cursor: pointer;
    padding: 5px 15px;
}

.calendar-nav:hover {
    color: #2a1f13;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    margin-bottom: 20px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    color: #666;
    font-size: 14px;
}

.calendar-day {
    text-align: center;
    padding: 15px 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

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

.calendar-day.available::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #999;
    border-radius: 50%;
}

.calendar-day.selected {
    background: #3b2c1a;
    color: white;
}

.calendar-day.selected::after {
    background: white;
}

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

.availability-container {
    margin-top: 30px;
}

.availability-notice {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    color: #666;
    font-size: 14px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

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

.time-slot:hover:not(.unavailable) {
    border-color: #3b2c1a;
}

.time-slot.selected {
    background: #3b2c1a;
    color: white;
    border-color: #3b2c1a;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.show-all-link {
    display: inline-block;
    margin-top: 15px;
    color: #3b2c1a;
    text-decoration: none;
    font-size: 14px;
}

.show-all-link:hover {
    text-decoration: underline;
}

.service-details-sidebar {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.more-details-link {
    color: #3b2c1a;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.more-details-link:hover {
    text-decoration: underline;
}

.more-details-link i {
    margin-left: 5px;
}

/* Page 3: Booking Form */
.booking-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.login-link {
    color: #3b2c1a;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #3b2c1a;
    box-shadow: 0 0 0 0.2rem rgba(59, 44, 26, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-control.error {
    border-color: #dc3545;
}


.booking-details-sidebar {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.payment-details {
    padding-top: 20px;
}

.view-policy-link {
    color: #3b2c1a;
    text-decoration: none;
    font-size: 14px;
}

.view-policy-link:hover {
    text-decoration: underline;
}

/* Page 4: Thank You */
.confirmation-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-number {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.calendar-link {
    color: #3b2c1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.calendar-link:hover {
    text-decoration: underline;
}

.calendar-link i {
    margin-right: 8px;
}

.billing-address {
    padding-top: 20px;
}

.continue-browsing-link {
    color: #3b2c1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.continue-browsing-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: #3b2c1a;
    border-color: #3b2c1a;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #2a1f13;
    border-color: #2a1f13;
}

.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-outline-primary {
    border-color: #3b2c1a;
    color: #3b2c1a;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: #3b2c1a;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-section {
        padding: 100px 0 40px;
    }
    
    .service-list-container,
    .schedule-container,
    .booking-form-container,
    .service-details-sidebar,
    .booking-details-sidebar {
        padding: 20px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
}

