/* --- Global Container --- */
.reservation-section {
    background-color: #fdfdfd;
}

.reservation-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 10px;
}

/* --- The Toggle Switch --- */
.reservation-toggle {
    display: inline-flex;
    background: #fdf4e3; /* Beige background */
    border-radius: 40px;
    padding: 5px;
    margin-top: 15px;
}

.reservation-toggle button {
    background: transparent;
    border: none;
    padding: 12px 30px;
    border-radius: 35px;
    font-weight: 600;
    color: #6c645d;
    transition: all 0.3s ease;
}

.reservation-toggle button.active {
    background: #ffffff;
    color: #5c2f21; /* Dark brownish-red for active */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Form Layout & Typography --- */
.reservation-card {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #fdf4e3;
    padding-bottom: 10px;
}

.form-group label {
    font-weight: 500;
    font-size: 15px;
    color: #3a3a3a;
    margin-bottom: 8px;
    display: block;
}

/* --- The Pill Inputs from your screenshot --- */
.custom-input {
    width: 100%;
    background-color: #fdf4e3; /* The warm beige color */
    border: 2px solid transparent;
    border-radius: 30px; /* Fully rounded pills */
    padding: 12px 20px;
    font-size: 15px;
    color: #555;
    transition: all 0.3s ease;
}

.custom-input::placeholder {
    color: #9a9286;
}

.custom-input:focus {
    outline: none;
    border-color: #d1b894; /* Soft gold/brown border on focus */
    background-color: #ffffff;
}

/* Fix for Select inputs to look like the image */
.custom-select {
    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='%23333' 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 1rem center;
    background-size: 1em;
}

textarea.custom-input {
    border-radius: 20px; /* Textareas look better slightly less pill-shaped */
    resize: vertical;
}
/* --- Custom Bootstrap Dropdown Styling --- */
.custom-dropdown-menu {
    border-radius: 20px;
    border: 1px solid #fdf4e3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    padding: 10px 0;
    background-color: #ffffff;
    margin-top: 5px !important;
}

.custom-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.custom-dropdown-menu .dropdown-item:hover, 
.custom-dropdown-menu .dropdown-item:focus {
    background-color: #fdf4e3; /* Soft beige hover */
    color: #5c2f21; /* Dark brownish-red text */
}
/* --- Styling the Optgroup Headers in the Custom Dropdown --- */
.custom-dropdown-menu .dropdown-header {
    color: #c99a45; /* Matches your golden accent color */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding-top: 10px;
}

/* Customizing the scrollbar for the long dropdown */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
    background: #fdfdfd;
    border-radius: 10px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: #d1b894; 
    border-radius: 10px;
}
/* Fix Bootstrap's default caret to align perfectly vertically */
.dropdown-toggle::after {
    vertical-align: middle;
    color: #9a9286;
}

/* --- Submit Button --- */
.custom-btn {
    background-color: #5c2f21; /* Matches the dark red/brown text tone */
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.custom-btn:hover {
    background-color: #4a251a;
    color: #fff;
}

.custom-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Alpine JS Error Text --- */
.error-text {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    padding-left: 10px;
}

/* --- Guest Increment/Decrement Counter --- */
.guest-counter-wrapper.custom-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* FIX: Adjusted padding so the total height perfectly matches your other inputs */
    padding: 8px 10px; 
    height: 50px; /* Locks in the height to align with adjacent fields */
}

.counter-btn {
    background: #ffffff;
    border: none;
    color: #5c2f21; /* Your dark brownish-red */
    font-size: 22px;
    font-weight: 600;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
    line-height: 1; /* CRITICAL: Keeps the +/- signs perfectly vertically centered */
    padding-bottom: 2px; /* Slight visual tweak for standard font vertical centering */
}

.counter-btn:hover {
    background: #5c2f21;
    color: #ffffff;
}

.counter-input {
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    width: 40px;
    outline: none;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield; /* Hides default arrows in Firefox */
}

/* Hides default arrows in Chrome/Safari */
.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
@media (max-width: 768px) {
    .reservation-card {
        padding: 30px 20px;
    }
}