/* Guesthouse Booking System - Reference Styled Booking Form */

:root {
    --ghs-accent: #00aeef;
    /* The blue from the button */
    --ghs-accent-hover: #0098d1;
    --ghs-border: #d1d1d1;
    --ghs-bg-input: #f2f2f2;
    --ghs-text: #555555;
    --ghs-booked: #ff8a80;
    /* Light red for booked */
    --ghs-available: #81c784;
    /* Light green for available */
    --ghs-selected: #42a5f5;
    /* Blue for selection */
}

.ghs-booking-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--ghs-text);
}

.ghs-booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ghs-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ghs-form-group label {
    font-size: 16px;
    color: #444;
}

.ghs-input {
    background-color: var(--ghs-bg-input);
    border: 1px solid var(--ghs-border);
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.ghs-input:focus {
    outline: none;
    border-color: var(--ghs-accent);
}

textarea.ghs-input {
    min-height: 120px;
}

/* Price Display */
.ghs-price-display {
    margin: 15px 0;
}

.ghs-price-label {
    font-size: 16px;
    margin-bottom: 5px;
}

.ghs-total-price {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
}

.ghs-price-note {
    font-size: 12px;
    font-style: italic;
    color: #666;
}

/* Checkbox */
.ghs-checkbox-group {
    margin: 10px 0;
}

.ghs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.ghs-checkbox-label input {
    width: 20px;
    height: 20px;
}

/* Submit Button */
.ghs-submit-btn {
    background-color: var(--ghs-accent);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    width: fit-content;
    transition: background-color 0.2s;
}

.ghs-submit-btn:hover {
    background-color: var(--ghs-accent-hover);
}

/* Flatpickr Custom Tooltip/Styles to match reference */
.flatpickr-calendar {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.flatpickr-day.booked,
.flatpickr-day.flatpickr-disabled.booked {
    background: #ff3b30 !important;
    /* Vibrant Red */
    color: white !important;
    border-color: #ff3b30 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.flatpickr-day.available {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #e8f5e9;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--ghs-selected) !important;
    border-color: var(--ghs-selected) !important;
}

.flatpickr-day.special-period {
    background: #ffecb3 !important;
    /* Light Yellow */
    color: #5d4037 !important;
    border-color: #ffe082 !important;
}

.flatpickr-day.special-period.selected,
.flatpickr-day.special-period.startRange,
.flatpickr-day.special-period.endRange {
    background: var(--ghs-selected) !important;
    color: white !important;
}

.flatpickr-day.inRange {
    background: #e3f2fd !important;
    border-color: #e3f2fd !important;
    box-shadow: -5px 0 0 #e3f2fd, 5px 0 0 #e3f2fd !important;
}

#ghs-form-messages {
    margin-top: 10px;
}

.ghs-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.ghs-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ghs-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Legend */
.ghs-calendar-legend {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.ghs-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ghs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-available {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.dot-booked {
    background-color: #ff3b30;
}

.dot-special {
    background-color: #ffecb3;
    border: 1px solid #ffe082;
}

@media (max-width: 600px) {
    .ghs-calendar-legend {
        flex-wrap: wrap;
    }

    .ghs-submit-btn {
        width: 100%;
    }
}