/* --- Reservation Layout (Reference Image Structure + Dark Theme Colors) --- */

/* Inherits variables from index.css (loaded before this) */

.reservation-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-dark);
    /* Dark BG */
    position: sticky;
    top: 0;
    z-index: 100;
}

.reservation-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    /* White/Gold */
    margin: 0;
    text-align: center;
}

.reservation-header p {
    font-size: 0.8rem;
    color: var(--primary-color);
    /* Gold subtitle */
    margin: 0;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-link {
    color: var(--text-light);
    font-size: 1.4rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-container {
    padding: 0 20px 100px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filters (Squares from Image, Dark Theme) --- */
.reservation-filters {
    display: grid;
    grid-template-columns: 70px 1fr 100px;
    /* Small, Wide, Medium */
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    /* Grey label */
}

/* THE BOXES: Rectangular shape (image) but Dark (theme) */
.custom-select,
.custom-input {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    /* Glass dark */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle border */
    border-radius: 4px;
    /* Square edges like image */
    height: 45px;
    display: flex;
    align-items: center;
}

.custom-select select,
.custom-input input {
    width: 100%;
    height: 100%;
    padding: 0 12px;
    background: transparent;
    border: none;
    color: var(--text-light);
    /* White Text */
    font-family: var(--font-main);
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* Ensure dropdown options are readable */
.custom-select select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.custom-select i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    /* Gold arrow */
    pointer-events: none;
    font-size: 0.75rem;
}

/* Date Icon Invert so it's visible on dark */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

/* --- Divider --- */
.section-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 -20px 24px -20px;
    width: calc(100% + 40px);
}

/* --- Time Slots (Rectangular Grid) --- */
.time-slots-section {
    margin-bottom: 28px;
}

.time-slots-section h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* The buttons: Rectangular (image style) but Dark/Gold (theme) */
.time-slot {
    background: transparent;
    border: 1px solid rgba(224, 176, 132, 0.3);
    /* Goldish border */
    color: var(--primary-color);
    /* Gold text */
    padding: 12px 0;
    border-radius: 4px;
    /* Square edges */
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.time-slot:hover {
    background: rgba(224, 176, 132, 0.1);
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    /* Gold fill */
    color: #000;
    /* Black text */
    border-color: var(--primary-color);
    font-weight: 700;
}

/* Empty slots for unavailable times (Gray boxes) */
.empty-slot {
    background: rgba(255, 255, 255, 0.1);
    /* Light gray/inactive look on dark theme */
    border-radius: 4px;
    height: 100%;
    min-height: 48px;
    /* Match button approximate height */
    /* No border or faint border if desired */
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(224, 176, 132, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.summary-preview {
    background: rgba(224, 176, 132, 0.1);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 3px solid var(--primary-color);
}

.summary-preview p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 4px 0;
}

.summary-preview span {
    font-weight: 700;
    color: var(--primary-color);
}

/* Slots Styles */
/* Slots Styles */
.time-slot.full {
    background: #2a2a2a;
    border-color: #333;
    color: #555;
    cursor: not-allowed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: normal;
    padding: 5px;
    opacity: 1;
    /* Reset opacity to show text clearly */
    text-decoration: none;
    /* Remove strikethrough from container */
}

.time-slot.full .cross-time {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: #666;
}

.time-slot.full .label-full {
    font-size: 0.6rem;
    color: #ff4444;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Main button adjustment */
.confirm-btn {
    margin-top: 10px;
}

/* --- Success Modal Specifics --- */
.success-content {
    text-align: center;
    border-color: #4ade80;
    /* Green border */
}

.success-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 5px 0;
}

.note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Sticky Footer --- */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.btn-primary {
    width: 100%;
    max-width: 600px;
    background: var(--primary-color);
    color: #121417;
    border: none;
    padding: 14px;
    border-radius: 4px;
    /* Square edges for button too? Or slightly rounded 50px was nice. Keeping semi-square for consistency with image buttons */
    /* Actually reference image usually has rounded main button. sticking to 8px or so */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 400px) {
    .reservation-filters {
        grid-template-columns: 60px 1fr 90px;
        gap: 8px;
    }
}