/* Main Booking Form Styles */
.khidmah-appointment-booking-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.khidmah-form-step h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

/* Services Grid */
.khidmah-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.khidmah-service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.khidmah-service-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.khidmah-service-card input[type="radio"] {
    display: none;
}

.khidmah-service-card input[type="radio"]:checked + label {
    border-color: #3498db;
    background-color: #f8fafc;
}

.khidmah-service-card label {
    display: block;
    cursor: pointer;
}

.khidmah-service-card h4 {
    margin: 0 0 10px;
    color: #2c3e50;
}

.khidmah-service-card p {
    margin: 0 0 10px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.khidmah-service-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: #3498db;
}

/* Datepicker */
#khidmah-datepicker {
    margin-bottom: 20px;
}

.ui-datepicker {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header {
    background: #3498db;
    color: white;
    border-radius: 5px 5px 0 0;
}

.ui-datepicker-prev, .ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-calendar th {
    padding: 5px;
    color: #3498db;
}

.ui-datepicker-calendar td {
    padding: 5px;
    text-align: center;
}

.ui-datepicker-calendar td a {
    display: block;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ui-datepicker-calendar td a:hover {
    background: #3498db;
    color: white;
}

.ui-datepicker-calendar .ui-state-disabled {
    color: #ccc;
}

.ui-datepicker-calendar .ui-state-active {
    background: #3498db;
    color: white;
}

/* Time Slots */
#khidmah-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.khidmah-time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.khidmah-time-slot:hover {
    border-color: #3498db;
}

.khidmah-time-slot.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.khidmah-time-slot.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* Form Groups */
.khidmah-form-group {
    margin-bottom: 15px;
}

.khidmah-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.khidmah-form-group input[type="text"],
.khidmah-form-group input[type="email"],
.khidmah-form-group input[type="tel"],
.khidmah-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
}

.khidmah-form-group textarea {
    min-height: 100px;
}

/* Navigation Buttons */
.khidmah-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.khidmah-prev-btn,
.khidmah-next-btn,
.khidmah-submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.khidmah-prev-btn {
    background: #95a5a6;
    color: white;
}

.khidmah-next-btn,
.khidmah-submit-btn {
    background: #3498db;
    color: white;
}

.khidmah-prev-btn:hover,
.khidmah-next-btn:hover,
.khidmah-submit-btn:hover {
    opacity: 0.9;
}

.khidmah-next-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Response Message */
#khidmah-booking-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
}

.khidmah-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.khidmah-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .khidmah-services-grid {
        grid-template-columns: 1fr;
    }
    
    #khidmah-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .khidmah-appointment-booking-form {
        padding: 15px;
    }
    
    #khidmah-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}