@import url("../remixicon/remixicon.css");
@import url("https://fonts.googleapis.com/css?familyOpen Sans,sans-serif;ght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #2C3E50;
    --accent: #F39C12;
    --text: #2C3E50;
    --text-light: #656565;
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --border: #E9ECEF;
    --success: #27AE60;
    --error: #E74C3C;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, #FF6B35 0%, #F39C12 100%);
    --glass: rgba(255, 255, 255, 0.25);
}

body {
    font-family: Open Sans, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
    letter-spacing: 1px;
    overflow: hidden;
    /* Prevent background scrolling */
    height: 100vh;
    /* Full height viewport */
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo i {
    font-size: 1.6rem;
    background: #FFF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    width: 150px;
    border-radius: 5px
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

/* Main Content */
/* .main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
} */

.hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    padding: 2rem;
    text-align: center;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* background: url('bg.png') no-repeat center center; */
    /* background-size: cover; */
    filter: blur(10px);
    transform: scale(1.05);
    /* prevent blur edges */
    z-index: 0;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* black overlay */
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: #FFF;
    max-width: 600px;
    margin: 0 auto;
    text-transform: uppercase;
}

/* Reservation Form */
.reservation-section {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 1rem 0rem; */
    z-index: 4;
    position: relative;
    overflow-y: auto;
    /* Enable vertical scroll */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on mobile */
}

.form-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-control:hover {
    border-color: var(--primary);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '↓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control select {
    appearance: none;
    cursor: pointer;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.section-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-slot {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--surface);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 120px;
    flex: 0 0 auto;
}

.time-slot .pax-info {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.25rem;
}

.time-slot:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.time-slot.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.time-slot.selected .pax-info {
    color: rgba(255, 255, 255, 0.8);
}

.time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.time-slots .loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.time-slots .error {
    text-align: center;
    padding: 2rem;
    color: var(--error);
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.time-slots p {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.special-requests {
    grid-column: 1 / -1;
}

.special-requests textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #acacac;
    letter-spacing: 2px;
}

input::-webkit-input-placeholder {
    color: #acacac;
}

input::-moz-placeholder {
    color: #acacac;
}

input:-ms-input-placeholder {
    color: #acacac;
}

input::placeholder {
    color: #acacac;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background: gray
}

/* Reservations List */
.reservations-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reservation-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.reservation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reservation-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--text);
    /* red */
    border-radius: 999px;
    /* pill shape */
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent);
}

.reservation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.detail-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.reservation-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-header h2 {
        font-size: 2rem;
    }

    .section-slots {
        gap: 0.5rem;
    }

    .time-slot {
        min-width: 100px;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .reservation-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .reservation-details {
        grid-template-columns: 1fr;
    }

    .reservation-actions {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container,
.reservation-card {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.2);
}




.modalBtn {
    outline: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: rgba(000, 000, 000, .4);
    border-radius: 999px;
}

.modal_ {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal_content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    position: relative;
    color: var(--text);
    font-size: 1rem;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 35px;
    color: #888;
    cursor: pointer;
}


/* Modal Background */
.slideUp_modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Slide-Up Content */
.slideUp_modal_Content {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 50%;
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

/* Close Button */
.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        bottom: -100%;
        opacity: 0;
    }

    to {
        bottom: 0;
        opacity: 1;
    }
}

.privacy-wrapper {
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.privacy-text {
    margin-bottom: 10px;
    font-size: 0.875em;
    line-height: 1.4;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 5px;
    gap: 8px;
    position: relative;
    padding-left: 28px;
    user-select: none;
}

.privacy-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.privacy-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.2s, border 0.2s;
}

.privacy-checkbox input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.privacy-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-checkbox input:checked~.checkmark::after {
    display: block;
}

.privacy-checkbox a {
    text-decoration: none;
    color: var(--text)
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.restaurant_note p {
    margin: 8px 0
}


.restaurant_note {
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.875rem;
    overflow: hidden;
    position: relative;
}

.restaurant_content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 10px 15px;
}

.restaurant_note.expanded .restaurant_content {
    max-height: 1000px;
    /* Enough to show full content */
}

.toggle-arrow {
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.restaurant_note.expanded .toggle-arrow {
    transform: rotate(180deg);
}


.accordion-container {
    margin-bottom: 20px;
    overflow: hidden;
}

.accordion-arrow {
    transition: transform 0.4s ease, margin-top 0.4s ease;
    margin-top: 10px;
}

.accordion-container.open .accordion-arrow {
    transform: rotate(180deg);
}

.restaurant_note.expanded .toggle-arrow {
    transform: rotate(180deg);
    margin-top: -10px;
    /* move upward on expand */
}

.accordion-content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    padding: 10px 20px;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.accordion-container.open .accordion-content {
    max-height: 1000px;
}

.wdp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: none;
    z-index: 9999;
    align-items: flex-end;
}

.wdp-modal {
    background: #fff;
    width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
}

.wdp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.wdp-title {
    font-weight: 600;
}

.wdp-actions button {
    background: none;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.wdp-actions .wdp-cancel {
    color: #666;
}

.wdp-actions .wdp-confirm {
    color: #0d6efd;
}

.wdp-body {
    display: flex;
    gap: 8px;
    padding: 12px 16px 20px;
}

.wdp-col {
    flex: 1;
    position: relative;
    height: 220px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.wdp-col::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.wdp-col:active {
    cursor: grabbing;
}

.wdp-item {
    position: relative;
    left: 0;
    right: 0;
    height: 44px;
    text-align: center;
    scroll-snap-align: center;
    font-size: 16px;
    color: #333;
    line-height: 44px;
}

.wdp-item.disabled {
    color: #bbb;
}

.wdp-item.active {
    background: #f0f4ff;
    color: #0d6efd;
    font-weight: 600;
    transform: scale(1.03);
    transition: transform 120ms ease, color 120ms ease;
}

.wdp-col::before,
.wdp-col::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 2;
    pointer-events: none;
}

.wdp-col::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.wdp-col::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.wdp-col .wdp-highlight {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 22px);
    height: 44px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    pointer-events: none;
    z-index: 3;
}

@media (min-width: 640px) {
    .wdp-modal {
        width: 420px;
        margin: 0 auto;
    }

    .wdp-overlay {
        align-items: center;
    }

    .wdp-modal {
        border-radius: 16px;
    }
}