/* ========================================
   BOOKING FORM ENHANCEMENTS
   Beautiful and Consistent Input Sizing
   ======================================== */

/* Override and enhance booking form styles */
.booking-form {
    background-color: rgba(139, 69, 19, 0.85) !important;
    padding: 40px 35px 45px 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.booking-form:hover {
    background-color: rgba(139, 69, 19, 0.95) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.booking-form h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Check Date Fields */
.booking-form form .check-date {
    position: relative;
    margin-bottom: 20px;
}

.booking-form form .check-date label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-form form .check-date input {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 15px;
    color: #19191a;
    font-weight: 500;
    padding: 0 45px 0 18px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.booking-form form .check-date input:focus {
    outline: none;
    border-color: #dfa974;
    box-shadow: 0 0 0 3px rgba(223, 169, 116, 0.2);
    transform: translateY(-1px);
}

.booking-form form .check-date input:hover {
    border-color: rgba(223, 169, 116, 0.5);
}

.booking-form form .check-date i {
    color: #dfa974;
    position: absolute;
    right: 18px;
    bottom: 17px;
    font-size: 16px;
    pointer-events: none;
}

/* Select Options */
.booking-form form .select-option {
    margin-bottom: 20px;
}

.booking-form form .select-option label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Native Select Styling */
.booking-form form .select-option select,
.booking-form form .select-option .form-select {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 15px;
    color: #19191a;
    font-weight: 500;
    padding: 0 45px 0 18px;
    background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dfa974' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.booking-form form .select-option select:focus,
.booking-form form .select-option .form-select:focus {
    outline: none;
    border-color: #dfa974;
    box-shadow: 0 0 0 3px rgba(223, 169, 116, 0.2);
    transform: translateY(-1px);
}

.booking-form form .select-option select:hover,
.booking-form form .select-option .form-select:hover {
    border-color: rgba(223, 169, 116, 0.5);
}

/* Nice Select Override (if used) */
.booking-form form .select-option .nice-select {
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    height: 50px;
    line-height: 46px;
    outline: none;
    padding-left: 18px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.booking-form form .select-option .nice-select:hover {
    border-color: rgba(223, 169, 116, 0.5);
}

.booking-form form .select-option .nice-select:focus,
.booking-form form .select-option .nice-select.open {
    border-color: #dfa974;
    box-shadow: 0 0 0 3px rgba(223, 169, 116, 0.2);
}

.booking-form form .select-option .nice-select:after {
    border-bottom: 2px solid #dfa974;
    border-right: 2px solid #dfa974;
    height: 10px;
    width: 10px;
    right: 20px;
    top: 38%;
}

.booking-form form .select-option .nice-select span {
    font-size: 15px;
    color: #19191a;
    font-weight: 500;
}

/* Submit Button */
.booking-form form button[type="submit"] {
    display: block;
    width: 100%;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #dfa974;
    border-radius: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, #dfa974 0%, #c89968 100%);
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(223, 169, 116, 0.3);
}

.booking-form form button[type="submit"]:hover {
    background: linear-gradient(135deg, #c89968 0%, #b8895c 100%);
    border-color: #c89968;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(223, 169, 116, 0.4);
}

.booking-form form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(223, 169, 116, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .booking-form {
        padding: 35px 30px 40px 30px;
    }
    
    .booking-form h3 {
        font-size: 22px;
        margin-bottom: 25px;
    }
}

@media (max-width: 991.98px) {
    .booking-form {
        margin-top: 40px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .booking-form {
        padding: 30px 25px 35px 25px;
    }
    
    .booking-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .booking-form form .check-date input,
    .booking-form form .select-option select,
    .booking-form form .select-option .form-select,
    .booking-form form .select-option .nice-select {
        height: 48px;
        font-size: 14px;
    }
    
    .booking-form form .check-date i {
        bottom: 15px;
    }
    
    .booking-form form .select-option .nice-select {
        line-height: 44px;
    }
    
    .booking-form form button[type="submit"] {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .booking-form {
        padding: 25px 20px 30px 20px;
    }
    
    .booking-form h3 {
        font-size: 18px;
    }
}

/* Focus visible for accessibility */
.booking-form form .check-date input:focus-visible,
.booking-form form .select-option select:focus-visible,
.booking-form form .select-option .form-select:focus-visible,
.booking-form form button[type="submit"]:focus-visible {
    outline: 3px solid rgba(223, 169, 116, 0.5);
    outline-offset: 2px;
}

/* Disabled state */
.booking-form form .check-date input:disabled,
.booking-form form .select-option select:disabled,
.booking-form form .select-option .form-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.booking-form form button[type="submit"]:disabled {
    background: #cccccc;
    border-color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading state for button */
.booking-form form button[type="submit"].loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.booking-form form button[type="submit"].loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner 0.8s linear infinite;
}

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

/* Input validation styles */
.booking-form form .check-date input:invalid,
.booking-form form .select-option select:invalid,
.booking-form form .select-option .form-select:invalid {
    border-color: rgba(220, 53, 69, 0.5);
}

.booking-form form .check-date input:valid,
.booking-form form .select-option select:valid,
.booking-form form .select-option .form-select:valid {
    border-color: rgba(40, 167, 69, 0.3);
}

/* Placeholder styling */
.booking-form form .check-date input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Option styling */
.booking-form form .select-option select option,
.booking-form form .select-option .form-select option {
    padding: 10px;
    font-size: 14px;
    color: #19191a;
    background: #ffffff;
}

.booking-form form .select-option select option:hover,
.booking-form form .select-option .form-select option:hover {
    background: #f8f9fa;
}
