/*
Theme Name: GLIZWP
Theme URI: 
Author: Gliz Team
Author URI: 
Description: A WordPress theme inspired by Airbnb's design and functionality
Version: 1.4.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glizwp
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif;
    color: #222222;
    line-height: 1.43;overflow-x: hidden;
}

/* Header Styles */
.site-header {
    border-bottom: 1px solid #DDDDDD;
    padding: 20px 0;
}

/* GLIZWP Header Integration - Tailwind-friendly styles */
.glizwp-topbar {
    background-color: var(--glizwp-primary, #FF385C);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}

.glizwp-topbar-desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .glizwp-topbar-desktop-only {
        display: none;
    }
}

/* Logo sizing and hover effects */
.glizwp-desktop-logo,
.glizwp-mobile-logo {
    max-height: 50px;
    width: auto;
    transition: transform 0.2s ease;
}

.glizwp-desktop-logo:hover,
.glizwp-mobile-logo:hover { 
}

/* Mobile toggle animation */
.mobile-toggle-active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-toggle-active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle-active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Header scroll effect */
.header-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* Mobile overlay and dropdown visibility classes */
.mobile-overlay-show {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-nav-show {
    transform: translateX(0) !important;
}

.dropdown-show {
    display: block !important;
}

.modal-show {
    display: flex !important;
}

.modal-scale-show {
    transform: scale(1) !important;
}

.property-actions .glizwp-favorite-btn {
    position: static !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 0 !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Property Card Styles */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px 0;
    transition: opacity 0.3s ease-in-out;
}

.property-grid>* {
    transition: opacity 0.3s ease-in-out;
}

/* Bookings Form Styles */
.single_room .gbe-dynamic-pricing-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.early-bird-info {
    color: #eb7774;
}

.early-bird-info:before {
    content: "\f0f3";
    font-family: FontAwesome;
    margin-right: 3px;
}

.last-minute-info {
    color: #79c994;
}

.last-minute-info:before {
    content: "\f017";
    font-family: FontAwesome;
    margin-right: 3px;
}

.property-card {
    border-radius: 12px;
    overflow: hidden;
}

.property-card img {
    width: 100%;
    height: 100%;
    /* Fill container height - let aspect ratio control it */
    object-fit: cover;
}

.property-info {
    padding: 16px 0;
}


.property-price {
    font-weight: 600;
}

/* Search Form Styles */
.search-form {
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 32px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    max-width: 850px;
    margin: 24px auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.search-input {
    border: none;
    padding: 8px;
    flex-grow: 1;
}

.search-button {
    background: #FF385C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
}


.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    margin: 24px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .property-details {
        grid-template-columns: 1fr;
    }

    .property-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* Property Gallery Styles */
.property-gallery {
    margin-bottom: 48px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body.datepicker-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }



    @keyframes slideUp {
        from {
            transform: translateY(100%) !important;
        }

        to {
            transform: translateY(0) !important;
        }
    }


    /* Adjust buttons container for mobile */
    .datepicker-buttons {
        margin: 0 !important;
        padding: 16px 24px !important;
        border-top: 1px solid #e5e5e5 !important;
        background: white !important;
        position: sticky !important;
        bottom: 0 !important;
    }

    /* Guest dropdown styles for mobile */
    .guest-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        align-items: flex-end !important;
    }

    .guest-options {
        background: white !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 24px !important;
        width: 100% !important;
        max-height: 70vh;
        overflow-y: auto;
    }

    .guest-option {
        padding: 16px 0;
        border-bottom: 1px solid #EBEBEB;
    }

    .guest-option:last-child {
        border-bottom: none;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {


    .guest-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border: 1px solid #DDDDDD !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        z-index: 1000 !important;
    }
}

.property-gallery .gallery-item {
    cursor: pointer;
    position: relative;
}

.property-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

#gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
}

#gallery-modal .modal-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

#gallery-categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

#gallery-categories .category-filter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

#gallery-categories .category-filter.active {
    background: white;
    color: #222;
    font-weight: 600;
}

#gallery-modal>div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#gallery-modal .modal-gallery-item {
    cursor: pointer;
}

#video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.video-modal-inner {
    position: relative;
    width: 90vw;
    max-width: 800px;
    margin: auto;
    background: transparent;
}

@media (max-width: 600px) {
    .video-modal-inner {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    .video-modal-inner iframe {
        border-radius: 0 !important;
    }

    #close-video-modal {
        top: 10px !important;
        right: 10px !important;
    }
}

/* Enhanced Guest Selector Styles */
.guest-type-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #EBEBEB;
}

.guest-type-section:last-child {
    border-bottom: none;
}

.guest-type-label {
    flex: 1;
}

.guest-type-name {
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    line-height: 1.2;
}

.guest-type-desc {
    font-size: 14px;
    color: #717171;
    margin-top: 2px;
}

.guest-type-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #B0B0B0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #222222;
    transition: all 0.2s ease;
}

.guest-counter-btn:hover:not(:disabled) {
    border-color: #222222;
    background: #F7F7F7;
}

.guest-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #EBEBEB;
    color: #EBEBEB;
}

.guest-count {
    font-size: 16px;
    font-weight: 400;
    min-width: 20px;
    text-align: center;
}

.guest-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 16px 0;
    border-bottom: 1px solid #EBEBEB;
    margin-bottom: 16px;
}

.guest-dropdown-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-guest-dropdown {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: #222222;
}

@media (max-width: 768px) {
    .guest-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        align-items: flex-end !important;
    }

    .guest-options {
        background: white !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 24px !important;
        width: 100% !important;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Smart Pricing Desktop Container */
.smart-pricing-desktop {
    display: none;
    /* Hide by default */
    margin-bottom: 1rem;
}

/* Show only when it has children */
.smart-pricing-desktop:has(> *) {
    display: block;
}

/* Add spacing between pricing items when they exist */
.smart-pricing-desktop>*:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* Individual pricing containers */
.gbe-early-bird-info,
.gbe-last-minute-info,
.gbe-smart-pricing-container {
    display: none;
    /* Hide by default */
}

/* Show only when they have content */
.gbe-early-bird-info:has(> *),
.gbe-last-minute-info:has(> *),
.gbe-smart-pricing-container:has(> *) {
    display: block;
}

/* Fallback for browsers that don't support :has */
.has-early-bird .gbe-early-bird-info,
.has-last-minute .gbe-last-minute-info,
.has-smart-pricing .gbe-smart-pricing-container,
.has-pricing .smart-pricing-desktop {
    display: block;
}

/* Calendar Holidays Slider */
.calendar-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
}

/* Desktop holidays list */
.holidays_list {
    flex: 1;
    display: flex !important;
    /* Force flex for desktop */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    position: relative;
    gap: 0.5rem;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .calendar-buttons {
        /*  flex-direction: column;*/
        padding: 1rem;
    }

    .calendar-buttons .holidays_list {
        display: grid !important;
        /* Force grid for mobile */
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.35rem;
        overflow-x: visible;
        padding: 0.5rem 0;
        order: 2;
        width: 100%;
    }

    .holidays_list::before,
    .holidays_list::after {
        display: none;
    }

    .button_container {
        order: 1;
        width: 100%;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
}

/* Holiday item styles */
.holiday-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #F5F5F5;
    padding: 0.45rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #E5E5E5;
    transition: all 0.2s ease;
    line-height: 1rem;
}

.holiday-item:hover {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.holiday-item .holiday-name {
    font-weight: 600;
    color: #e41a50;
    text-align: left;
    margin-bottom: 0.25rem;
    margin-bottom: 0.1rem;
}

.holiday-item .holiday-date {
    color: #4B5563;
    font-size: 0.7rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .holiday-item {
        background-color: #F9FAFB;
        border: 1px solid #E5E7EB;
        padding: 0.35rem;
    }

    .holiday-item:hover {
        background-color: #FFFFFF;
        border-color: #D1D5DB;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .holiday-item .holiday-name {
        font-size: 0.8125rem;
        line-height: 1.25;
        /*Clamp the text to 1 line*/
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }

    .holiday-item .holiday-date {
        font-size: 0.75rem;
        opacity: 0.9;
    }
}

/* Hide scrollbar but keep functionality */
.holidays_list::-webkit-scrollbar {
    display: none;
}

/* Gradient fade effect on edges */
.holidays_list::after,
.holidays_list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 4px;
    width: 30px;
    pointer-events: none;
}

.holidays_list::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.holidays_list::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Button container styles */
.button_container {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-tab-active,
.nav-tab-active:focus,
.nav-tab-active:focus:active,
.nav-tab-active:hover {
    box-shadow: none !important;
}

/* Improved Loading Overlay Styles */
.loading-overlay {
    backdrop-filter: blur(2px);
    transition: all 0.3s ease-in-out;
}

.loading-overlay .loading-spinner {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Sort dropdown loading state */
select[name="orderby"] {
    transition: opacity 0.2s ease-in-out;
}

/* Smooth property grid transitions */
.property-grid {
    transition: opacity 0.3s ease-in-out;
}

.property-grid>* {
    transition: opacity 0.3s ease-in-out;
}

/* Mobile Filter Improvements */
#mobile-filter-overlay {
    z-index: 60 !important;
}

#mobile-filter-sidebar {
    z-index: 61 !important;
}

/* Ensure mobile filter scrolls properly */
#mobile-filter-sidebar .flex-1 {
    min-height: 0;
    max-height: calc(100vh - 200px);
}

/* Override any theme header z-index conflicts */
.site-header,
header.sticky {
    z-index: 50 !important;
}

/* Filter button transitions */
.location-filter-btn,
.price-filter-btn,
.guests-filter-btn,
.amenity-filter-btn,
.room-type-filter-btn,
.mobile-location-filter-btn,
.mobile-price-filter-btn,
.mobile-guests-filter-btn,
.mobile-amenity-filter-btn,
.mobile-room-type-filter-btn {
    transition: all 0.2s ease-in-out;
}

/* Mobile filter header shadow */
#mobile-filter-sidebar .sticky {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Form 7 Styling - Match Checkout Page */

/* Container styling */
.wpcf7-form {
    padding: 0;
    margin: 0;
}

.wpcf7 br {
    display: none !important;
    height: 0px !important;
}

/* Form field wrapper */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

/* Input field styling - Match checkout fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100% !important;
    padding: 0.75rem !important;
    /* py-3 px-3 */
    border: 1px solid #d1d5db !important;
    /* border-gray-300 */
    border-radius: 0.5rem !important;
    /* rounded-lg */
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #111827 !important;
    background-color: #ffffff !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    outline: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Focus states - Match checkout focus */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #E61E4D !important;
    /* ring-2 ring-airbnb-red */
    outline: none !important;
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af !important;
    /* text-gray-400 */
    opacity: 1 !important;
}

/* Textarea specific height */
.wpcf7-form textarea {
    min-height: 80px !important;
    resize: vertical !important;
}

/* Submit button styling - Match the gradient button */
.wpcf7-form input[type="submit"],
.wpcf7-form .enquiry_single {
    width: 100% !important;
    background: linear-gradient(to right, #E61E4D, #D70466) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    /* py-3 px-4 */
    border-radius: 0.5rem !important;
    /* rounded-lg */
    font-weight: 500 !important;
    /* font-medium */
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Submit button hover effect */
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .enquiry_single:hover {
    background: linear-gradient(to right, #D70466, #E61E4D) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Submit button active state */
.wpcf7-form input[type="submit"]:active,
.wpcf7-form .enquiry_single:active {
    transform: translateY(0) !important;
}

/* Error styling */
.wpcf7-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
    /* border-red-500 */
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

/* Modern Response Messages - Override Default CF7 Styling */
.wpcf7 form .wpcf7-response-output {
    margin: 0rem 0 !important;
    /* padding: 1rem !important; */
    /* border-radius: 0.75rem !important; */
    /* rounded-xl */
    border: none !important;
    font-size: 0.875rem !important;
    /* text-sm */
    font-weight: 500 !important;
    /* font-medium */
    line-height: 1.5 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    /* box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important; */
}

/* Success message styling */
.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #f0fdf4 !important;
    /* bg-green-50 */
    color: #15803d !important;
    /* text-green-700 */
    border-left: 4px solid #22c55e !important;
    /* border-l-4 border-green-500 */
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok::before {
    content: "✓" !important;
    display: inline-block !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: #22c55e !important;
    color: white !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 1.25rem !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

/* Error message styling */
.wpcf7 form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 form .wpcf7-response-output.wpcf7-acceptance-missing,
.wpcf7 form .wpcf7-response-output.wpcf7-spam-blocked,
.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ng {
    background-color: #fef2f2 !important;
    /* bg-red-50 */
    color: #dc2626 !important;
    /* text-red-600 */
    border-left: 4px solid #ef4444 !important;
    /* border-l-4 border-red-500 */
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.wpcf7 form .wpcf7-response-output.wpcf7-validation-errors::before,
.wpcf7 form .wpcf7-response-output.wpcf7-acceptance-missing::before,
.wpcf7 form .wpcf7-response-output.wpcf7-spam-blocked::before,
.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ng::before {
    content: "!" !important;
    display: inline-block !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: #ef4444 !important;
    color: white !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 1.25rem !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

/* Warning message styling */
.wpcf7 form .wpcf7-response-output.wpcf7-aborted {
    background-color: #fffbeb !important;
    /* bg-amber-50 */
    color: #d97706 !important;
    /* text-amber-700 */
    border-left: 4px solid #f59e0b !important;
    /* border-l-4 border-amber-500 */
}

.wpcf7 form .wpcf7-response-output.wpcf7-aborted::before {
    content: "⚠" !important;
    display: inline-block !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: #f59e0b !important;
    color: white !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 1.25rem !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

/* Individual field validation errors */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #dc2626 !important;
    margin-top: 0.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    display: block !important;
}

/* Spinner styling - Show inside button */
.wpcf7-form .wpcf7-spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 0 0 8px !important;
    vertical-align: middle !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top: 2px solid white !important;
    animation: spin 1s linear infinite !important;
    position: relative !important;
    top: 0 !important;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide default spinner positioning and prevent spacing */
.wpcf7-form .wpcf7-spinner {
    display: none !important;
    /* Hide default spinner to prevent spacing */
}

.wpcf7-form .wpcf7-form-control-wrap .wpcf7-spinner {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    display: none !important;
    /* Completely hide to prevent layout issues */
}

/* When form is submitting, show spinner inside button */
.wpcf7-form.submitting input[type="submit"]::after,
.wpcf7-form.submitting .enquiry_single::after {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top: 2px solid white !important;
    animation: spin 1s linear infinite !important;
    vertical-align: middle !important;
}

/* Button loading state - disable and show loading text */
.wpcf7-form.submitting input[type="submit"],
.wpcf7-form.submitting .enquiry_single {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
}

/* Warning message styling */
.wpcf7 form .wpcf7-response-output.wpcf7-display-none {
    background-color: #fefce8 !important;
    /* bg-yellow-50 */
    color: #ca8a04 !important;
    /* text-yellow-600 */
    border-left: 4px solid #eab308 !important;
    /* border-l-4 border-yellow-500 */
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Form field spacing */
.wpcf7-form p {
    margin-bottom: 1rem !important;
}

/* Remove default CF7 styling */
.wpcf7-form .wpcf7-form-control {
    max-width: none !important;
}

/* Special styling for enquiry forms in single room */
.desktop-enquiry-form .wpcf7-form,
.mobile-enquiry-form .wpcf7-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Grid layout for phone and date fields if needed */
.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wpcf7-form .form-row .wpcf7-form-control-wrap {
    margin-bottom: 0;
}

/* Date range field specific styling */
.wpcf7-form .enq-date-range {
    background-color: #ffffff !important;
}

/* Phone number field specific styling */
.wpcf7-form .phone-no {
    background-color: #ffffff !important;
}

/* Remove outline on focus for better UX */
.wpcf7-form *:focus {
    outline: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="date"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    .wpcf7-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}