/* Reservation Page Specific Styles */

.page-header {
    background: linear-gradient(135deg, var(--gw-jade-900), var(--gw-jade-700));
    color: var(--gw-white);
    text-align: center;
    padding: 200px 0 80px; /* Increased top padding to account for fixed header (120px + 80px) */
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gw-white);
}

.page-header p {
    font-size: 1.8rem;
    opacity: 0.9;
    color: var(--gw-white);
}

.reservation-section {
    padding: 4rem 0 0;
    background-color: var(--gw-parchment);
}

/* Iframe Container Styles */
.iframe-container {
    background: var(--gw-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 800px;
    position: relative;
    border: 2px solid var(--gw-gold);
}

.iframe-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

.reservation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Reservation Form */
.reservation-form-container {
    background: var(--gw-white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gw-gold);
}

.reservation-form h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--gw-umber);
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.reservation-form h2 i {
    color: var(--primary-color);
}

/* Progress Steps */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: #E1E5E9;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E1E5E9;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.progress-step.completed .step-number {
    background: #28a745;
    color: var(--white);
}

.progress-step.completed .step-number::before {
    content: '✓';
    font-weight: bold;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.form-group {
    margin-bottom: 1.5rem;
}

/* Preferences Section */
.preferences-section {
    margin-bottom: 2rem;
}

.preferences-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.preference-option {
    cursor: pointer;
}

.preference-option input[type="radio"] {
    display: none;
}

.option-card {
    background: var(--background-light);
    border: 2px solid #E1E5E9;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.preference-option input[type="radio"]:checked + .option-card {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.option-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.option-card span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.option-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Confirmation Details */
.confirmation-details {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.confirmation-details h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E1E5E9;
}

.detail-item strong {
    color: var(--text-dark);
}

.detail-item span {
    color: var(--text-light);
}

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

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.form-navigation .btn {
    min-width: 120px;
}

#nextBtn, #submitBtn {
    margin-left: auto;
}

/* Reservation Info Sidebar */
.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Hours List */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E1E5E9;
}

.hour-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    color: var(--text-dark);
}

.time {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Options */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-option:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.contact-option i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-option div {
    display: flex;
    flex-direction: column;
}

.contact-option strong {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-option span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Date Input Styling */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: var(--primary-color);
    cursor: pointer;
}

/* Form Validation */
.form-control.error {
    border-color: #dc3545;
}

.form-control.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInSlide 0.4s ease-out;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.success-message i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reservation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reservation-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 156px 0 60px; /* Increased top padding for mobile (100px + 56px) */
    }

    .page-header h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

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

    .reservation-form-container {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .preference-options {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
    }

    .form-navigation .btn {
        width: 100%;
    }

    /* Iframe responsive styles */
    .iframe-container {
        margin: 0 -20px; /* Extend to screen edges on mobile */
        border-radius: 0;
        min-height: 600px;
    }

    .iframe-container iframe {
        height: 600px;
    }

    #nextBtn, #submitBtn {
        margin-left: 0;
        order: 1;
    }

    #prevBtn {
        order: 2;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reservation-section {
        padding: 2rem 0;
    }

    .reservation-form-container {
        padding: 1.5rem;
    }

    .reservation-form h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* Iframe styles for small mobile */
    .iframe-container {
        min-height: 500px;
    }

    .iframe-container iframe {
        height: 500px;
    }

    .contact-option {
        flex-direction: column;
        text-align: center;
    }

    .contact-option i {
        margin-bottom: 0.5rem;
    }

    .hour-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* Animation for step transitions */
.form-step-enter {
    opacity: 0;
    transform: translateX(30px);
}

.form-step-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-out;
}

.form-step-exit {
    opacity: 1;
    transform: translateX(0);
}

.form-step-exit-active {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease-out;
}

/* Print Styles */
@media print {
    .reservation-info,
    .form-navigation,
    .form-progress {
        display: none;
    }

    .reservation-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
