/* Additional styles specific to the booking page */

/* Booking page styles */

/* Ensure Font Awesome icons are displayed properly */
.fas, .fab, .far, .fa {
    display: inline-block !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900;
}
.booking-hero {
    height: 60vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                      url('images/baking_pizza.JPG');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    padding: 50px 20px 0 20px;
}

.booking-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.booking-hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.micro-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.micro-proof-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color-light);
}

.micro-proof-item i {
    margin-right: 8px;
    color: var(--accent-color-gold);
}

.start-inquiry-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--background-dark);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.start-inquiry-btn:hover {
    background-color: #6b0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Path selection styles */
.path-selection {
    padding: 60px 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.path-selection h2 {
    text-align: center;
    margin-bottom: 40px;
}

.path-selection h3 {
    text-align: center;
}

.path-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.path-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: white;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color-gold);
}

.path-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(94, 25, 20, 0.05);
}

.path-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.path-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #666;
}

.path-card .select-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.path-card .select-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.path-card:hover .select-btn i {
    transform: translateX(5px);
}

/* Form styles */
.booking-form-container {
    max-width: 100%;
    margin: 0;
    padding: 40px 20px 700px; /* Default padding */
    position: absolute;
    left: 100%; /* Start off-screen to the right */
    top: 0; /* Position at the top of the forms-container */
    opacity: 0;
    visibility: hidden;
    display: none; /* Initially hidden */
    transition: left 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
    width: 100%;
}

/* Form padding - base value for all forms */
.booking-form-container {
    padding-bottom: 700px; /* Default padding for all forms */
}

/* These values will be overridden by JavaScript */

.booking-form-container.active {
    left: 0; /* Slide in from the right */
    opacity: 1;
    visibility: visible;
    z-index: 1; /* Position above step 1 when active */
    display: block; /* Ensure the container is displayed */
}

/* For back transitions - slide out to the right */
.booking-form-container.exit-right {
    left: 100%;
    opacity: 0;
    visibility: hidden;
}

/* For back transitions - slide in from the left */
.booking-form-container.enter-left {
    left: -100%; /* Start off-screen to the left */
}

.booking-form-container.enter-left.active {
    left: 0; /* Slide in from the left */
}

/* Back button for forms */
.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-button i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    color: #6b0000;
}

.back-button:hover i {
    transform: translateX(-5px);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color-gold);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans-serif);
}

/* Override styles for checkboxes */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.form-group label input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Override display:block for labels containing checkboxes */
.form-group label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
}

/* Fallback for browsers that don't support :has() */
.form-group label[for="flexible-date"] {
    display: inline-flex;
    align-items: center;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Form layout with sidebar */
.form-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.form-main {
    flex: 3;
    min-width: 300px;
}

.form-sidebar {
    flex: 1;
    min-width: 250px;
}

.testimonial {
    background-color: #f9f5f0;
    border-left: 4px solid var(--accent-color-gold);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial cite {
    font-weight: bold;
    font-style: normal;
}

.booking-notice {
    background-color: rgba(94, 25, 20, 0.05);
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.booking-notice p {
    font-weight: bold;
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.primary-cta {
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-cta:hover {
    background-color: #6b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.secondary-cta {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.secondary-cta:hover {
    color: #6b0000;
}

/* Trust and proof section */
.trust-proof {
    background-color: #f9f5f0;
    padding: 60px 0;
}

.trust-proof-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.photo-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.photo-tile {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-tile:hover img {
    transform: scale(1.05);
}

.photo-tile .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-size: 1.1rem;
}

.review-snippet {
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-color-dark);
}

.review-snippet cite {
    display: block;
    font-style: normal;
    font-size: 1rem;
    margin-top: 10px;
    color: #666;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* Pricing estimator */
.pricing-estimator {
    padding: 60px 0;
    background-color: white;
}

.pricing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pricing-container h2 {
    margin-bottom: 30px;
}

.estimator-slider {
    width: 100%;
    margin: 40px 0;
}

.estimator-slider input {
    width: 100%;
}

.guest-count-display {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price-estimate {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--primary-color);
}

.price-disclaimer {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

/* FAQ section */
.faq-section {
    padding: 60px 0;
    background-color: #f9f5f0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 40px;
}

.accordion {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.accordion.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

/* Safety net section */
.safety-net {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.safety-net-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.safety-net-container h2 {
    margin-bottom: 30px;
}

.safety-net-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.safety-net-option {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.safety-net-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color-gold);
}

.safety-net-option i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.safety-net-option h3 {
    margin-bottom: 15px;
}

.safety-net-option p {
    margin-bottom: 20px;
    color: #666;
}

/* Success message */
.success-message {
    display: none;
    background-color: #e8f4e5;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.success-message.show {
    display: block;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-hero h1 {
        font-size: 2.5rem;
    }

    .booking-hero p {
        font-size: 1.2rem;
    }

    .micro-proof {
        gap: 15px;
    }

    .micro-proof-item {
        font-size: 0.9rem;
    }

    .form-with-sidebar {
        flex-direction: column;
    }

    .photo-tile {
        min-width: 100%;
    }

    .review-snippet {
        font-size: 1.2rem;
    }

    /* Adjust path selection and forms container on smaller screens */
    .path-selection {
        max-width: 100%;
        padding: 40px 0;
    }

    .forms-container {
        position: absolute;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: visible;
        min-height: 2000px;
        z-index: -1;
        visibility: visible;
        top: 60vh; /* Position below the booking-hero section which has height: 60vh */
        left: 0;
        right: 0;
    }

    #step3-container {
        position: absolute;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: visible;
        min-height: 2000px;
        z-index: -1;
        visibility: visible;
        top: 60vh; /* Position below the booking-hero section which has height: 60vh */
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .booking-hero h1 {
        font-size: 2rem;
    }

    .booking-hero p {
        font-size: 1rem;
    }

    .micro-proof {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .path-card {
        min-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .primary-cta, .secondary-cta {
        width: 100%;
    }

    /* Adjust path selection and forms container on very small screens */
    .path-selection {
        max-width: 100%;
        padding: 30px 0;
    }

    .forms-container {
        position: absolute;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: visible;
        min-height: 2000px;
        z-index: -1;
        visibility: visible;
        top: 60vh; /* Position below the booking-hero section which has height: 60vh */
        left: 0;
        right: 0;
    }

    #step3-container {
        position: absolute;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: visible;
        min-height: 2000px;
        z-index: -1;
        visibility: visible;
        top: 60vh; /* Position below the booking-hero section which has height: 60vh */
        left: 0;
        right: 0;
    }

    .back-button {
        font-size: 1rem;
    }
}

/* Forms container for transitions */
.forms-container {
    position: absolute;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
    min-height: 2000px;
    z-index: -1; /* Position behind step 1 when not active */
    visibility: visible;
    top: 60vh; /* Position below the booking-hero section which has height: 60vh */
    left: 0;
    right: 0;
}

/* Step 3 container styles */
#step3-container {
    position: absolute;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
    min-height: 2000px;
    z-index: -1; /* Position behind step 2 when not active */
    visibility: visible;
    top: 60vh; /* Position below the booking-hero section which has height: 60vh */
    left: 0;
    right: 0;
}

/* Spacer to prevent content below from overlapping with forms */
.forms-spacer {
    height: 200px; /* Matches the JavaScript value for Step 1 */
    width: 100%;
    display: block;
    clear: both;
}

/* Validation error message styles */
.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    position: relative;
    padding-left: 20px;
}

.error-message::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: #d32f2f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #d32f2f;
}

/* Responsive adjustments for the spacer */
@media (max-width: 768px) {
    .forms-spacer {
        height: 224px; /* Proportionally adjusted from default */
    }
}

@media (max-width: 480px) {
    .forms-spacer {
        height: 240px; /* Proportionally adjusted from default */
    }
}
