/* Custom styles for the reservation form date picker */
.form-group.booking-date {
    position: relative;
}

/* Input fields with icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.input-with-icon .input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

/* Special positioning for textarea icon */
.input-with-icon .textarea-icon {
    top: 15px;
    transform: none;
}

/* Date input specific styles */
.date-input {
    cursor: pointer;
}

/* Hide the default calendar icon in Chrome */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}

/* Form group styling */
.form-group {
    margin-bottom: 20px;
}

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

/* Enhance select dropdowns */
.input-with-icon select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
    cursor: pointer;
}

/* Style number input */
.input-with-icon input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield; /* Standard */
    margin: 0;
}

/* Hide default spinners */
.input-with-icon input[type="number"]::-webkit-outer-spin-button,
.input-with-icon input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Guest number input styling */
.form-group.guest-number .input-with-icon {
    display: flex;
    align-items: stretch;
}

/* Number input container */
.number-input-container {
    position: relative;
    flex: 1;
}

/* Custom number input */
.number-input-container input[type="number"] {
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: #333;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 14px;
}

/* Custom increment/decrement buttons */
.number-decrement,
.number-increment {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #3498db;
    width: 40px;
    height: auto; /* Equal height as the input */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.number-decrement {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.number-increment {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.number-decrement:hover,
.number-increment:hover {
    background: #e9f5ff;
}

.number-decrement:active,
.number-increment:active {
    background: #d4ebff;
}

/* Position the users icon inside the input */
.number-input-container .input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

/* Enhance textarea */
.input-with-icon textarea {
    resize: vertical;
    min-height: 100px;
}

/* Icon hover effects */
.input-with-icon:hover .input-icon {
    color: #2980b9;
}

/* Animated focus effect */
.input-with-icon input:focus + .input-icon,
.input-with-icon select:focus + .input-icon,
.input-with-icon textarea:focus + .input-icon {
    color: #2980b9;
    transform: translateY(-50%) scale(1.1);
    transition: transform 0.2s ease;
}

/* Special animation for textarea icon */
.input-with-icon textarea:focus + .textarea-icon {
    transform: scale(1.1);
}

/* Make the datepicker more visible and attractive */
.ui-datepicker {
    padding: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-family: inherit;
    font-size: 14px;
    width: 280px;
    border-radius: 8px;
    background-color: #fff;
}

.ui-datepicker .ui-datepicker-header {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 0;
    margin: -12px -12px 8px -12px;
    width: calc(100% + 24px);
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
    font-size: 16px;
}

.ui-datepicker .ui-datepicker-prev, 
.ui-datepicker .ui-datepicker-next {
    top: 8px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
}

.ui-datepicker .ui-datepicker-prev:hover, 
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.ui-datepicker .ui-datepicker-prev span, 
.ui-datepicker .ui-datepicker-next span {
    margin-top: -8px;
    margin-left: -8px;
}

.ui-datepicker th {
    color: #555;
    font-weight: 600;
    padding: 7px 0;
    text-transform: uppercase;
    font-size: 12px;
}

.ui-datepicker .ui-datepicker-calendar {
    margin-bottom: 5px;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-default {
    background: #f8f8f8;
    border: none;
    color: #555;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: bold;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-hover {
    background: #e9f5ff;
    color: #3498db;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-active {
    background: #3498db;
    color: white;
    font-weight: bold;
}

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

.ui-datepicker .ui-datepicker-today .ui-state-default {
    border: 1px solid #3498db;
    color: #fff;
    font-weight: bold;
}

.ui-datepicker .ui-datepicker-calendar .ui-datepicker-other-month .ui-state-default {
    background: #f8f8f8;
    border: none;
    color: #555;
    font-weight: bold;
}

.ui-datepicker .ui-datepicker-buttonpane {
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 5px;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
    background: #e9f5ff;
    border-color: #3498db;
    color: #3498db;
}

/* Hide the native date picker arrow in some browsers */
input[type="text"].datepicker-input::-webkit-calendar-picker-indicator {
    display: none;
}
