/* Frontend Booking Form Styles */

.apb-booking-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.apb-booking-form-container * {
    box-sizing: border-box;
}

/* Responsive design */
@media (max-width: 768px) {
    .apb-booking-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .apb-booking-form-container h2 {
        font-size: 24px;
    }
    
    .apb-form-row input,
    .apb-form-row select,
    .apb-form-row textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading state */
.apb-submit-btn.loading {
    opacity: 0.7;
}

/* Success/Error messages animation */
#apb-booking-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom select styling */
.apb-form-row select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

/* Disabled state */
.apb-form-row select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Focus styles for better accessibility */
.apb-form-row input:focus,
.apb-form-row select:focus,
.apb-form-row textarea:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Success and Error messages */
#apb-booking-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    display: none;
}

#apb-booking-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#apb-booking-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

