/* Container for the shortcode */
.elsbh-shortcode-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Booking form styling */
.elsbh-booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.elsbh-booking-form select,
.elsbh-booking-form input[type="text"],
.elsbh-booking-form input[type="email"],
.elsbh-booking-form input[type="tel"],
.elsbh-booking-form input[type="number"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.elsbh-booking-form > label,
.elsbh-form-group > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* Form groups */
.elsbh-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.elsbh-form-group small {
    font-size: 12px;
    color: #666;
}

/* Slot selection */
.elsbh-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elsbh-slot-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
}

.elsbh-slot-option:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.elsbh-slot-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.elsbh-slot-option input[type="radio"]:checked + span {
    color: #0073aa;
    font-weight: 600;
}

.elsbh-slot-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: #e8f4fc;
}

.elsbh-slot-option input[type="radio"]:disabled + span {
    color: #999;
    text-decoration: line-through;
}

.elsbh-slot-option:has(input[type="radio"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ddd;
    background-color: #f5f5f5;
}

/* Slot description */
.elsbh-slot-option .elsbh-slot-desc {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.elsbh-slot-option:has(input[type="radio"]:checked) .elsbh-slot-desc {
    color: #0073aa;
}

/* Slot unavailable badge */
.elsbh-slot-unavailable {
    display: inline-block;
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    background-color: #f44336;
    color: #fff;
    border-radius: 3px;
}

.elsbh-booking-form p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* CAPTCHA styling */
.elsbh-captcha {
    position: relative;
    margin-bottom: 15px; /* Space for error message */
}

.elsbh-captcha label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.elsbh-captcha input[type="number"] {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100px;
}

.elsbh-captcha-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    text-align: left; /* Align with input */
}

/* Submit button */
.elsbh-booking-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.elsbh-booking-form button[type="submit"]:hover {
    background-color: #005d82;
}

/* Subscription form styling */
.elsbh-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.elsbh-subscribe-form input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.elsbh-subscribe-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.elsbh-subscribe-form button[type="submit"]:hover {
    background-color: #005d82;
}

/* Toggle button for booking form */
.elsbh-book-now-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s;
}

.elsbh-book-now-btn:hover {
    background-color: #005d82;
}

.elsbh-form-container {
    margin-top: 15px;
}

/* Success and error messages */
.elsbh-message.success {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

.elsbh-message.error {
    background-color: #f44336;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

.elsbh-captcha {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.elsbh-captcha label,
.elsbh-captcha input {
    margin: 0 !important;
}
.elsbh-captcha input {
    width: 60px !important;
}

/* Loading state */
.elsbh-booking-form.elsbh-loading,
.elsbh-subscribe-form.elsbh-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.elsbh-booking-form.elsbh-loading::after,
.elsbh-subscribe-form.elsbh-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: elsbh-spin 1s linear infinite;
}

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

/* Result messages */
.elsbh-result {
    text-align: center;
    padding: 40px 20px;
}

.elsbh-result-icon {
    font-size: 60px;
    line-height: 1;
    margin-bottom: 15px;
}

.elsbh-result-success .elsbh-result-icon {
    color: #4CAF50;
}

.elsbh-result-error .elsbh-result-icon {
    color: #f44336;
}

.elsbh-result-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.elsbh-result-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Enhanced message styles */
.elsbh-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Centered message overlay */
.elsbh-message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    border-radius: 8px;
}

.elsbh-message-box {
    text-align: center;
    padding: 30px 40px;
    max-width: 300px;
}

.elsbh-message-overlay .elsbh-message-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 15px;
}

.elsbh-message-error .elsbh-message-icon {
    color: #f44336;
}

.elsbh-message-success .elsbh-message-icon {
    color: #4CAF50;
}

.elsbh-message-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.elsbh-message-close {
    padding: 10px 25px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.elsbh-message-close:hover,
.elsbh-message-refresh:hover {
    background-color: #005d82;
}

.elsbh-message-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.elsbh-message-refresh {
    padding: 10px 25px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

/* Dates updated notice */
.elsbh-dates-updated {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    animation: elsbh-fade-in 0.3s ease;
}

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