/* Modal styles */
.multiselect-wrapper {
    position: relative;
    width: 100%;
    font-family: sans-serif;
}

.selectBox {
    position: relative;
}

.selectBox select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    background: white;
}

.overSelect {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.checkboxes {
    display: none;
    border: 1px solid #ccc;
    background: white;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.checkboxes.show {
    display: block;
}

.checkboxes label {
    display: block;
    padding: 8px 10px;
}

.checkboxes label:hover {
    background-color: #f6f6f6;
}

.member-search {
    width: calc(100% - 20px);
    padding: 8px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkboxes input[type="checkbox"] {
    margin-right: 8px;
}


.booking-modal input {
    background: white;
}

.booking-modal input:disabled {
    opacity: .2;
    cursor: not-allowed;
}

.booking-modal select {
    background: white;
}


.booking-modal {
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
}

.booking-modal-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Update the booking-form-layout styles */
.booking-form-layout {
    display: flex;
    min-height: 75vh;
    height: 100%;
    width: 100%;
    max-height: 90vh;
    overflow: hidden; /* Prevent content from flowing outside */
}

/* Update form-fields to enable scrolling */
.form-fields {
    width: 75%;
    background: rgba(232, 232, 214, 1);
    padding: 40px;
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 90vh; /* Match parent's max-height */
}

/* Update form-step-headings to match height */
.form-step-headings {
    width: 25%;
    background: rgba(0, 63, 20, 1);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    max-height: 90vh; /* Match parent's max-height */
    overflow-y: auto; /* Enable vertical scrolling if needed */
}

/* Add styles for the scrollbar */
.form-fields::-webkit-scrollbar {
    width: 8px;
}

.form-fields::-webkit-scrollbar-track {
    background: rgba(232, 232, 214, 0.5);
}

.form-fields::-webkit-scrollbar-thumb {
    background: rgba(0, 63, 20, 0.5);
    border-radius: 4px;
}

.form-fields::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 63, 20, 0.7);
}

/* Update booking-modal-content styles */
.booking-modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin: auto;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    max-height: 90vh !important;
    height: 90vh; /* Add fixed height */
}

.close-modal {
    color: #000000;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}




#available-slots {
    display:none;
}
.step-heading {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-subtitle {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.step-heading.active,
.step-heading.completed {
    opacity: 1;
}

.step-heading.completed i {
    color: rgba(128, 196, 35, 1);
}

/* Step Icons Styles */
.step-heading .step-icon {
    margin-right: 10px;
    color: rgba(0, 63, 20, 1); /* Default color */
    transition: color 0.3s ease;
}

.step-heading.completed .step-icon {
    color: rgba(128, 196, 35, 1); /* Green for completed steps */
}


/* Form step animations */
.form-step {
    display: none;
    animation: slideIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ------------------------------------------------------------- */
/* ORIGINAL GENERIC BUTTON STYLES - Will be partially overridden by #book-now-btn */
button {
    padding: 10px 20px;
    background: #E8E8D6;
    color: #003F14;
    border: 2px solid #003F14;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s, color 0.3s;
}

button:hover {
    background: #509724;
    color: #E8E8D6;
    border-color: #003F14;
}
/* ------------------------------------------------------------- */

.form-navigation {
    padding: 10px 0px 10px 0px;
}


.form-response-message {
    display: none;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.form-response-message .success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-response-message .error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.logged-in-field {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.guest-input {
    margin: 10px 0px;
}

.member-select {
    margin: 10px 0px;
}

.max-allowed {
    color: rgba(0, 63, 20, 1);
    font-size: 0.9em;
    margin-bottom: 10px;
    display: block;
}

.vehicle-row {
    margin-bottom: 10px;
}

.vehicle-row .additional-vehicle-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.guest-row {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}

.guest-row .guest-input-wrapper input {
    margin-top: 0 !important;
}

.guests-section .add-guest-btn {
    margin-top: 15px;
}

#remaining-guests {
    color: rgba(0, 63, 20, 1);
    font-weight: bold;
}

.guests-section {
    margin-top: 20px;
}

/* Form Close Button */
.form-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    border: 0px;
    background:none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.loader-spinner {
    border: 4px solid rgba(0, 63, 20, 0.2); /* Light green border */
    border-top: 4px solid rgba(0, 63, 20, 1); /* Dark green border */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Center the spinner */
    display: none; /* Hidden by default */
}

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

.form-close-button:hover {
    background: rgba(0, 63, 20, 1);
    color: rgba(232, 232, 214, 1);
}

.form-close-button .fa-times {
    font-size: 18px;
}

/* Select2 Dropdown Styles */
.select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 63, 20, 1);
    border-radius: 4px;
    height: 38px;
    padding: 5px;
}

.select2-container--default:not(:first-child) {
    margin: 10px 0px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: rgba(0, 63, 20, 1);
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-dropdown {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 63, 20, 1);
}

.select2-container--default .select2-results__option--highlighted {
    background-color: rgba(0, 63, 20, 1);
    color: rgba(232, 232, 214, 1);
}

.select2-container--default .select2-results__option {
    color: rgba(0, 63, 20, 1);
}

/* Flatpickr Datetime Picker Styles */
.flatpickr-calendar {
    background-color: rgba(232, 232, 214, 1);
    border: 1px solid rgba(0, 63, 20, 1);
    box-shadow: none;
    padding: 5px;
}

.flatpickr-day {
    color: rgba(0, 63, 20, 1);
    font-weight: 600;
}

.flatpickr-months .flatpickr-current-month {
    display: flex;
}

.flatpickr-day.selected,
.flatpickr-day:hover {
    background-color: rgba(0, 63, 20, 1);
    color: rgba(232, 232, 214, 1);
    border-color: rgba(0, 63, 20, 1);
}

.flatpickr-day.today {
    border-color: rgba(0, 63, 20, 1);
}

.flatpickr-day.today:hover {
    background-color: rgba(0, 63, 20, 1);
    color: rgba(232, 232, 214, 1);
}

.flatpickr-time input {
    color: rgba(0, 63, 20, 1);
}

.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
    color: rgba(0, 63, 20, 1);
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed;
    color: rgba(57, 57, 57, 0.5);
}

.flatpickr-input {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 63, 20, 1);
    color: rgba(0, 63, 20, 1);
    padding: 8px;
    border-radius: 4px;
    width: 100%;
}

.form-close-button {
    border: 0 !important;
}

/* Confirmation Screen Styles */
.confirmation-screen {
    width: 100%;
    animation: slideIn 0.5s ease;

}

.confirmation-main {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.confirmation-header {
    text-align: center;
}

.confirmation-icon {
    font-size: 30px;
    color: #80C423;
    margin-bottom: 5px;
}

.confirmation-heading {
    color: #003F14;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

.appointment-id {
    color: #666;
    font-size: 16px;
}

.confirmation-details {
    border-top: 1px solid #eee;
    padding: 5px 0;
    margin: 5px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    color: #666;
    font-weight: 400;
    font-size: 14px;
}

.detail-value {
    color: #003F14;
    font-weight: 500;
    text-align: right;
      font-size: 14px;
}

.confirmation-close-btn {
    width: 100%;
    padding: 15px;
    background: #003F14;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.confirmation-close-btn:hover {
    background: #00260C;
}

.guest-options label {
  display: inline-block; /* or block if you want them stacked */
  margin-right: 10px; /* adjust spacing as needed */
}

.remove-guest {
  margin-left: 10px;
  cursor: pointer;
}

#booking-form.loading {
    position: relative;
    cursor: not-allowed;
    opacity: 0.5;
}

#booking-form.loading * {
    pointer-events: none;
}

/* Original location-info styles from initial query, keeping for context but not in active use for modal button */
.location-info {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.location-info a,
.location-info button {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.location-title {
    color: #2b2b2b;
    margin-bottom: 10px;
}

.location-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.view-photos {
    color: #006699;
    text-decoration: none;
}

.location-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.location-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.service-description {
    line-height: 1.6;
    color: #444;
}