*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

. reservation-container {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reservation-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #1e2a4a;
    color: #ffffff;
    min-height: 100vh;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}


.reservation-container {
    width: 80%;
    background-color: #000;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: 2% 10% 2% 10%;
}


.gallery-section {
    padding: 30px 30px 20px;
    /*background: linear-gradient(180deg, #2a3660 0%, #243054 100%); */
    background:#000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-item.active .gallery-image-wrapper {
    border-color: rgba(100, 140, 255, 0.5);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    pointer-events: none;
}

.gallery-overlay.center-badge {
    bottom: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.restaurant-badge {
    background: rgba(0, 20, 60, 0.75);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
}

.bistro-logo {
    background: rgba(0, 20, 60, 0.8);
    padding: 10px 16px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-tagline {
    font-size: 6px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.gallery-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    letter-spacing: 0.3px;
}


.reservation-form {
    padding: 24px 30px 30px;
}

.form-row {
    margin-bottom: 14px;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    position: relative;
}

.form-field.full-width {
    width: 100%;
}


.form-field select,
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: #e8e6df;
    border: 2px solid rgba(100, 140, 255, 0.35);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3a4060;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(100, 140, 255, 0.6);
    box-shadow: 0 0 12px rgba(100, 140, 255, 0.15);
}

.form-field select::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #6a6e80;
    font-weight: 500;
}


.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a8ab5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}


.form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}


.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
}

.field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    z-index: 999;
}


.terms-section {
    text-align: center;
    padding: 16px 0 20px;
}

.terms-section p {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.terms-link {
    color: #6b8cff;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #8aa4ff;
}


.button-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3a5bdc 0%, #2a45b0 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 69, 176, 0.4);
}

.btn-next:hover {
    background: linear-gradient(135deg, #4568e8 0%, #3350c0 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42, 69, 176, 0.5);
}

.btn-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(42, 69, 176, 0.3);
}


::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1e2a4a;
}

::-webkit-scrollbar-thumb {
    background: #3a4a70;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5a80;
}


::selection {
    background: rgba(100, 140, 255, 0.3);
    color: #ffffff;
}


/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */

/* --- Tablet Landscape (1024px) --- */
@media (max-width: 1024px) {
    body {
        padding: 30px 16px;
    }

    .reservation-container {
        max-width: 700px;
    }

    .gallery-section {
        padding: 24px 24px 18px;
    }

    .gallery-grid {
        gap: 10px;
    }

    .reservation-form {
        padding: 20px 24px 24px;
    }
}


/* --- Tablet Portrait (768px) --- */
@media (max-width: 768px) {
    body {
        padding: 24px 14px;
        align-items: flex-start;
    }

    .reservation-container {
        max-width: 100%;
        border-radius: 14px;
    }

    .gallery-section {
        padding: 20px 20px 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-label {
        font-size: 12px;
        margin-top: 6px;
    }

    .restaurant-badge {
        font-size: 8px;
        padding: 5px 8px;
    }

    .bistro-logo {
        padding: 8px 12px;
    }

    .logo-title {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .logo-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .logo-tagline {
        font-size: 5.5px;
        letter-spacing: 1.5px;
    }

    .reservation-form {
        padding: 18px 20px 24px;
    }

    .form-field select,
    .form-field input,
    .form-field textarea {
        padding: 13px 16px;
        font-size: 14px;
        border-radius: 9px;
    }

    .form-field select {
        background-position: right 14px center;
        padding-right: 38px;
    }

    .input-with-icon input {
        padding-right: 44px;
    }

    .field-icon {
        right: 12px;
    }

    .terms-section p {
        font-size: 13px;
    }

    .btn-next {
        padding: 11px 24px;
        font-size: 14px;
        border-radius: 9px;
    }
}


/* --- Mobile (480px) --- */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    body {
        padding: 16px 10px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .reservation-container {
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    }

    .gallery-section {
        padding: 16px 16px 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-image-wrapper {
        border-radius: 6px;
        border-width: 1.5px;
    }

    .gallery-item:hover {
        transform: none;
    }

    .gallery-label {
        font-size: 11.5px;
        margin-top: 5px;
    }

    .restaurant-badge {
        font-size: 7px;
        padding: 4px 7px;
        border-radius: 3px;
        letter-spacing: 0.8px;
    }

    .bistro-logo {
        padding: 7px 10px;
        border-radius: 3px;
    }

    .logo-title {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .logo-tagline {
        font-size: 5px;
        letter-spacing: 1px;
    }

    .reservation-form {
        padding: 16px 16px 20px;
    }

    .form-row {
        margin-bottom: 12px;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-field select,
    .form-field input,
    .form-field textarea {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 8px;
        border-width: 1.5px;
    }

    .form-field select {
        background-position: right 12px center;
        padding-right: 36px;
    }

    .input-with-icon input {
        padding-right: 42px;
    }

    .field-icon {
        right: 12px;
    }

    .field-icon svg {
        width: 18px;
        height: 18px;
    }

    .form-field textarea {
        min-height: 90px;
    }

    .terms-section {
        padding: 12px 0 16px;
    }

    .terms-section p {
        font-size: 12.5px;
        line-height: 1.6;
        padding: 0 4px;
    }

    .button-row {
        padding-top: 2px;
    }

    .btn-next {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 8px;
        min-height: 48px;
    }
}


/* --- Small Mobile (360px) --- */
@media (max-width: 360px) {
    body {
        padding: 12px 8px;
    }

    .reservation-container {
        border-radius: 10px;
    }

    .gallery-section {
        padding: 14px 12px 10px;
    }

    .gallery-grid {
        gap: 6px;
    }

    .gallery-image-wrapper {
        border-radius: 5px;
    }

    .gallery-label {
        font-size: 11px;
        margin-top: 4px;
    }

    .restaurant-badge {
        font-size: 6.5px;
        padding: 3px 6px;
    }

    .bistro-logo {
        padding: 5px 8px;
    }

    .logo-title {
        font-size: 9px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .logo-tagline {
        font-size: 4.5px;
    }

    .reservation-form {
        padding: 14px 12px 18px;
    }

    .form-row {
        margin-bottom: 10px;
    }

    .form-field select,
    .form-field input,
    .form-field textarea {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .form-field select {
        padding-right: 34px;
        background-position: right 10px center;
    }

    .input-with-icon input {
        padding-right: 40px;
    }

    .field-icon {
        right: 10px;
    }

    .terms-section p {
        font-size: 12px;
    }

    .btn-next {
        padding: 13px 20px;
        font-size: 14px;
        min-height: 46px;
    }
}


/* --- Very Small Mobile (320px) --- */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 10px 6px;
    }

    .reservation-container {
        border-radius: 8px;
    }

    .gallery-section {
        padding: 12px 10px 8px;
    }

    .gallery-grid {
        gap: 5px;
    }

    .gallery-image-wrapper {
        border-radius: 4px;
    }

    .gallery-label {
        font-size: 10px;
        margin-top: 3px;
    }

    .restaurant-badge {
        font-size: 6px;
        padding: 3px 5px;
        letter-spacing: 0.5px;
    }

    .bistro-logo {
        padding: 4px 6px;
    }

    .logo-title {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .logo-tagline {
        font-size: 4px;
        letter-spacing: 0.8px;
    }

    .reservation-form {
        padding: 12px 10px 16px;
    }

    .form-row {
        margin-bottom: 8px;
    }

    .form-field select,
    .form-field input,
    .form-field textarea {
        padding: 11px 12px;
        font-size: 13px;
        border-radius: 7px;
    }

    .form-field select {
        padding-right: 32px;
        background-position: right 8px center;
    }

    .input-with-icon input {
        padding-right: 36px;
    }

    .field-icon {
        right: 8px;
    }

    .field-icon svg {
        width: 16px;
        height: 16px;
    }

    .form-field textarea {
        min-height: 80px;
    }

    .terms-section {
        padding: 10px 0 14px;
    }

    .terms-section p {
        font-size: 11px;
        line-height: 1.5;
    }

    .btn-next {
        padding: 12px 18px;
        font-size: 13px;
        min-height: 44px;
        gap: 5px;
    }

    .btn-next svg {
        width: 16px;
        height: 16px;
    }
}