/* ============================================= */
/* Booking Form Base Styles */
/* ============================================= */

#booking-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    font-family: 'Arial', sans-serif;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* ============================================= */
/* Input Field Styles */
/* ============================================= */

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group .flatpickr-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    height: 50px;
}

.form-group input:focus,
.form-group select:focus,
.form-group .flatpickr-input:focus {
    outline: none;
    border-color: #8b7a46;
    box-shadow: 0 0 0 3px rgba(139, 122, 70, 0.15);
}

/* ============================================= */
/* Calendar Specific Styles */
/* ============================================= */

#checkin-date {
    background-color: #f9f9f9;
    cursor: not-allowed;
    border-color: #e0e0e0 !important;
}

#checkin-date.enabled {
    background-color: #fff;
    cursor: text;
}

/* Disabled State */
#checkin-date:disabled {
    opacity: 1; /* Full opacity but grayed */
    background-color: #f9f9f9;
}

/* Calendar Container */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

/* Calendar Days */
.flatpickr-day {
    border-radius: 4px;
    height: 38px;
    line-height: 38px;
}

.flatpickr-day.selected, 
.flatpickr-day.selected:hover {
    background: #8b7a46;
    border-color: #8b7a46;
    color: #fff;
    font-weight: normal;
}

.flatpickr-day.highlighted {
    background: #f8f4e6;
    border-color: #f8f4e6;
}

.flatpickr-day.disabled, 
.flatpickr-day.disabled:hover,
.flatpickr-day.notAllowed {
    color: #e0e0e0;
    cursor: not-allowed;
    background: transparent;
}

/* ============================================= */
/* Helper Text & Messages */
/* ============================================= */

.helper-text {
    font-size: 14px;
    color: #666;
    margin: 8px 0 12px;
    font-style: italic;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.error-message {
    color: #d9534f;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    font-style: normal;
}

/* ============================================= */
/* Button Styles */
/* ============================================= */

#booking-form button[type="submit"] {
    background-color: #8b7a46;
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

#booking-form button[type="submit"]:hover {
    background-color: #7a6a3a;
    transform: translateY(-1px);
}

#booking-form button[type="submit"]:active {
    transform: translateY(0);
}

#booking-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================= */
/* Status Messages */
/* ============================================= */

/* Validation states */
input:invalid, select:invalid {
    border-color: #d63638 !important;
}

/* Season indicator */
#season-indicator {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-spinner p:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #8b7a46;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

#loading-spinner {
    text-align: center;
    padding: 15px;
    color: #8b7a46;
    font-style: italic;
}

#booking-success {
    text-align: center;
    padding: 15px;
    background-color: #f8f4e6;
    border-radius: 6px;
    margin-top: 20px;
    color: #5a4a2a;
    font-weight: 500;
}

/* ============================================= */
/* Booking Note */
/* ============================================= */

.booking-note {
    font-size: 14px;
    color: #666;
    margin: 25px 0 15px;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}

/* ============================================= */
/* Price Display - Updated Styles */
/* ============================================= */

#total-price {
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #8b7a46;
}

.price-prefix {
    font-weight: normal;
    font-size: 16px;
    color: #666;
}

/* ============================================= */
/* Responsive Styles */
/* ============================================= */

@media (max-width: 768px) {
    #booking-form {
        padding: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group .flatpickr-input {
        padding: 12px 14px;
        font-size: 15px;
        height: 46px;
    }
    
    #booking-form button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }

    #total-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #booking-form {
        padding: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .helper-text {
        font-size: 13px;
    }

    #total-price {
        font-size: 16px;
    }
}