/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e1e1e;
  background: #f7faff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* Header */
.header {
  background: #fff;
  padding: 10px 0;
   align-items:center;
  border-bottom: 1px solid #ddd;
  position: sticky;   /* stays at the top */
      top: 0;             /* stick to top */
      z-index: 10001;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.title {
  align-items:center;
  text-decoration: none;
  color: #015595ff;
  font-weight: 500;
}

.logo img {
  height: 50px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-link {
  text-decoration: none;
  color: #333;
}

.logout-btn {
  padding: 8px 16px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
}

/* Hero */
.hero {
  position: relative;
  height: 250px;
}

.hero-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30px;
  background: rgba(0,0,0,0.3);
  text-align: center;
}

.hero-logo {
  height: 60px;
  margin-bottom: 10px;
}

.hero-text {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

/* Center Container */
.center-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 5%;
}

.left-panel {
  width: 100%;
  max-width: 700px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.left-panel h2 {
  text-align: center;
  margin-bottom: 20px;
}

.pass-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.pass-btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid #f28500;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pass-btn:hover {
  background: #f28500;
  color: #fff;
}

.pass-message {
  margin-top: 10px;
  text-align: center;
}

.proceed-btn {
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #f28500;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Event Cards */
.events {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2 items per row */
  gap: 16px;
}
/* Responsive */

@media (max-width: 768px) {
            .events {
                grid-template-columns: repeat(2, 1fr);
            }
            .pass-buttons {
                flex-direction: column;
            }
            .pass-btn {
                width: 100%;
            }
            .selected-pass {
                flex-direction: column;
                align-items: flex-start;
            }
            #selectedProceedBtn {
                margin-left: 0;
                margin-top: 8px;
            }
            .modal-content {
                width: 95%;
                height: 85%;
            }
            .modal {
                -webkit-overflow-scrolling: auto; /* ensures touch works inside iframe */
              }
              .modal-iframe {
                  overflow: auto !important;
                  -webkit-overflow-scrolling: touch; /* smooth scroll inside iframe */
                  height: 400px; /* or use 80% of modal height */
                }

                .mobile-iframe-container {
                        position: fixed;
                        top: 60px;                 /* start below header */
                        left: 0;
                        width: 100%;
                        height: calc(100% - 60px); /* fill remaining screen */
                        z-index: 10000;
                        display: flex;
                        flex-direction: column;
                        background: #fff;
                    }

                    .mobile-iframe-container iframe {
                        flex: 1;
                        width: 100%;
                        border: none;
                        overflow: auto;
                        -webkit-overflow-scrolling: touch; /* enable smooth scrolling */
                    }

                    .mobile-iframe-container .close-btn {
                        position: absolute;
                        top: 8px;
                        font-size: 36px;
                        right: 12px;
                        font-size: 24px;
                        z-index: 10;
                        background: transparent;
                        border: none;
                        cursor: pointer;
                        padding: 8px;
                    }
        }
@media (min-width: 769px) {
    .modal-content {
        width: 900px;         /* set desired width */
        max-width: 95%;       /* prevent overflow on smaller desktops */
        height: 85%;          /* adjust height */
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .modal-iframe {
        flex: 1;
        width: 100%;
        border: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (min-width: 1024px) {   /* adjust breakpoint for desktop */
    .modal-content {
        width: 1000px;       /* wider modal */
        max-width: 95%;      /* prevent overflow */
        height: 90vh;        /* almost full viewport height */
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .modal-iframe {
        flex: 1;
        width: 100%;
        border: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (min-width: 1200px) {
    .modal-content {
        width: 1000px;
        max-width: 95%;
        height: 90%;
    }
}
.event-card {
    background-color: #f3f3f3;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.event-card.selected-card {
    border: 2px solid #f28500; /* highlight color */
    background-color: #fff3e0;  /* light background */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-info h3 {
  font-size: 14px;
}

.price {
  color: #000;
  font-weight: 300;
  font-size: 12px;
}

.venue {
  color: #f28500;
  font-size: 12px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 80%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-iframe {
    flex: 1;             /* fill remaining height */
    width: 100%;
    border: none;
    overflow: auto;
            -webkit-overflow-scrolling: touch;
/* enable scrolling inside iframe */
}

.close-btn {
    position: absolute;
    top: 8px;
    font-size: 36px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
}

/* Footer */
.footer {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}



.pass-btn.active {
  background: #f28500;       /* Orange background */
  color: #fff;               /* White text */
  border-color: #f28500;     /* Orange border */
}

#selectedPassSection {
    display: flex;           /* arrange children in a row */
    justify-content: space-between; /* space between text and button */
    align-items: center;     /* vertically center the text and button */
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fdfdfd;
}

#selectedPassText {
    margin: 0; /* remove default paragraph margin */
}

#selectedProceedBtn {
    margin-left: 16px; /* optional spacing */
}
.thank-you-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 10000;
}
.thank-you-box button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
}
.ticket-options {
  margin: 20px 0;
}
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.ticket-info {
  flex: 1;
  font-size: 14px;
  color: #111827;
}
.ticket-info .optional {
  color: #6b7280;
  font-size: 13px;
}
.ticket-price {
  font-weight: 600;
  color: #1e3a8a;
  margin-right: 10px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}
.user-info {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-info label {
  font-weight: 600;
}
.user-info input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.required {
  color: red;
}

