/* Frontend Form Styles */
.apb-booking-form {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
}

.apb-booking-form h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.apb-form-field {
    padding: 0 15px;
    margin-bottom: 20px;
}

.apb-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.apb-form-field .required {
    color: #ff0000;
}

.apb-form-field input[type="text"],
.apb-form-field input[type="email"],
.apb-form-field input[type="tel"],
.apb-form-field textarea,
.apb-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.apb-form-field input:focus,
.apb-form-field textarea:focus,
.apb-form-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.apb-datepicker {
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat right 10px center;
    padding-right: 35px !important;
    cursor: pointer;
}

.apb-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.apb-submit-btn:hover {
    background: #005a87;
}

.apb-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.apb-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.apb-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* jQuery UI Datepicker Customization */
.ui-datepicker {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header {
    background: #0073aa;
    color: #fff;
    border-radius: 4px 4px 0 0;
    padding: 10px;
}

.ui-datepicker-title {
    color: #fff;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    color: #fff;
    cursor: pointer;
}

.ui-datepicker td a {
    color: #333;
    text-align: center;
    padding: 5px;
}

.ui-datepicker td a:hover {
    background: #0073aa;
    color: #fff;
    border-radius: 3px;
}

.ui-datepicker-current-day a {
    background: #0073aa !important;
    color: #fff !important;
    border-radius: 3px;
}

/* Add these styles for better slot visibility */
.apb-time-slot option:disabled {
    color: #999;
    background-color: #f5f5f5;
    font-style: italic;
}

.apb-time-slot option:disabled::after {
    content: " (Booked)";
}

.rowclsmain {
    display: flex;
    flex-wrap: wrap;
}

.w-50 {
    padding: 0 15px;
    width: 50%
}

.w-100 {
    padding: 0 15px;
    width: 100%;
}

.slot-note {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* Visual indicator for booked slots */
.slot-unavailable {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Highlight available slots */
.apb-time-slot option:not(:disabled):not(:first-child) {
    color: #0073aa;
    font-weight: 500;
}