/* ================================
   PRIVATE DINING PAGE - styles8.css
================================ */

body {
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url('img/privateDining.jpg') center/cover no-repeat fixed;
    background-color: #292929;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8ec3e6;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1rem;
    color: #ccc;
}

/* Main Content - Single Column */
.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    background: rgba(18, 18, 18, 0.95);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #8ec3e6;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Lists */
.list,
.sub-list {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 0;
}

.list li,
.sub-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
}

.list li:last-child,
.sub-list li:last-child {
    border-bottom: none;
}

/* Private Dining Form */
.private-dining-form {
    background: rgba(0, 0, 0, 0.65);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

label {
    color: #8ec3e6;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Inputs & Textareas */
input,
textarea {
    padding: 0.75rem;
    background: #0e0e0e;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #8ec3e6;
    box-shadow: 0 0 6px rgba(142, 195, 230, 0.5);
    outline: none;
}

/* Date Input */
input[type="date"] {
    position: relative;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    cursor: pointer;
}

input[type="date"]::after {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #8ec3e6;
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.2rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: #8ec3e6;
    filter: invert(1);
}

/* Submit Button */
.submit-button {
    background: #8ec3e6;
    color: #0e0e0e;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    background: #327ce3;
    transform: translateY(-2px);
}

/* Time Slider */
.custom-time-slider {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #0e0e0e;
    border: 1px solid #444;
    border-radius: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.custom-time-slider::-webkit-scrollbar {
    height: 6px;
}

.custom-time-slider::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.custom-time-slider::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

.time-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: #181818;
    color: #f5f5f5;
    border: 1px solid #333;
    border-radius: 6px;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.time-btn:hover {
    background: #292929;
    color: #8ec3e6;
}

.time-btn.active {
    background: #8ec3e6;
    color: #0e0e0e;
    font-weight: bold;
    border-color: #8ec3e6;
}

/* Private Dining Slideshow */
.private-dining-slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.private-dining-slideshow .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.private-dining-slideshow .slide:nth-child(1) {
    background-image: url('img/privateDining.jpg');
    animation: slideFade1 8s infinite;
}

.private-dining-slideshow .slide:nth-child(2) {
    background-image: url('img/priv-dining2.jpg');
    animation: slideFade2 8s infinite;
}

@keyframes slideFade1 {
    0%   { opacity: 1; }
    40%  { opacity: 1; }
    50%  { opacity: 0; }
    90%  { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideFade2 {
    0%   { opacity: 0; }
    40%  { opacity: 0; }
    50%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Cascade Animation */
.cascade {
    opacity: 0;
    animation: fadeSlideDown 0.8s ease forwards;
}

.cascade.delay-1 { animation-delay: 0.2s; }
.cascade.delay-2 { animation-delay: 0.4s; }
.cascade.delay-3 { animation-delay: 0.6s; }
.cascade.delay-4 { animation-delay: 0.8s; }

@keyframes fadeSlideDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Tablet & Desktop */
@media (min-width: 769px) {
    .page-header {
        max-width: 800px;
        margin: 3rem auto 2rem;
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.2rem;
    }

    .container.split-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .section {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .list li,
    .sub-list li {
        font-size: 1rem;
    }

    .private-dining-form {
        max-width: 400px;
        margin: 0 auto;
        padding: 2rem;
    }

    .submit-button {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    input[type="date"] {
        -webkit-appearance: auto;
        -moz-appearance: auto;
        appearance: auto;
        padding: 0.75rem;
    }

    input[type="date"]::after {
        display: none;
    }
}

/* Small Screens */
@media (max-width: 768px) {
    .page-header {
        margin: 1.5rem auto 1rem;
        padding: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .container {
        max-width: 600px;
        padding: 0 0.75rem;
    }

    .section {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .list li,
    .sub-list li {
        font-size: 0.9rem;
    }

    .private-dining-form {
        padding: 1rem;
        margin-bottom: 0.75rem;
        max-width: 600px;
    }

    .submit-button {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .custom-time-slider {
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .time-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}
