/* Reservations Page Styles */

/* Reservations Hero Section */
.reservations-hero {
    background: transparent;
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reservations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 135, 26, 0.1) 0%, rgba(168, 135, 26, 0.05) 100%);
    z-index: 1;
}

.reservations-hero-content {
    position: relative;
    z-index: 2;
}

.reservations-title {
    font-family: 'Gilda Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--very-dark-green);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reservations-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}


/* Responsive Reservations Hero */
@media (max-width: 768px) {
    .reservations-hero {
        padding: 4rem 0 3rem 0;
        padding-top: 120px;
        /* Account for fixed navbar */
    }

    .reservations-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .reservations-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .reservations-hero {
        padding: 3rem 0 2rem 0;
        padding-top: 100px;
        /* Account for fixed navbar */
    }

    .reservations-title {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .reservations-subtitle {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
}

/* Reservations Page */
.reservation-form-section {
    padding: 4rem 0;
    background: var(--primary-green);
}

.reservation-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(168, 135, 26, 0.15);
    position: relative;
    overflow: hidden;
}

.reservation-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #D4AF37, var(--gold));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

.form-header h2 {
    font-family: 'Gilda Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--very-dark-green);
}

.form-header p {
    color: var(--dark-gray);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--very-dark-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    font-family: 'Noto Sans', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(168, 135, 26, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Validation feedback styles */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.validation-feedback {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(168, 135, 26, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-button {
    width: 100%;
    background: var(--very-dark-green);
    color: var(--white);
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    min-height: 44px;
}

.submit-button:hover {
    background: #A8871A;
}

/* Restaurant Info */
.restaurant-info {
    padding: 4rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.restaurant-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 135, 26, 0.02) 0%, rgba(168, 135, 26, 0.05) 100%);
    pointer-events: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(168, 135, 26, 0.15);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 135, 26, 0.1), transparent);
    transition: left 0.6s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(168, 135, 26, 0.3);
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #D4AF37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(168, 135, 26, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.info-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold), #D4AF37);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(168, 135, 26, 0.4);
}

.info-card:hover .info-icon::before {
    opacity: 1;
}

.info-card h3 {
    font-family: 'Gilda Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--very-dark-green);
}

.info-details p {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem 2rem 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--dark-gray);
}

.close:hover {
    color: var(--gold);
}

.confirmation-content i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.confirmation-content h2 {
    font-family: 'Gilda Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--very-dark-green);
}

#reservationDetails {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: left;
}

.calendar-button {
    background: #4285f4;
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.25rem;
    position: sticky;
    bottom: 0;
}

.calendar-button:hover {
    background: #3367d6;
}

/* Responsive Design for Reservations */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        /* Better spacing on mobile */
    }

    .reservation-form-container {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 90%;
    }

    /* Better mobile form field styling */
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        font-weight: 600;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        padding: 1.1rem;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reservation-form-container {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 95%;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
        border-radius: 12px;
        min-height: 48px;
        /* Larger touch targets for mobile */
        -webkit-appearance: none;
        /* Better styling on iOS */
        appearance: none;
    }

    /* Better mobile select styling */
    .form-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
        padding-right: 3rem;
    }

    .submit-button {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        min-height: 52px;
        /* Larger button for easier tapping */
        font-weight: 600;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .info-details p {
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 15% auto;
        width: 95%;
        padding: 1rem;
    }

    .confirmation-content h2 {
        font-size: 1.5rem;
    }

    .confirmation-content i {
        font-size: 3rem;
    }

    .calendar-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}