:root {
  --navy: #0b1220;
  --gold: #c9a24b;
  --gold-light: #e6c876;
  --lime: #b6ff2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 50% -10%, #1a2440, #05070d 70%);
  color: #f2f2f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 48px;
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}
.topbar img {
  height: 48px;
}
.topbar h1 {
  font-size: 24px;
  letter-spacing: 2px;
  margin: 4px 0 0;
  background: linear-gradient(90deg, var(--gold-light), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar p {
  margin: 0;
  color: #9aa4c0;
  font-size: 11px;
  letter-spacing: 1px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #101a33, #0a1122);
  border: 1px solid #263457;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--gold-light);
}
.card .sub {
  color: #8b95b8;
  font-size: 12px;
  margin-bottom: 18px;
  line-height: 1.4;
}

label {
  display: block;
  font-size: 11px;
  color: #a9b2d1;
  margin: 14px 0 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2b3a63;
  background: #0d1630;
  color: #fff;
  font-size: 15px;
  outline: none;
}
input:focus {
  border-color: var(--gold);
}

.college-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.college-opt {
  border: 1px solid #2b3a63;
  background: #0d1630;
  border-radius: 10px;
  padding: 12px 4px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.college-opt.selected {
  border-color: var(--lime);
  background: rgba(182, 255, 46, 0.08);
  box-shadow: 0 0 0 1px var(--lime) inset;
}
.college-opt .ic {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}
.college-opt span.name {
  font-size: 11px;
  color: #dfe4f5;
  font-weight: 500;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.size-opt {
  border: 1px solid #2b3a63;
  background: #0d1630;
  border-radius: 8px;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: #dfe4f5;
  font-weight: 600;
}
.size-opt.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-light);
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--lime), #7de000);
  color: #0a1122;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.15s;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  filter: brightness(1.07);
}

.msg {
  margin-top: 14px;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
.msg.error {
  display: block;
  background: rgba(255, 80, 80, 0.12);
  color: #ff9c9c;
  border: 1px solid rgba(255, 80, 80, 0.3);
}
.msg.ok {
  display: block;
  background: rgba(120, 255, 120, 0.1);
  color: #a6f5a6;
  border: 1px solid rgba(120, 255, 120, 0.3);
}
.hidden {
  display: none !important;
}

/* --- Mobile Responsive Boarding Pass Canvas --- */
.pass-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.pass-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  container-type: inline-size;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  overflow: hidden;
  background: #081119;
  user-select: none;
}

.pass-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Relative text and tick sizes calculated via container query units (cqw) */
.field-passenger-name {
  position: absolute;
  left: 7.8%;
  top: 49.5%;
  font-family: 'Caveat', cursive;
  font-size: 5.75cqw;
  font-weight: 700;
  color: #12100d;
  line-height: 1;
  white-space: nowrap;
}

.field-token {
  position: absolute;
  left: 7.8%;
  top: 60.4%;
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 3cqw;
  font-weight: 800;
  letter-spacing: 0.5cqw;
  color: #12100d;
  line-height: 1;
}

.field-stub-token {
  position: absolute;
  left: 77.2%;
  top: 49.4%;
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 1.8cqw;
  font-weight: 700;
  letter-spacing: 0.25cqw;
  color: #12100d;
  line-height: 1;
}

.field-size {
  position: absolute;
  left: 88%;
  top: 73.8%;
  transform: translateX(-50%);
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 3.2cqw;
  font-weight: 800;
  color: #12100d;
  line-height: 1;
  text-align: center;
}

.college-tick-box {
  position: absolute;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.7cqw;
  font-weight: 900;
  color: #0a7d2e;
  width: 3.5cqw;
  height: 3.5cqw;
  line-height: 3.2cqw;
  text-align: center;
  border-radius: 50%;
  border: 0.32cqw solid #0a7d2e;
  background: rgba(242, 232, 213, 0.95);
  display: none;
  box-shadow: 0 0.25cqw 0.8cqw rgba(0, 0, 0, 0.25);
  transform: rotate(-6deg);
}

.college-tick-box.active {
  display: block;
}

.tick-ndc {
  left: 17.5%;
  top: 78.4%;
}

.tick-hcc {
  left: 38.8%;
  top: 78.4%;
}

.tick-joseph {
  left: 60.5%;
  top: 78.4%;
}

.actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  max-width: 520px;
}
.actions button {
  margin-top: 0;
  flex: 1;
}
.btn-secondary {
  background: #1a2440;
  color: #e6ecff;
  border: 1px solid #2b3a63;
}

/* --- Event Details Card & Route Guide --- */
.event-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(165deg, #111a33 0%, #0a1122 100%);
  border: 1px solid #26385f;
  border-radius: 18px;
  padding: 22px 18px;
  margin-top: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

.event-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--lime);
  background: rgba(182, 255, 46, 0.1);
  border: 1px solid rgba(182, 255, 46, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.event-time-box,
.event-place-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0b1429;
  border: 1px solid #1c2a4f;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.time-icon,
.place-icon {
  font-size: 22px;
  line-height: 1.2;
}

.event-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.event-date {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.event-venue {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f5;
  line-height: 1.4;
}

.map-preview-wrap {
  margin: 14px 0 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #233457;
  background: #0b1429;
}

.map-frame {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

.map-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #142040;
  color: var(--lime);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #233457;
  transition: 0.15s ease;
}
.map-open-btn:hover {
  background: #1a2a57;
}

.route-guide-section {
  border-top: 1px dashed #283a66;
  padding-top: 14px;
}

.route-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.route-box {
  background: #0b1429;
  border: 1px solid #1c2a4f;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.route-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9cb0dc;
  margin-bottom: 8px;
}

.route-tag {
  background: rgba(201, 162, 75, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 75, 0.4);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.route-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.step-chip {
  background: #142247;
  color: #e5ecff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.step-chip.highlight {
  background: rgba(182, 255, 46, 0.15);
  color: var(--lime);
  border: 1px solid rgba(182, 255, 46, 0.35);
}

.step-chip.dest {
  background: rgba(201, 162, 75, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 75, 0.5);
}

.step-arrow {
  color: #6377a8;
  font-size: 12px;
}

footer {
  margin-top: 28px;
  color: #5a6488;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 420px) {
  body {
    padding: 14px 10px 36px;
  }
  .card, .event-card {
    padding: 18px 14px;
  }
  .actions {
    flex-direction: column-reverse;
  }
}