/* Ticket page styles */

/* Enable vertical scrolling on this page */
html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #EFD0FF !important;
}

/* Header colors are now managed dynamically by header-universal.js */

.tickets-main {
    padding-top: 0; /* No padding, image goes to top like volunteer page */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
}

/* Hero section with big image - absolute on desktop, relative on mobile */
.hero-section {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    z-index: 1; /* Behind header which has higher z-index */
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: top; /* Show more of the top of the image */
    display: block;
}

/* Static banner */
.static-banner {
    position: relative;
    margin-top: 550px; /* Position below the absolute hero image */
    width: 100%;
    padding: 0 60px;
    z-index: 10;
}

.static-banner p {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 100px;
    font-weight: 400;
    letter-spacing: -4px;
    color: #111;
    margin: 0;
    line-height: 1.1;
}

.buy-ticket-button {
    display: inline-block;
    margin-top: 50px;
    text-decoration: none;
    background-color: #111;
    color: #EFD0FF;
    font-size: 50px;
    padding: 32px 130px;
    transition: background-color 0.3s ease;
}

/* Hover effect handled by button-hover.js */

/* Newsletter section */
.newsletter-section {
    width: 100%;
    max-width: 1400px;
    text-align: left;
    padding: 60px 60px 60px 60px; /* Regular padding since banner is not fixed */
    margin-right: auto;
    margin-top: 0px; /* Reduced space after the scrolling banner */
}

.newsletter-heading {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -2px;
    color: #111;
    margin-bottom: 10px; /* Less margin */
}

.newsletter-subheading {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #111; /* Black instead of gray */
    margin-bottom: 25px; /* Less margin */
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Less gap */
    align-items: flex-start;
}

.form-group {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Less gap */
}

.form-label {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #111; /* Black instead of gray */
    text-align: left;
}

.form-input {
    padding: 20px;
    border: none;
    border-radius: 0;
    background-color: white; /* White background */
    color: #111; /* Black text */
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.5); /* Semi-transparent black placeholder */
}

.form-input:focus {
    outline: none;
    background-color: #f5f5f5; /* Slightly gray on focus */
}

.submit-button {
    padding: 20px 50px;
    background-color: #111;
    border: none;
    border-radius: 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #EFD0FF; /* Light purple text matching background */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Success message */
.success-message {
    display: none;
    padding: 20px;
    background-color: #90EE90;
    border-radius: 8px;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 18px;
    color: #111;
    margin-top: 20px;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .tickets-main {
        padding-top: 0;
    }

    /* On mobile, use relative positioning for natural document flow */
    .hero-section {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 15px 15px 0 15px;
    }

    .hero-image {
        max-height: 300px;
    }

    .static-banner {
        margin-top: 40px; /* Spacing after hero image (natural flow) */
        padding: 0 15px;
    }

    .static-banner p {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .newsletter-section {
        padding: 40px 15px; /* Match hero image margin */
        margin-top: 20px; /* Reduced space after scrolling banner on mobile */
    }

    .newsletter-heading {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .newsletter-subheading {
        font-size: 16px;
    }

    .form-input {
        font-size: 16px;
        padding: 15px;
    }

    .submit-button {
        font-size: 18px;
        padding: 15px 40px;
    }

    .buy-ticket-button {
        font-size: 28px;
        padding: 20px 0;
        text-align: center;
        white-space: nowrap;
    }
}