/* ABP Booking Form  */

/* Container */
#abp-booking-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

/* Labels */
#abp-booking-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Inputs, Textareas, Selects */
#abp-booking-form input:not([type="radio"]):not([type="checkbox"]),
#abp-booking-form textarea,
#abp-booking-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus State */
#abp-booking-form input:focus,
#abp-booking-form textarea:focus,
#abp-booking-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Checkbox Alignment (Bootstrap-like) */
#abp-booking-form .form-check {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#abp-booking-form .form-check input[type="checkbox"] {
    margin-right: 8px;
    flex-shrink: 0;
}

#abp-booking-form .form-check label {
    margin: 0;
    font-weight: normal;
}

/* Submit Button */
#abp-booking-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#abp-booking-form button[type="submit"]:hover {
    background: #005a87;
}

/* Insurance Fields Box */
#abp-insurance-fields {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-top: 10px;
}

/* Modal Headers */
.modal-header.bg-success {
    background-color: #198754 !important;
}

.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

/* Modal Alerts */
.modal-body .alert {
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
}

.modal-body .alert-success {
    background-color: #d1eddd;
    color: #0a3622;
}

.modal-body .alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #f0ad4e;
}

.modal-body .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.modal-body .alert-heading {
    margin-bottom: 10px;
    font-size: 16px;
}

.modal-body .alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.modal-body .alert p {
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    #abp-booking-form {
        margin: 10px;
        padding: 15px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Loading Animation */
.abp-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.abp-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* WordPress Admin Notices */
.notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid;
    background: white;
}

.notice-success {
    border-color: #00a32a;
    background-color: #f0f8ff;
}

.notice-error {
    border-color: #d63638;
    background-color: #ffeaea;
}

/* Form Submission Animation */
#abp-booking-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

#abp-booking-form.submitting button[type="submit"] {
    background: #ccc;
    cursor: not-allowed;
    position: relative;
}

#abp-booking-form.submitting button[type="submit"]::after {
    content: " ...";
    animation: dots 1s infinite;
}

@keyframes dots {
    0%, 20% { content: " ."; }
    40% { content: " .."; }
    60%, 100% { content: " ..."; }
}
