/* Frontend CSS for Dental Booking System */

#dental-booking-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.booking-step {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
}

.booking-step h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
}

/* Service Selection Grid */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.booking-option {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.booking-option:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.booking-option.selected {
    border-color: #007cba;
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,186,0.3);
}

/* Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.location-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.location-card:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.location-card.selected {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,186,0.2);
}

.location-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.location-schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-day {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    border-left: 4px solid #007cba;
    font-weight: 500;
}

/* Selected Location Section */
.selected-location {
    margin: 25px 0;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 12px;
    border: 2px solid #007cba;
    box-shadow: 0 2px 10px rgba(0,123,186,0.1);
}

.selected-location h4 {
    margin: 0 0 15px 0;
    color: #007cba;
    font-size: 18px;
}

/* Date Selector */
.date-selector {
    margin: 15px 0;
}

.date-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.date-selector input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.date-selector input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,123,186,0.3);
}

.date-helper {
    margin-top: 10px;
}

.date-helper small {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Available Times Section */
#available-times {
    margin: 25px 0;
    min-height: 60px;
}

#available-times h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.time-slot {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-slot:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.time-slot.selected {
    border-color: #007cba;
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,186,0.3);
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #ccc;
}

.time-slot.unavailable:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Customer Details Form */
.booking-form {
    margin: 25px 0;
}

.booking-form input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.booking-form input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,123,186,0.3);
}

.booking-form input::placeholder {
    color: #aaa;
}

/* Booking Summary */
.booking-summary {
    background: #e8f4f8;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #007cba;
    box-shadow: 0 2px 10px rgba(0,123,186,0.1);
}

.booking-summary h4 {
    margin-top: 0;
    color: #007cba;
    font-size: 20px;
    margin-bottom: 15px;
}

.booking-summary p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.booking-summary strong {
    color: #007cba;
    font-weight: 600;
}

/* Buttons */
.booking-btn {
    padding: 15px 30px;
    margin: 10px 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-btn, .submit-btn {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 5px rgba(0,123,186,0.3);
}

.next-btn:hover, .submit-btn:hover {
    background: #005a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,186,0.4);
}

.back-btn {
    background: #666;
    color: white;
    box-shadow: 0 2px 5px rgba(102,102,102,0.3);
}

.back-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,102,102,0.4);
}

.booking-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.booking-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success Page */
.booking-success {
    text-align: center;
    padding: 40px;
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 12px;
}

.booking-success h3 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.booking-success p {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

#new-booking {
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#new-booking:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.4);
}

/* Loading and Error States */
.loading-state {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-style: italic;
}

.error-state {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    margin: 10px 0;
}

.warning-state {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    margin: 10px 0;
}

/* Button Group */
.button-group {
    text-align: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #dental-booking-form {
        max-width: 100%;
        margin: 0;
    }
    
    .booking-step {
        padding: 15px;
        margin: 10px 0;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-slots-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .booking-option, .location-card {
        padding: 15px;
    }
    
    .booking-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .button-group .booking-btn {
        width: calc(50% - 10px);
        margin: 5px;
    }
    
    .booking-step h3 {
        font-size: 20px;
    }
    
    .booking-form input {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .booking-step {
        padding: 10px;
    }
    
    .time-slots-container {
        grid-template-columns: 1fr;
    }
    
    .button-group .booking-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .booking-summary {
        padding: 15px;
    }
    
    .selected-location {
        padding: 15px;
    }
}