/* Custom CSS fixes for Crown Hotel */

/* Fix 1: Hide the black calendar icon from date input (only show golden one) */
/* Apply to both booking-form and room-booking forms */
.booking-form form .check-date input[type="date"]::-webkit-calendar-picker-indicator,
.room-booking form .check-date input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
}

.booking-form form .check-date input[type="date"]::-webkit-inner-spin-button,
.booking-form form .check-date input[type="date"]::-webkit-clear-button,
.room-booking form .check-date input[type="date"]::-webkit-inner-spin-button,
.room-booking form .check-date input[type="date"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

/* Make the entire date field clickable and show the native date picker */
.booking-form form .check-date,
.room-booking form .check-date {
    position: relative;
    cursor: pointer;
}

.booking-form form .check-date input[type="date"],
.room-booking form .check-date input[type="date"] {
    cursor: pointer;
    position: relative;
}

/* Fix 2: Prevent dropdown overlap - increase z-index and card spacing */
.room-item {
    margin-bottom: 50px !important;
    position: relative;
    z-index: 1;
}

.room-item select.form-control {
    position: relative;
    z-index: 100;
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* Add spacing to the room card container */
.room-item .ri-text {
    position: relative;
    z-index: 10;
}

/* Fix 3: Style the Complete Booking button to look more inviting */
.primary-btn {
    background: #dfa974 !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease;
    font-weight: 600 !important;
    letter-spacing: 1px;
}

.primary-btn:hover {
    background: #c89561 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 169, 116, 0.4);
}

/* Specific styling for the Complete Booking button */
button.primary-btn[type="submit"] {
    background: #dfa974 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    padding: 15px 40px !important;
    font-size: 16px !important;
    border-radius: 4px;
}

button.primary-btn[type="submit"]:hover {
    background: #c89561 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(223, 169, 116, 0.5);
}

/* Ensure form controls have proper spacing */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.form-control {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #dfa974;
    outline: none;
    box-shadow: 0 0 0 2px rgba(223, 169, 116, 0.1);
}

/* Fix date input placeholder issue */
.booking-form form .check-date input[type="date"]:invalid,
.room-booking form .check-date input[type="date"]:invalid {
    color: #999;
}

.booking-form form .check-date input[type="date"]:valid,
.room-booking form .check-date input[type="date"]:valid {
    color: #19191a;
}

/* Add pointer cursor to the calendar icon */
.booking-form form .check-date i,
.room-booking form .check-date i {
    pointer-events: none;
    z-index: 10;
}

/* Make the whole date field clickable */
.booking-form form .check-date,
.room-booking form .check-date {
    position: relative;
}

.booking-form form .check-date input[type="date"],
.room-booking form .check-date input[type="date"] {
    position: relative;
    z-index: 5;
}

/* Room Slider Styling */
.room-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    transition: background 0.3s;
}

.room-slider:hover {
    background: #d0d0d0;
}

.room-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dfa974;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.room-slider::-webkit-slider-thumb:hover {
    background: #c89561;
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(223, 169, 116, 0.5);
}

.room-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dfa974;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.room-slider::-moz-range-thumb:hover {
    background: #c89561;
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(223, 169, 116, 0.5);
}

/* Slider labels */
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.slider-labels small {
    font-size: 12px;
}

/* Room count display styling */
.room-count-display {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Room item form group spacing */
.room-item .form-group {
    margin-bottom: 15px;
}

.room-item .form-group label {
    margin-bottom: 10px;
    font-size: 14px;
}
