/* ── tickets.css — homepage Tickets section + ticket modal ─────────────
   Modal rules recovered from the archived boat-party page (.bpt-*) and
   recoloured from gold/cream to the current palette. The modal sits on
   WHITE: navy text, blue accents, never cyan on white.
   VISUAL PLACEHOLDER — no pricing, capacity or payment styles remain. */

/* ── 1. TICKETS SECTION — WHITE, follows the white Upcoming Event section
   so it carries the same hairline the Work With Us section had. ────── */
.tickets-section {
  padding-block: var(--section-y);
  background: var(--bg-page);
  border-top: 1px solid var(--border-soft); /* white → white divider */
}

.tickets-section__head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.tickets-section__sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--s-4);
}

.tickets-section__btn {
  margin-top: var(--s-6);
}

/* ── 2. TICKET MODAL ─────────────────────────────────────────────────── */
.bpt-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.bpt-modal[hidden] { display: none !important; }

.bpt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 21, 48, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.bpt-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border-radius: var(--r-card);
  box-shadow: 0 32px 80px rgba(3,21,48,.28);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--s-6);
  font-family: var(--font-body);
}

.bpt-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-5);
}

.bpt-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.bpt-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--s-1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.bpt-modal__close:hover { color: var(--navy); background: var(--border-soft); }
.bpt-modal__close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 50%; }

/* Attendee block — white card separated by a border (no tint) */
.bpt-attendee {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
  /* Flex column + gap so a hidden field leaves no orphaned spacing */
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.bpt-attendee__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bpt-attendee__label {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

.bpt-attendee__remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px var(--s-3);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.bpt-attendee__remove:hover { color: #c0392b; border-color: #c0392b; }
.bpt-attendee__remove:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Fields */
.bpt-field[hidden] { display: none; }

.bpt-label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s-2);
}
.bpt-label .req { color: var(--blue); }

.bpt-input,
.bpt-select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  padding: 10px var(--s-4);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.bpt-input:focus,
.bpt-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,88,251,.15);
}
.bpt-input.is-error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224,82,82,.12);
}
.bpt-input::placeholder { color: var(--text-faint); }

/* Age bracket select — native control with a navy chevron */
.bpt-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23031530' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.bpt-error {
  display: block;
  font-size: .78rem;
  color: #e05252;
  margin-top: var(--s-1);
  min-height: 1.1em;
}

/* Add attendee */
.bpt-add-btn {
  width: 100%;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-input);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  margin-bottom: var(--s-5);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.bpt-add-btn:hover { border-color: var(--blue); color: var(--blue); }
.bpt-add-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Submit — permanently disabled placeholder. Styled inert on purpose:
   grey fill, muted text, no shadow, no hover lift, not-allowed cursor. */
.bpt-submit-btn {
  width: 100%;
  background: var(--border-soft);
  color: var(--text-muted);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px var(--s-6);
  cursor: not-allowed;
  box-shadow: none;
}
.bpt-submit-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.bpt-note {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: var(--s-3);
}
