/* Booking Widget Enhanced Styles */

/* Input Focus Effects */
.booking-form-wrapper input:focus,
.booking-form-wrapper select:focus {
    outline: none;
    border-color: #d92027 !important;
    box-shadow: 0 0 0 0.2rem rgba(217, 32, 39, 0.15);
}

/* Valid Input State */
.booking-form-wrapper input.valid,
.booking-form-wrapper select.valid {
    border-color: #28a745 !important;
}

/* Invalid Input State */
.booking-form-wrapper input.invalid,
.booking-form-wrapper select.invalid {
    border-color: #dc3545 !important;
}

/* Button Transitions */
.booking-form-wrapper button {
    transition: all 0.3s ease;
}

.booking-form-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 32, 39, 0.3);
}

.booking-form-wrapper button:active {
    transform: translateY(0);
}

/* Link Hover Effect */
.booking-form-wrapper a {
    transition: color 0.2s ease;
}

.booking-form-wrapper a:hover {
    color: #d92027 !important;
}

/* Label Styling */
.booking-form-wrapper .form-label {
    margin-bottom: 8px;
    font-weight: 600;
}

/* Error Message Animation */
.text-danger {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Group Styling */
.booking-form-wrapper .input-group-text {
    font-weight: 600;
}

/* Select Dropdown Arrow */
.booking-form-wrapper select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .booking-form-wrapper {
        padding: 20px 15px !important;
    }

    .booking-form-wrapper h2 {
        font-size: 20px !important;
    }

    .booking-form-wrapper input,
    .booking-form-wrapper select,
    .booking-form-wrapper button {
        height: 50px !important;
        font-size: 14px !important;
    }
}

/* Loading State */
.booking-form-wrapper button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.booking-form-wrapper button.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Homepage Slider Responsive Fixes */
@media (max-width: 991px) {

    .homepage-slides-wrapper .d-table,
    .homepage-slides-wrapper .d-table-cell {
        display: block !important;
        height: auto !important;
    }

    .homepage-slides-wrapper .swiper-slide {
        height: auto !important;
        padding: 50px 0;
    }

    .homepage-slides-wrapper .col-lg-7 {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .booking-form-wrapper { 
        margin-top: 20px !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
        width: 100%;
    }

    .homepage-slides-wrapper .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}