/* Booking Widget Enhanced Styles */

/* Input Focus Effects */
.booking-form-wrapper input:focus,
.booking-form-wrapper select:focus {
    outline: none;
    border-color: var(--primaryColor) !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: var(--primaryColor) !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;
    }
}

/* --- Added from consolidated index.php styles --- */
#serviceTabs::-webkit-scrollbar {
    height: 4px;
}

#serviceTabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.custom-service-check .btn-check:checked+label {
    background-color: #f0f7ff !important;
    border-color: #2c5282 !important;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.1) !important;
}

.custom-service-check .btn-check:checked+label .check-indicator {
    display: block;
}

.custom-service-check .check-indicator {
    display: none;
}

.custom-service-check .btn {
    white-space: normal !important;
    text-align: left;
}

/* Balanced Modal Sizing */
#servicesModal .modal-dialog {
    max-width: 95%;
    width: 1100px;
}

#servicesModal .modal-content {
    height: auto;
    max-height: 85vh;
}

#servicesModal .modal-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#bookingForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

#bookingStep1,
#bookingStepUpsells,
#bookingStep3 {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    padding-bottom: 50px;
}

#bookingStep1::-webkit-scrollbar,
#bookingStepUpsells::-webkit-scrollbar,
#bookingStep3::-webkit-scrollbar,
#selectedServicesList::-webkit-scrollbar {
    width: 6px;
}

#bookingStep1::-webkit-scrollbar-thumb,
#bookingStepUpsells::-webkit-scrollbar-thumb,
#bookingStep3::-webkit-scrollbar-thumb,
#selectedServicesList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#bookingStep1::-webkit-scrollbar-track,
#bookingStepUpsells::-webkit-scrollbar-track,
#bookingStep3::-webkit-scrollbar-track,
#selectedServicesList::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.letter-spacing-1 {
    letter-spacing: 0.5px;
}

@media (min-width: 992px) {
    #stickySummary {
        position: sticky;
        top: 0;
        height: 100%;
        overflow: hidden;
    }
}

@media (max-width: 992px) {
    #servicesModal .modal-dialog {
        max-width: 100%;
    }

    #servicesModal .modal-content {
        height: 95vh;
    }
}

@media (max-width: 576px) {
    .modal-fullscreen-sm-down .modal-content {
        height: 100% !important;
        max-height: none !important;
        border-radius: 0 !important;
    }
}

/* Custom Select Dropdown Fix */
ul.select-options {
    display: none;
    position: absolute;
    top: 0%;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    max-height: 270px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.select-options li {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

ul.select-options li:hover {
    background-color: #f8f9fa;
    color: var(--primaryColor);
}

.booking-form-wrapper {
    overflow: visible !important;
}

.product-selector-wrapper {
    position: relative;
    z-index: 1000;
}