/* WebHotelier Booking Form Styles */

.wh-booking-wrapper {
    width: 100%;
    max-width: 100%;
}

.wh-booking-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.45);
    padding: 20px 25px;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.wh-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 120px;
}

.wh-form-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
}

.wh-datepicker,
.wh-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.wh-select {
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.wh-datepicker:hover,
.wh-select:hover {
    border-color: #49dc95;
    background-color: #fff;
}

.wh-datepicker:focus,
.wh-select:focus {
    outline: none;
    border-color: #49dc95;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(73, 220, 149, 0.15);
}

/* Submit Button */
.wh-submit-group {
    flex: 0 0 auto;
    min-width: auto;
}

.wh-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #284458;
    background-color: #49dc95;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wh-submit-btn:hover {
    background-color: #284458;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(73, 220, 149, 0.3);
}

.wh-submit-btn:active {
    transform: translateY(0);
}

.wh-submit-btn svg {
    transition: transform 0.3s ease;
}

.wh-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .wh-booking-form {
        flex-wrap: wrap;
    }
    
    .wh-form-group {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    .wh-submit-group {
        flex: 1 1 100%;
        margin-top: 10px;
    }
    
    .wh-submit-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .wh-booking-form {
        padding: 15px 20px;
    }
    
    .wh-form-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* jQuery UI Datepicker Custom Styles */
.ui-datepicker {
    font-family: inherit;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 280px;
}

.ui-datepicker-header {
    background: none;
    border: none;
    padding: 10px 5px 15px;
}

.ui-datepicker-title {
    font-weight: 600;
    color: #333;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    top: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #f0f0f0;
}

.ui-datepicker th {
    font-weight: 600;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    padding: 8px 0;
}

.ui-datepicker td {
    padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ui-datepicker td a:hover {
    background: #f0f0f0;
}

.ui-datepicker .ui-state-active {
    background: #49dc95 !important;
    color: #fff !important;
    border: none;
}

.ui-datepicker .ui-state-highlight {
    background: #f8f9fa;
    border: 1px solid #49dc95;
}

/* Alternative: Compact Inline Style for Header Sliders */
.wh-booking-wrapper.wh-style-compact .wh-booking-form {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
}

.wh-booking-wrapper.wh-style-compact .wh-form-group label {
    color: rgba(255, 255, 255, 0.8);
}

.wh-booking-wrapper.wh-style-compact .wh-datepicker,
.wh-booking-wrapper.wh-style-compact .wh-select {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.wh-booking-wrapper.wh-style-compact .wh-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.wh-booking-wrapper.wh-style-compact .wh-datepicker:hover,
.wh-booking-wrapper.wh-style-compact .wh-select:hover,
.wh-booking-wrapper.wh-style-compact .wh-datepicker:focus,
.wh-booking-wrapper.wh-style-compact .wh-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #49dc95;
}
