/**
 * Booking Engine Styles
 */

/* --- Date Range Picker --- */
.booking-date-range input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
    background: #ffffff;
    color: #1a2740;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.booking-date-range input:focus {
    border-color: #b4a08e;
    outline: none;
}

.booking-date-range input::placeholder {
    color: #999;
}

/* --- Flatpickr Customization --- */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    font-family: 'Red Hat Display', sans-serif !important;
}

.flatpickr-day.selected {
    background: #1a2740 !important;
    border-color: #1a2740 !important;
}

.flatpickr-day.selected:hover {
    background: #2a3a5a !important;
    border-color: #2a3a5a !important;
}

.flatpickr-day.inRange {
    background: #e8e8e8 !important;
    border-color: #e8e8e8 !important;
    box-shadow: none !important;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #1a2740 !important;
    border-color: #1a2740 !important;
    color: #fff !important;
}

.flatpickr-day.disabled {
    color: #ccc !important;
    cursor: not-allowed !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #ccc !important;
    cursor: not-allowed !important;
}

/* --- Guest Selectors --- */
.booking-guests {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.booking-guest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
}

.booking-guest-item label {
    font-size: 12px;
    color: #566C7F;
    font-family: 'Red Hat Display', sans-serif;
    margin-bottom: 5px;
}

.booking-guest-item input {
    width: 60px;
    text-align: center;
    padding: 6px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
    color: #1a2740;
}

.booking-guest-item input:focus {
    border-color: #b4a08e;
    outline: none;
}

/* --- Meal Plan Selector --- */
.booking-meal-plan {
    margin-top: 15px;
}

.booking-meal-plan select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
    color: #1a2740;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a2740' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.booking-meal-plan select:focus {
    border-color: #b4a08e;
    outline: none;
}

/* --- Pool Heating Checkbox --- */
.booking-pool-heating {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-pool-heating input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1a2740;
    cursor: pointer;
}

.booking-pool-heating label {
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
    color: #566C7F;
    cursor: pointer;
}

.booking-pool-heating .pool-price {
    color: #1a2740;
    font-weight: 600;
    font-size: 14px;
}

/* --- Price Breakdown --- */
.booking-price-breakdown {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.booking-price-breakdown h4 {
    color: #1a2740;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.booking-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
    font-family: 'Red Hat Display', sans-serif;
    color: #566C7F;
    border-bottom: 1px solid #e8e8e8;
}

.booking-price-row:last-child {
    border-bottom: none;
}

.booking-price-row.discount {
    color: #4caf50;
}

.booking-price-row.total {
    font-weight: 700;
    color: #1a2740;
    font-size: 18px;
    padding-top: 10px;
    border-top: 2px solid #1a2740;
    border-bottom: none;
}

/* --- Booking Form --- */
.booking-form-fields {
    margin-top: 20px;
}

.booking-form-fields .form-group {
    margin-bottom: 12px;
}

.booking-form-fields label {
    display: block;
    font-size: 14px;
    font-family: 'Red Hat Display', sans-serif;
    color: #1a2740;
    font-weight: 600;
    margin-bottom: 4px;
}

.booking-form-fields label .required {
    color: #e74c3c;
}

.booking-form-fields input,
.booking-form-fields textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Red Hat Display', sans-serif;
    color: #1a2740;
    transition: border-color 0.3s ease;
}

.booking-form-fields input:focus,
.booking-form-fields textarea:focus {
    border-color: #b4a08e;
    outline: none;
}

.booking-form-fields textarea {
    height: 80px;
    resize: vertical;
}

/* --- Submit Button --- */
.booking-submit-wrapper {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-submit-wrapper button {
    flex: 1;
    padding: 14px 30px;
    background: #1a2740;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.booking-submit-wrapper button:hover:not(:disabled) {
    background: #2a3a5a;
}

.booking-submit-wrapper button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-submit-wrapper .loading-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid #e8e8e8;
    border-top-color: #1a2740;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Response Messages --- */
.booking-response {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Red Hat Display', sans-serif;
    display: none;
}

.booking-success {
    display: block !important;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.booking-error {
    display: block !important;
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* --- Mobile Responsive --- */
@media (max-width: 600px) {
    .booking-guests {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px;
    }
    
    .booking-price-row {
        font-size: 14px;
        padding: 5px 0;
    }
    
    .booking-price-row.total {
        font-size: 16px;
    }
    
    .booking-submit-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-submit-wrapper button {
        width: 100%;
    }
}
/* --- Disabled / Booked Dates --- */
.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled {
    background: #f0f0f0 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

.flatpickr-day.disabled:hover,
.flatpickr-day.flatpickr-disabled:hover {
    background: #f0f0f0 !important;
    color: #ccc !important;
}