/* Application dialog + sticky apply bar (_build/t/apply.js, js/sections/apply.js).
   Shell, cards, chips, pills and type all come from summit.css through the original classes. This file adds only
   the form states and the bar's placement; every value is one summit.css already uses (source noted). */

/* Radix unmounts the closed dialog; here [hidden] does (the content's .grid would otherwise win). */
.premiere-apply [hidden] { display: none !important; }

/* Scroll lock while open: react-remove-scroll's body[data-scroll-locked] rule. */
body[data-scroll-locked] {
  overflow: hidden !important;
  overscroll-behavior: contain;
  margin-right: var(--removed-body-scroll-bar-size, 0px) !important;
}

/* ── Dialog ───────────────────────────────────────────────────────────────────────────────────────────────── */
.apply-dialog { overscroll-behavior: contain; }
.apply-form { display: contents; }
.apply-form > *, .apply-done { min-width: 0; max-width: 100%; }
#apply-title:focus { outline: none; }

/* Text fields = the dialog's info cards; the input takes the value's place in the FAQ ask input's type. */
.apply-row { align-items: stretch; }
.apply-field { cursor: text; }
.apply-field:focus-within { outline: 2px solid #e7ae4b; outline-offset: 3px; }          /* .question-input:focus-within */
.apply-field[data-invalid]:not(:focus-within) { outline: 1px solid #ea3234; }           /* footer field 1px ring, market-status red */
.apply-input {
  display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: none;
  color: #1a1a1a; font: 500 16px/24px "Suisse Intl", Arial, sans-serif;                 /* .custom-question input */
}
.apply-input::placeholder { color: #a6a6a6; opacity: 1; }                                /* .custom-question placeholder */
textarea.apply-input { resize: none; height: 72px; }
.apply-why > * { width: 100%; }
.apply-error, .apply-status { align-self: stretch; margin: 0; color: #ea3234; font: 400 14px/20px "Suisse Intl", Arial, sans-serif; }
.apply-why[data-invalid] #apply-why-hint { display: none; }
.apply-status:empty { display: none; }

/* Choice chips = FAQ tab pills, each on the dialog's 4% card fill; picked = FAQ active text on the FAQ track's 8%. */
.apply-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.apply-chips > .faq-tab {
  background: #0000000a; color: #0000007a;                                               /* inactive tab text (dialog tabs) */
  cursor: pointer; transition: background-color .2s, color .2s;                          /* .design-tab */
}
.apply-chips > .faq-tab:hover { filter: brightness(.94); }                               /* .design-button:hover */
.apply-chips > .faq-tab[data-state="active"] { background: #00000014; color: #1a1a1a; }

/* Consent: about-text type beside a small box (FAQ track fill, gold-badge radius) that shows the site's dark check. */
.apply-consent-block { display: flex; flex-direction: column; gap: 8px; }
.apply-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.apply-consent > span:last-child { flex: 1 1 0; min-width: 0; }
.apply-check {
  position: relative; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px; background: #00000014;
}
.apply-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.apply-check img { width: 12px; height: 12px; opacity: 0; transition: opacity .2s; }
.apply-check input:checked + img { opacity: 1; }
.apply-check:has(input:focus-visible) { outline: 2px solid #e7ae4b; outline-offset: 4px; }    /* button:focus-visible */
.apply-consent-block[data-invalid] .apply-check { outline: 1px solid #ea3234; }
.apply-submit[aria-busy="true"] { cursor: progress; opacity: .64; }

/* ≤767: the original phone heading/sub sizes (FAQ 666:5786 / 666:5787); fields stack. */
@media (max-width: 767px) {
  #apply-title { font-size: 32px; line-height: 40px; letter-spacing: -.64px; }
  #apply-sub { font-size: 16px; line-height: 24px; }
  .apply-row { flex-direction: column; }
  .apply-row > .apply-field { flex: none; width: 100%; }
}

/* ── Sticky apply bar: header pill group on the desktop dropdown's surface ─────────────────────────────────── */
.apply-bar {
  position: fixed; z-index: 40; left: 50%; bottom: 24px;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: #161616ee; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px #0006;                                                         /* .accounts-dropdown>.design-content */
  translate: -50% 0;
  transition: opacity .25s var(--ease-out), translate .25s var(--ease-out), visibility 0s;  /* dialog open timing */
}
.apply-bar[data-state="hidden"] {
  opacity: 0; translate: -50% 16px; visibility: hidden; pointer-events: none;
  transition: opacity .15s var(--ease-out), translate .15s var(--ease-out), visibility 0s linear .15s;
}
.apply-bar-track { gap: 4px; padding-right: 8px; }
.apply-bar-name { cursor: default; }
@media (max-width: 767px) {
  .apply-bar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); translate: none; justify-content: space-between; }
  .apply-bar[data-state="hidden"] { translate: 0 16px; }
  .apply-bar-track { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
  .apply-bar-name { padding-top: 11px; padding-bottom: 11px; }                           /* same height as the CTA */
  .apply-bar-name p { font-size: 14px; }
  .apply-bar-cta { padding-top: 11px; padding-bottom: 11px; }                             /* phone header CTA: py 11, 14px */
  .apply-bar-cta p { font-size: 14px; }
}
/* Below 390 the name doesn't fit beside the count and the CTA (summit.css's 389px step): the count centres in the track. */
@media (max-width: 389px) {
  .apply-bar-name { display: none; }
  .apply-bar-track { align-self: stretch; justify-content: center; padding-right: 0; }
}

/* Reduced motion / ?static: no movement, instant open and close. */
@media (prefers-reduced-motion: reduce) {
  .premiere-apply [data-slot="dialog-overlay"] { animation-duration: 1ms !important; }
  .apply-bar, .apply-bar[data-state="hidden"] { transition: none; translate: -50% 0; }
  .apply-chips > .faq-tab, .apply-check img { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .apply-bar, .apply-bar[data-state="hidden"] { translate: none; }
}
.premiere-apply.is-instant [data-slot], .premiere-apply.is-instant .apply-bar { transition: none !important; animation-duration: 1ms !important; }

/* Save My Seat: the finale's gold gradient, so the form ends on the same button the page opens with. */
.apply-submit {
  background: linear-gradient(180deg,#ffe3a1 0%,#f0bd57 38%,#d39a2f 70%,#a8741c 100%) !important;
  border: 1px solid rgba(255,230,170,.7);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -3px 6px rgba(90,55,5,.45),
    0 18px 40px -12px rgba(231,174,75,.65), 0 0 60px -10px rgba(231,174,75,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.apply-submit:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 6px rgba(90,55,5,.45),
    0 24px 50px -12px rgba(231,174,75,.8), 0 0 80px -8px rgba(231,174,75,.7);
}
.apply-submit p { color: #1a1206 !important; }
.apply-submit[aria-busy="true"] {
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 10px 26px -12px rgba(231,174,75,.5);
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .apply-submit, .apply-submit:hover { transition: none; transform: none; }
}
