/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    background-color: #fff;
    width: 100%;
    max-width: 1000px;
    height: 700px;
    /* Increased for more content */
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

/* Left Section: Image */
.image-section {
    flex: 1;
    position: relative;
    background: url('https://bookinghub.liquid-themes.com/service-restaurant/wp-content/uploads/sites/24/2025/07/Rectangle-54.jpg') center/cover no-repeat;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.image-overlay-text {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.image-overlay-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 10px;
}

.image-overlay-text p {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Right Section: Form */
.form-section {
    flex: 1;
    background-color: #fff;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-y: auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    padding-right: 5px;
}

.lang-switcher a {
    text-decoration: none;
    color: #717171;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.flag-img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: #211919;
    font-weight: 700;
}

.lang-switcher span {
    color: #ddd;
}

.header-group {
    text-align: center;
    margin-bottom: 25px;
}

.header-group h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #211919;
    margin-bottom: 10px;
    font-weight: 400;
}

.header-group p {
    color: #717171;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.divider {
    width: 100px;
    height: 1px;
    background-color: #211919;
    margin: 20px auto;
    position: relative;
}

.divider::after,
.divider::before {
    content: '';
    position: absolute;
    top: -2px;
    width: 4px;
    height: 4px;
    background-color: #211919;
    border-radius: 50%;
}

.divider::before {
    left: -4px;
}

.divider::after {
    right: -4px;
}

/* Form Elements */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: #211919;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

select,
input.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #211919;
    background-color: #fbfbfb;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #211919;
}

select {
    appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    pointer-events: none;
    color: #211919;
}

/* Calendar */
.calendar-container {
    width: 100%;
    border: 1px solid #211919;
    padding: 15px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #717171;
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.day-name {
    font-size: 10px;
    color: #ccc;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.day {
    font-size: 12px;
    padding: 10px 0;
    color: #ccc;
    cursor: pointer;
}

.day.current {
    color: #211919;
}

.day.selected {
    background: #211919;
    color: #fff !important;
}

/* Time Slots */
.time-slots-container {
    width: 100%;
    border: 1px solid #211919;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.time-slot {
    border: 1px solid #211919;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    background: #fbfbfb;
}

.time-slot.selected {
    background: #211919;
    color: #fff;
}

/* Guest Details */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #717171;
    margin-top: 5px;
}

.checkbox-group a {
    color: #211919;
    text-decoration: underline;
}

/* Summary */
.summary-container {
    width: 100%;
    border: 1px solid #211919;
    background: #fbfbfb;
    padding: 20px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.85rem;
}

.summary-item .label {
    color: #717171;
}

.summary-item .value {
    color: #211919;
    font-weight: 500;
    font-style: italic;
}

.summary-total {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 1rem;
}

/* Buttons */
.back-link {
    text-decoration: none;
    color: #717171;
    font-size: 0.75rem;
    align-self: flex-start;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.continue-btn {
    width: 100%;
    background-color: #211919;
    color: #fff;
    border: none;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: 0.3s;
}

.continue-btn:hover {
    background-color: #3d2f2f;
}

.time-slot.booked {
    position: relative;
    color: #ccc;
    background: #f5f5f5 !important;
    border-color: #ddd !important;
    cursor: not-allowed;
    overflow: hidden;
}

.time-slot.booked::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
    opacity: 0.6;
}

/* Table Selection Styles */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.table-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.table-item:hover {
    border-color: #211919;
    background: #fdfdfd;
}

.table-item.selected {
    border-color: #211919;
    background: #f5f4eb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-icon {
    width: 40px;
    height: 40px;
    background: #211919;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12V10C2 8.89543 2.89543 8 4 8H20C21.1046 8 22 8.89543 22 10V12H2V12ZM2 14H22V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V14ZM18 10H6V12H18V10ZM12 4C13.6569 4 15 2.65685 15 1S13.6569 -2 12 -2S9 -0.656854 9 1S10.3431 4 12 4Z' /%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.table-number {
    font-weight: bold;
    font-size: 16px;
    color: #211919;
}

.table-capacity {
    font-size: 12px;
    color: #777;
}


/* Responsiveness */
@media (max-width: 850px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .image-section {
        height: 250px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 30px 20px;
    }
}