.waitlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.15s ease, backdrop-filter 0.15s ease;
}
.waitlist-overlay.active {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(1px);
  pointer-events: auto;
}
.waitlist-page {
  background: #fff;
  border-radius: 0px;
  color: #26251e;
  display: flex;
  align-items: stretch;
  position: relative;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 900px;
  max-width: 90vw;
  height: 580px;
  overflow: hidden;
}
.waitlist-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px;
  /* .waitlist-inner's transform makes a stacking context, so the airport
     dropdown can't escape it on its own z-index. Lift the whole column above
     .waitlist-right or the video paints over the open list. */
  position: relative;
  z-index: 1;
}
.waitlist-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  gap: 16px;
}
.waitlist-footer a {
  font-size: 0.6875rem;
  color: #aaa;
  text-decoration: none;
}
.waitlist-footer a:hover { color: #555; }
.waitlist-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #213171;
}
.waitlist-right video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.waitlist-overlay.active .waitlist-page {
  opacity: 1;
  transform: none;
}
.waitlist-close {
  position: absolute;
  top: 20px;
  right: 24px;
  /* above .waitlist-left, which is lifted for the dropdown */
  z-index: 2;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #aaa;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.waitlist-close:hover { color: #26251e; }
.waitlist-inner {
  width: 100%;
  transform: translateY(12px);
  transition: transform 0.4s ease;
  /* fill the column so a step can distribute its own content vertically */
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.waitlist-page.active .waitlist-inner {
  transform: translateY(0);
}
.step { display: none; }
.step.active { display: block; }
/* Confirmation spreads: the message stays with the heading, the card drops to
   the bottom of the panel rather than leaving a void beneath it. */
#step-2.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#step-2 .vote-card { margin-top: auto; }
.step-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #eee;
  border-top-color: #26251e;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.step h2 {
  font-weight: 370;
  font-size: 24px;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.step .sub {
  font-size: 15px;
  color: #999;
  margin-bottom: 28px;
  line-height: 1.5;
}
.field-row {
  display: flex;
  gap: 12px;
}
.field-row input { flex: 1; }
.step input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  margin-bottom: 12px;
  background: #fff;
  color: #26251e;
}
.step input::placeholder { color: #aaa; }
.step input:focus { border-color: #999; }
.step .btn {
  width: 100%;
  padding: 13px;
  background: #26251e;
  color: #fff;
  border: none;
  border-radius: 0px;
  font-family: inherit;
  font-weight: 370;
  font-size: 15px;
  cursor: pointer;
  margin-top: 4px;
}

.combo {
  position: relative;
  margin-bottom: 12px;
}
.combo .combo-input {
  margin-bottom: 0;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.combo-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 244px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #999;
  border-top: none;
  list-style: none;
  display: none;
}
.combo.open .combo-list { display: block; }
.combo-option {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  color: #26251e;
}
.combo-option.active { background: #f2f2f2; }
.combo-option[aria-selected="true"] { font-weight: 500; }
.combo-empty {
  padding: 10px 14px;
  font-size: 15px;
  color: #aaa;
}

.vote-card {
  background: #26251e;
  color: #fff;
  padding: 22px 24px 18px;
  margin-top: 24px;
  display: none;
}
.vote-card.show { display: block; }
.vote-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.vote-card .rank-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
/* code and city stay together as one label, pushed to the far edge so the
   number owns the left and the airport owns the right */
.vote-card .who {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
}
.vote-card .rank {
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.vote-card .code {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.vote-card .city {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.vote-card .bar {
  height: 3px;
  background: rgba(255,255,255,0.16);
  margin: 18px 0 10px;
}
.vote-card .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transition: width 0.6s ease 0.2s;
}
.vote-card .meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
/* Looks like the rest of the stamp; only the cursor gives away that it acts. */
.stamp-copy {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.stamp-copy:hover { color: rgba(255,255,255,0.75); }
.vote-card .stamp {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.other-note {
  display: none;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  margin: -4px 0 12px;
}
.other-note.show { display: block; }

.field-error {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: #a5453a;
  margin: -4px 0 12px;
}
.field-error.show { display: block; }

@media (max-width: 768px) {
  .waitlist-page {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
    max-width: calc(100vw - 40px);
    overflow-y: auto;
  }
  .waitlist-left {
    padding: 20px;
  }
  .waitlist-right {
    position: relative;
    height: 240px;
    flex: none;
  }
}
