body {
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.reserve-hero {
    text-align: center;
    padding: 60px 20px;
}

.reserve-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.reserve-hero p {
    color: #777;
    font-size: 1.1rem;
}

.reserve-section {
    padding: 0 60px 70px;
    background: #FAFAFA;
}

.reservation-form {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #E5E5E5;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.three-col .input-group {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #181818;
    box-shadow: 0 0 5px #E5E5E5;
}

textarea {
    height: 120px;
    resize: none;
}

.pre-order-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background-color: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pre-order-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #181818;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
}

.pre-icon {
    font-size: 22px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    gap: 10px;
    color: #444;
}

.checkbox-container input {
    width: auto;
}

.submit-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .reserve-hero {
        padding: 45px 20px;
    }

    .reserve-section {
        padding: 0 22px 60px;
    }

    .reservation-form {
        padding: 28px;
    }

    .form-row,
    .pre-order-box {
        flex-direction: column;
        gap: 0;
    }

    .three-col {
        gap: 0;
    }

    .pre-order-box {
        align-items: flex-start;
        gap: 15px;
    }
}

.preorder-section {
    display: none;
    margin-bottom: 30px;
    padding: 30px;
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
}

.preorder-section.active {
    display: block;
}

.preorder-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.preorder-note {
    color: #777;
    margin: 0 0 22px;
}

.preorder-tools {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.menu-search-box {
    flex: 1;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-search-box input {
    border: none;
}

.category-select {
    max-width: 220px;
}

.proceed-payment-btn {
    width: 100%;
    margin-top: 16px;
    background: #000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.payment-box {
    display: none;
}

.payment-box.show {
    display: block;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #E5E5E5;
    background: white;
    cursor: pointer;
    transition: .3s;
}

.cat-btn.active,
.cat-btn:hover {
    background: #181818;
    color: white;
    border-color: #181818;
}

.preorder-grid {
    display: grid;
    gap: 16px;
}

.preorder-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    padding: 12px;
    align-items: center;
}

.preorder-card img {
    width: 90px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.preorder-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.preorder-info span {
    color: #181818;
    font-weight: 700;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.qty-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.qty-control input {
    width: 65px;
    text-align: center;
    padding: 8px;
}

.order-summary {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 22px;
    border: 1px solid #E5E5E5;
    display: grid;
    gap: 14px;
}

.order-summary div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.order-summary span {
    color: #666;
}

.order-summary strong {
    color: #181818;
}

.payment-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 18px;
    border: 1px solid #E5E5E5;
}

.payment-box h4 {
    margin: 0 0 15px;
    color: #181818;
}

.method-row {
    display: flex;
    gap: 15px;
}

.method-card {
    flex: 1;
    border: 1px solid #E5E5E5;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
}

.method-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.method-card.active {
    border: 2px solid #181818;
    background: #FAFAFA;
}

.downpayment-field {
    margin-top: 18px;
}

.downpayment-field small {
    color: #777;
}

@media (max-width: 768px) {
    .preorder-tools,
    .method-row {
        flex-direction: column;
    }

    .category-select {
        max-width: 100%;
    }

    .preorder-card {
        grid-template-columns: 1fr;
    }

    .preorder-card img {
        width: 100%;
        height: 180px;
    }

    .order-summary div {
        flex-direction: column;
        gap: 5px;
    }
}



.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}



.preorder-grid {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 22px;
}

.preorder-grid::-webkit-scrollbar {
    width: 8px;
}

.preorder-grid::-webkit-scrollbar-thumb {
    background: #181818;
    border-radius: 999px;
}

.back-menu-btn {
    margin-bottom: 15px;
    background: #F3F3F3;
    color: #181818;
    border: 1px solid #D9D9D9;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.back-menu-btn:hover {
    background: #EDEDED;
}

.review-section {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
}

.review-section.active {
    display: block;
}

.review-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.summary-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    padding: 20px;
    display: grid;
    gap: 14px;
}

.summary-card div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.summary-card span {
    color: #666;
}

.summary-card strong {
    color: #181818;
    text-align: right;
}

.summary-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.summary-actions .submit-btn,
.summary-actions .back-menu-btn {
    flex: 1;
}

.no-results {
    display: none;
    text-align: center;
    padding: 30px;
    color: #777;
}

@media (max-width: 768px) {
    .summary-card div,
    .summary-actions {
        flex-direction: column;
    }
}

.slot-note {
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

.slot-note.available {
    color: #008000;
}

.slot-note.few {
    color: #181818;
}

.slot-note.full {
    color: #d60000;
}

.flatpickr-day.full-date {
    background: #ffdddd !important;
    color: #d60000 !important;
    border-color: #d60000 !important;
    cursor: not-allowed;
}

.flatpickr-day.few-date {
    background: #F3F3F3 !important;
    color: #181818 !important;
    border-color: #D9D9D9 !important;
}

.flatpickr-day.selected {
    background: #181818 !important;
    border-color: #181818 !important;
}

.flatpickr-day {
    position: relative;
}

.date-slot-badge {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #181818;
}

.event-dot {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: #008000;
    border-radius: 50%;
}

.flatpickr-day.full-date {
    background: #ffdddd !important;
    color: #d60000 !important;
    border-color: #d60000 !important;
    cursor: not-allowed;
}

.flatpickr-day.full-date .date-slot-badge {
    color: #d60000;
}

.flatpickr-day.few-date {
    background: #F3F3F3 !important;
    color: #181818 !important;
    border-color: #D9D9D9 !important;
}

.slot-note {
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

.slot-note.available {
    color: #008000;
}

.slot-note.few {
    color: #181818;
}

.slot-note.full {
    color: #d60000;
}

.popular-badge {
    display: inline-block;
    background: #F3F3F3;
    color: #181818;
    border: 1px solid #D9D9D9;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.branch-group,
.branch-custom-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.branch-custom-select {
    position: relative;
}

.branch-native-select {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.branch-select-trigger {
    width: 100%;
    height: 48px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;

    color: #333;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.branch-select-trigger:focus {
    outline: none;
    border-color: #181818;
    box-shadow: 0 0 5px #E5E5E5;
}

.branch-select-trigger span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-arrow {
    flex-shrink: 0;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.branch-custom-select.open .branch-arrow {
    transform: rotate(180deg);
}

.branch-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;

    display: none;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;

    padding: 6px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
}

.branch-custom-select.open .branch-options {
    display: block;
}

.branch-option {
    display: block;
    width: 100%;
    padding: 11px 12px;

    border: none;
    border-radius: 7px;
    background: transparent;

    color: #333;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-option:hover,
.branch-option.selected {
    background: #F3F3F3;
    color: #181818;
}

@media (max-width: 768px) {
    .branch-select-trigger {
        height: 46px;
        font-size: 14px;
    }

    .branch-options {
        max-height: 190px;
    }
}