/* booking-form.css - Simplified and fixed version */

/* Booking Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.booking-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure modal is wide enough for 2-column layout */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    min-width: 500px; /* Add minimum width */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 15px 20px 20px;
}

/* Calendar legend closer to fields */
.form-group {
    margin-bottom: 10px;
}

.form-row {
    margin-bottom: 5px; /* Reduced from 10px */
}

.form-group.half-width {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Critical for proper width calculation */
}

.form-group input[readonly]:not(#startDate) {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.8;
}

#startDate {
    background-color: white;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #fea116;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
}

.form-group textarea {
    min-height: 50px;
    resize: vertical;
}

.error-message {
    color: #f44336;
    font-size: 11px;
    margin-top: 2px;
    display: block;
}

#priceDisplay {
    margin: 8px 0;
    animation: fadeIn 0.3s ease-in;
}

/* Price info styling */
.price-info {
    background: #f0f7ff;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #d0e5ff;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.price-info strong {
    color: #fea116;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.price-separator {
    color: #ccc;
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
}

.submit-btn {
    background: #fea116;
    color: white;
    padding: 8px 25px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #f4941e;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.success-message {
    display: none;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border-radius: 5px;
    margin-bottom: 10px;
    white-space: pre-line;
    font-size: 13px;
}

.loading-spinner {
    display: none !important;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.show {
    display: inline-block !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SIMPLIFIED CALENDAR VISUAL RANGE STYLES */
/* Base calendar day styling */
.flatpickr-day {
    max-width: 37px;
    height: 38px;
    line-height: 38px;
    margin: 0;
    position: relative !important;
    border: none;
}

/* Remove gaps between days */
.flatpickr-days {
    width: 100%;
}

.dayContainer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
}

/* Override flatpickr's default inRange styling */
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Trek range base styles - remove gaps */
.flatpickr-day.in-range {
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: relative;
    z-index: 1;
}

/* Available range (1-4 people) */
.flatpickr-day.in-range.range-available,
.flatpickr-day.in-range.range-available.selected {
    background: #4CAF50 !important;
    color: white !important;
}

/* Almost full range (5-9 people) */
.flatpickr-day.in-range.range-almost-full,
.flatpickr-day.in-range.range-almost-full.selected {
    background: #FF9800 !important;
    color: white !important;
}

/* Fully booked range (10 people) */
.flatpickr-day.in-range.range-fully-booked,
.flatpickr-day.in-range.range-fully-booked.selected {
    background: #F44336 !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

/* Start of range - cucumber left end */
.flatpickr-day.in-range.range-start:not(.range-single) {
    border-radius: 50% 0 0 50% !important;
    position: relative;
    z-index: 2;
}

/* Create connector after start - MUST NOT BLOCK CLICKS */
.flatpickr-day.in-range.range-start:not(.range-single)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
    z-index: 1;
    pointer-events: none !important; /* Critical: Don't block clicks */
}

/* End of range - cucumber right end */
.flatpickr-day.in-range.range-end:not(.range-single) {
    border-radius: 0 50% 50% 0 !important;
    position: relative;
    z-index: 2;
}

/* Create connector before end - MUST NOT BLOCK CLICKS */
.flatpickr-day.in-range.range-end:not(.range-single)::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
    z-index: 1;
    pointer-events: none !important; /* Critical: Don't block clicks */
}

/* Middle days - add connectors on both sides */
.flatpickr-day.in-range:not(.range-start):not(.range-end):not(.range-single) {
    position: relative;
    border-radius: 0 !important;
}

/* Connectors for middle days - MUST NOT BLOCK CLICKS */
.flatpickr-day.in-range:not(.range-start):not(.range-end):not(.range-single)::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
    z-index: 1;
    pointer-events: none !important; /* Critical: Don't block clicks */
}

.flatpickr-day.in-range:not(.range-start):not(.range-end):not(.range-single)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
    z-index: 1;
    pointer-events: none !important; /* Critical: Don't block clicks */
}

/* Single day booking - full circle */
.flatpickr-day.in-range.range-single {
    border-radius: 50% !important;
    z-index: 2;
}

/* Ensure selected dates within ranges maintain the range styling */
.flatpickr-day.in-range.selected {
    opacity: 1 !important;
}

/* Override flatpickr's default selected styling for range dates */
.flatpickr-day.in-range.range-available.selected,
.flatpickr-day.in-range.range-almost-full.selected,
.flatpickr-day.in-range.range-fully-booked.selected {
    background-color: inherit !important;
    border-color: transparent !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5) !important;
}

/* Hover effect for booked ranges - simple brightness */
.flatpickr-day.in-range:hover {
    filter: brightness(1.1);
    cursor: pointer;
}

/* Make available ranges more clickable */
.flatpickr-day.range-available:not(.flatpickr-disabled),
.flatpickr-day.range-almost-full:not(.flatpickr-disabled) {
    cursor: pointer !important;
}

.flatpickr-day.range-available:not(.flatpickr-disabled):hover,
.flatpickr-day.range-almost-full:not(.flatpickr-disabled):hover {
    filter: brightness(1.2);
    transform: scale(1.05);
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Highlight entire range on hover */
.flatpickr-day.range-highlight {
    filter: brightness(1.15) !important;
}

/* Selected trek preview with enhanced visibility */
.flatpickr-day.trek-preview {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    position: relative;
    border-radius: 0 !important;
    z-index: 2;
    border: 1px dashed #1976d2 !important;
    font-weight: 600;
    animation: pulse-preview 1.5s ease-in-out infinite;
}

/* Selected existing booking - apply glowing effect */
.flatpickr-day.trek-selected {
    position: relative !important;
    animation: pulse-selected 1.5s ease-in-out infinite !important;
    z-index: 4 !important;
}

/* Apply white inner border to selected existing bookings */
.flatpickr-day.trek-selected::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: inherit;
    pointer-events: none;
    animation: pulse-border 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-border {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Different pulse colors for different booking states */
.flatpickr-day.trek-selected.range-available {
    animation: pulse-selected-available 1.5s ease-in-out infinite !important;
}

.flatpickr-day.trek-selected.range-almost-full {
    animation: pulse-selected-almost-full 1.5s ease-in-out infinite !important;
}

.flatpickr-day.trek-selected.range-fully-booked {
    animation: pulse-selected-booked 1.5s ease-in-out infinite !important;
}

@keyframes pulse-preview {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.2);
    }
}

@keyframes pulse-selected {
    0%, 100% {
        filter: brightness(1.1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-selected-available {
    0%, 100% {
        filter: brightness(1.1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        filter: brightness(1.2);
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
    }
}

@keyframes pulse-selected-almost-full {
    0%, 100% {
        filter: brightness(1.1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    50% {
        filter: brightness(1.2);
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.3);
    }
}

@keyframes pulse-selected-booked {
    0%, 100% {
        filter: brightness(1.1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    50% {
        filter: brightness(1.15);
        box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.3);
    }
}

.flatpickr-day.trek-preview:hover {
    background: #bbdefb !important;
    filter: brightness(1.05);
    animation: none;
}

.flatpickr-day.trek-selected:hover {
    animation: none !important;
    filter: brightness(1.25) !important;
}

.flatpickr-day.trek-preview-start {
    border-radius: 50% 0 0 50% !important;
}

.flatpickr-day.trek-preview-end {
    border-radius: 0 50% 50% 0 !important;
}

.flatpickr-day.trek-preview-single {
    border-radius: 50% !important;
}

.flatpickr-day.trek-preview-start {
    border-radius: 50% 0 0 50% !important;
}

.flatpickr-day.trek-preview-end {
    border-radius: 0 50% 50% 0 !important;
}

.flatpickr-day.trek-preview-single {
    border-radius: 50% !important;
}

/* Preview connectors for middle days */
.flatpickr-day.trek-preview:not(.trek-preview-start):not(.trek-preview-single)::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e3f2fd;
    border-left: 1px dashed #1976d2;
    z-index: 1;
    pointer-events: none !important;
}

.flatpickr-day.trek-preview:not(.trek-preview-end):not(.trek-preview-single)::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e3f2fd;
    border-right: 1px dashed #1976d2;
    z-index: 1;
    pointer-events: none !important;
}

/* No guides available */
.flatpickr-day.no-guides {
    background: #9E9E9E !important;
    color: white !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    opacity: 0.8;
}

/* People count badge - fixed positioning */
.people-badge {
    position: absolute;
    bottom: 2px;  /* Position at bottom to avoid interference with date */
    right: 2px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 11px;  /* Increased from 9px */
    font-weight: bold;
    padding: 2px 4px;  /* Increased padding */
    border-radius: 8px;
    min-width: 16px;  /* Increased from 14px */
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 10;
    line-height: 1;
    border: 1px solid rgba(0,0,0,0.2);
    pointer-events: none !important; /* Critical: Prevent badge from blocking clicks */
}

/* Alternative style - badge in top corner but smaller and offset */
.people-badge.top-style {
    top: 1px;
    right: 1px;
    font-size: 8px;
    padding: 0px 2px;
    min-width: 12px;
}

/* Calendar legend */
.calendar-legend {
    display: flex;
    gap: 12px;
    font-size: 11px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    align-items: center;
    margin-top: -5px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background-color: #4CAF50;
}

.legend-color.almost-full {
    background-color: #FF9800;
}

.legend-color.fully-booked {
    background-color: #F44336;
}

.legend-color.no-guides {
    background-color: #9E9E9E;
}

.legend-color.trek-preview {
    background-color: #e3f2fd;
    border: 1px dashed #1976d2;
}

/* Modal availability info - centralized message display */
.modal-availability-info {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-availability-info .availability-message {
    padding: 10px 15px;
    border-radius: 5px;
}

.modal-availability-info .message-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.modal-availability-info .primary-message {
    font-weight: 500;
    font-size: 14px;
}

.modal-availability-info .secondary-message {
    font-weight: normal;
    font-size: 12px;
    opacity: 0.85;
    margin-left: auto;
    flex-shrink: 0;
}

.modal-availability-info .availability-message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.modal-availability-info .availability-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.modal-availability-info .availability-message.urgent {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.modal-availability-info .availability-message.available {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Remove old availability display styles */
.availability-display {
    display: none;
}

#charCount {
    font-size: 10px;
    color: #666;
    margin-top: 1px;
    display: block;
}

/* Book Now Section */
.book-now-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.book-now-section h4 {
    margin-bottom: 20px;
    color: #333;
}

.price-display {
    font-size: 36px;
    font-weight: bold;
    color: #fea116;
    margin-bottom: 20px;
}

.btn-book-now {
    background: #fea116;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-book-now:hover {
    background: #f4941e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.availability-display {
    margin: 8px 0;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.availability-message {
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.availability-message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.availability-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.availability-message.urgent {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.availability-message.limited {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffe082;
}

.availability-message.available {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.availability-options {
    font-size: 12px;
    color: #666;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 6px;
    border-left: 3px solid #2196f3;
}

.existing-bookings-info {
    font-size: 11px;
    color: #666;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #fea116;
}

/* Ensure proper stacking context for calendar */
.flatpickr-calendar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.flatpickr-calendar .flatpickr-innerContainer {
    position: relative;
    z-index: 1;
}

.flatpickr-calendar .flatpickr-days {
    position: relative;
    z-index: 1;
}

/* Ensure day elements are clickable and on top */
.flatpickr-day {
    position: relative !important;
    z-index: 5 !important; /* Higher than pseudo-elements */
    cursor: pointer !important;
}

.flatpickr-day.in-range {
    z-index: 3 !important; /* Still above connectors but below regular days */
}

.flatpickr-day.trek-range {
    position: relative;
    z-index: 3 !important;
}

/* Ensure selected state is visible but doesn't block clicks */
.flatpickr-day.trek-selected {
    z-index: 4 !important;
}

/* Preview state should be below selected state */
.flatpickr-day.trek-preview {
    z-index: 2 !important;
}

.flatpickr-months {
    background: #333333;
}

.flatpickr-current-month {
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .numInputWrapper span,
.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    color: white !important;
    background: transparent !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: bold;
}

/* Month dropdown styling */
.flatpickr-monthDropdown-months {
    background: #333333 !important;
}

.flatpickr-monthDropdown-months option {
    background: #333333 !important;
    color: white !important;
}

.flatpickr-monthDropdown-months option:hover,
.flatpickr-monthDropdown-months option:focus,
.flatpickr-monthDropdown-months option:checked {
    background: #fea116 !important;
    color: white !important;
}

/* Fix for select dropdown in some browsers */
select.flatpickr-monthDropdown-months {
    color: white !important;
    background-color: #333333 !important;
}

select.flatpickr-monthDropdown-months option {
    background-color: #333333 !important;
    color: white !important;
}

select.flatpickr-monthDropdown-months option:hover {
    background-color: #555555 !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: white !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.flatpickr-weekdays {
    background: #f8f9fa;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: #fea116 !important;
}

/* Month and year dropdowns in calendar header */
.flatpickr-months .flatpickr-month {
    background: #333333 !important;
}

/* Ensure dropdown text is visible */
.flatpickr-monthDropdown-months {
    color: white !important;
    background: #333333 !important;
    border: 1px solid #555 !important;
}

/* Style the dropdown options */
.flatpickr-monthDropdown-month {
    background: #333333 !important;
    color: white !important;
}

.flatpickr-monthDropdown-month:hover {
    background: #555555 !important;
    color: white !important;
}
.country-select {
    font-family: inherit;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2714%27%20height%3D%278%27%20viewBox%3D%270%200%2014%208%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M1%201l6%206%206-6%27%20stroke%3D%27%23666%27%20stroke-width%3D%272%27%20fill%3D%27none%27%20fill-rule%3D%27evenodd%27/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.country-select option {
    padding: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-modal {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .modal-header {
        border-radius: 0;
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 10px 12px;
    }
    
    .calendar-legend {
        font-size: 10px;
        gap: 8px;
        padding: 6px;
    }
    
    .legend-item {
        font-size: 10px;
    }
    
    .form-row {
        gap: 10px;
    }
    
    .form-group {
        margin-bottom: 6px;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .form-row .form-group:first-child {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .form-row .form-group:last-child {
        flex: 1 1 100%;
    }
    
    .form-group.half-width {
        width: 100%;
    }
    
    .price-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .price-separator {
        display: none;
    }
    
/* Form row specific styling */
.form-row + .calendar-legend {
    margin-top: -10px;
}
    
    .people-badge {
        font-size: 8px;  /* Increased from 7px */
        padding: 1px 3px;  /* Increased padding */
        min-width: 12px;  /* Increased from 10px */
        bottom: 1px;
        right: 1px;
    }
    
    .availability-message {
        font-size: 12px;
        padding: 8px;
    }
    
    .modal-availability-info {
        padding: 10px 12px;
    }
    
    .modal-availability-info .message-content {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .modal-availability-info .primary-message {
        font-size: 13px;
    }
    
    .modal-availability-info .secondary-message {
        font-size: 11px;
        margin-left: 0;
    }
	
	
	/* Safari Discount Display Styles */
	.price-display {
		background-color: #f8f9fa;
		padding: 12px 15px;
		border-radius: 8px;
		margin-top: 10px;
		margin-bottom: 15px;
		border: 1px solid #dee2e6;
	}

	.price-display.styled {
		/* Already styled by JavaScript */
	}

	.price-info {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 5px;
	}

	.price-row {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 5px;
		width: 100%;
	}

	.price-item {
		white-space: nowrap;
	}

	.price-separator {
		margin: 0 5px;
		color: #6c757d;
	}

	.discount-badge {
		color: #28a745 !important;
		font-weight: bold;
		margin-left: 10px;
		padding: 2px 8px;
		background-color: #d4edda;
		border-radius: 4px;
		font-size: 14px;
		white-space: nowrap;
	}

	/* Responsive adjustments */
	@media (max-width: 768px) {
		.price-row {
			flex-direction: column;
			align-items: flex-start;
			gap: 8px;
		}
		
		.price-separator {
			display: none;
		}
		
		.discount-badge {
			margin-left: 0;
			margin-top: 5px;
		}
	}
	
	
	
	
}