/*
 * Trip page: parts added at the client's request, not in the prototype. Built from the
 * prototype's own patterns so they read as part of it.
 */

/* "Dlaczego warto zapisać się już teraz" (trip in preparation). Ink band under the
   hero, where a ready trip has its key facts. */
.tp-waitlist { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 5vw, 88px); }
.tp-waitlist__inner { width: var(--page); margin-inline: auto; }
.tp-waitlist__title { margin: 0; font: 400 clamp(32px, 2.8vw, 46px)/1.035 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.tp-waitlist__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(32px, 3vw, 48px) 0 0; padding: 0; list-style: none; }
.tp-waitlist__list li { padding: 30px 32px 4px; border-left: 1px solid rgb(252 251 244 / 22%); }
.tp-waitlist__list li:first-child { padding-left: 0; border-left: 0; }
.tp-waitlist__list img { display: block; width: 56px; height: 56px; }
.tp-waitlist__list h3 { margin: 22px 0 0; font: 400 clamp(24px, 2vw, 32px)/1.05 var(--display); text-transform: uppercase; }
.tp-waitlist__list p { margin-top: 10px; max-width: 34ch; font-size: 16px; line-height: 1.55; }

/* Text about a trip in preparation, under "Co mamy w planach". */
.tp-about { padding-top: 0; }
.tp-about__inner { width: var(--page); margin-inline: auto; }
.tp-about__inner p { max-width: 720px; font-size: 18px; line-height: 1.6; }
.tp-about__inner p + p { margin-top: 1em; }

/* NTRP level in the application form: a select styled like the other fields. */
.tp-field select { width: 100%; min-height: 52px; padding: 13px 36px 13px 0; border: 0; border-bottom: 1px solid rgb(252 251 244 / 55%); border-radius: 0; background: transparent; color: var(--paper); font: 500 17px var(--body); -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 7px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.tp-field select:focus { outline: none; border-bottom: 2px solid var(--lime); }
.tp-field select option { color: var(--ink); background: var(--paper); }
.tp-field__help { align-self: flex-start; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(252 251 244 / 45%); transition: text-decoration-color var(--wp--custom--motion--fast, 180ms) var(--wp--custom--motion--ease, ease); }
.tp-field__help:hover { text-decoration-color: var(--lime); }
.tp-form .tp-field select:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; }

@media (max-width: 760px) {
  .tp-waitlist__list { grid-template-columns: minmax(0, 1fr); }
  .tp-waitlist__list li { padding: 26px 0; border-left: 0; border-top: 1px solid rgb(252 251 244 / 22%); }
  .tp-waitlist__list li:first-child { border-top: 0; padding-top: 0; }
}

/* Hidden field that only bots fill in. */
.tp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Dialog after the application is sent (client's request, 2026-10-14). Paper card on
   a dimmed ink backdrop, the heading in the design's display type. */
.tp-modal { width: min(560px, calc(100% - 32px)); max-width: none; padding: clamp(32px, 4vw, 52px); border: 0; border-top: 6px solid var(--orange); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(18 61 49 / 60%); }
.tp-modal::backdrop { background: rgb(18 61 49 / 62%); }
.tp-modal__title { margin: 0; font: 400 clamp(40px, 4vw, 60px)/1.035 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.tp-modal__title > span { display: block; }
.tp-modal__text { margin-top: 18px; font-size: 17px; line-height: 1.55; }
.tp-modal form { margin-top: 28px; }
.tp-modal .tp-btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
.tp-fields[aria-busy="true"] .tp-btn { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .tp-modal[open] { animation: rtc-modal-in var(--wp--custom--motion--lift, 240ms) var(--wp--custom--motion--ease-out, ease-out); }
  .tp-modal[open]::backdrop { animation: rtc-modal-fade var(--wp--custom--motion--lift, 240ms) ease-out; }
}
@keyframes rtc-modal-in { from { opacity: 0; translate: 0 16px; } }
@keyframes rtc-modal-fade { from { opacity: 0; } }

/* "Brak miejsc": an orange dot instead of the lime ring (client's request, 2026-10-26). */
.tp-status--full .tp-status__dot { background: var(--orange); box-shadow: 0 0 0 4px rgb(221 96 49 / 25%); }

/* Link to the privacy policy in the consent line (2026-10-30). */
.tp-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Form errors: a light bubble right above the button, its tail pointing at it. */
.tp-form__error { position: relative; justify-self: end; display: flex; gap: 14px; align-items: flex-start; width: min(100%, 420px); margin-bottom: 2px; padding: 18px 20px; background: var(--paper); color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / 70%); font-size: 15px; line-height: 1.45; }
.tp-form__error[hidden] { display: none; }
.tp-form__error::after { content: ""; position: absolute; right: 64px; bottom: -9px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--paper); }
.tp-form__error-mark { flex: 0 0 28px; display: grid; place-items: center; height: 28px; border-radius: 50%; background: var(--orange); color: var(--paper); font: 800 18px/1 var(--body); }
.tp-form__error p { margin: 0; }
.tp-form__error-title { font-weight: 800; font-size: 16px; }
.tp-form__error ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tp-form__error ul:empty { display: none; }
.tp-form__error button { min-height: 32px; padding: 5px 11px; border: 2px solid var(--orange); border-radius: 99px; background: transparent; color: var(--ink); font: 700 14px/1.3 var(--body); text-align: left; cursor: pointer; }
.tp-form .tp-form__error button:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.tp-form__submit .tp-btn { margin-left: auto; }
