/* The courier side of the OBC programme.
 *
 * Two audiences share the OBC subject and they want opposite things. A client
 * on guide-obc.html wants to know it will arrive; a frequent flyer here wants
 * to know whether they qualify and what they get. Mixing them on one page
 * serves neither, which is why this is its own page rather than a section.
 *
 * The requirements are shown *before* the form, deliberately. A long form that
 * ends in "sorry, you needed a passport valid for six months" wastes the
 * applicant's time and fills the desk's queue with people who cannot be used.
 */

body.join-obc-page { background: #F5F3EE; }

.jo-wrap { width: min(calc(100% - 44px), 1120px); margin: 0 auto; }

/* --- opening ------------------------------------------------------------- */
.jo-head { position: relative; overflow: hidden; background: #0B0D0F; color: #F5F4F0;
  padding: clamp(52px, 7vw, 96px) 0 clamp(64px, 8vw, 108px); }
.jo-head__media { position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  filter: grayscale(.6) brightness(.34); }
.jo-head::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,13,15,.94) 0%, rgba(11,13,15,.8) 40%, rgba(11,13,15,.4) 78%); }
.jo-head__inner { position: relative; z-index: 2; }
.jo-head__kicker { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: #C8A96A; }
.jo-head__title { margin: 14px 0 0; max-width: 17ch; font-family: Newsreader, Georgia, serif;
  font-weight: 400; font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -.022em; }
.jo-head__lede { margin: 18px 0 0; max-width: 56ch; font-size: 1.02rem; line-height: 1.72;
  color: rgba(245,244,240,.78); }
.jo-head__facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 28px 0 0; padding: 0; list-style: none; }
.jo-head__facts li { display: flex; flex-direction: column; gap: 2px; }
.jo-head__facts b { font-family: Newsreader, Georgia, serif; font-size: 1.5rem; color: #F5F4F0; font-weight: 400; }
.jo-head__facts span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(245,244,240,.6); }

/* --- sections ------------------------------------------------------------ */
.jo-section { padding: clamp(44px, 5.5vw, 74px) 0; }
.jo-section--tight { padding-top: 0; }
.jo-kicker { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: #806536; }
.jo-h2 { margin: 12px 0 0; max-width: 22ch; font-family: Newsreader, Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.018em; color: #0B0D0F; }
.jo-lede { margin: 14px 0 0; max-width: 62ch; font-size: .98rem; line-height: 1.72; color: #4B5056; }

.jo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0;
  padding: 0; list-style: none; counter-reset: jo; }
.jo-steps li { counter-increment: jo; padding: 20px; border: 1px solid rgba(11,13,15,.12);
  border-radius: 12px; background: #fff; }
.jo-steps li::before { content: counter(jo, decimal-leading-zero); display: block; margin-bottom: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .72rem; font-weight: 700; color: #806536; }
.jo-steps b { display: block; font-size: .98rem; color: #0B0D0F; }
.jo-steps p { margin: 7px 0 0; font-size: .86rem; line-height: 1.6; color: #5F6469; }

/* --- requirements, before the form --------------------------------------- */
.jo-req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px;
  margin: 26px 0 0; padding: 0; list-style: none; }
.jo-req li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem;
  line-height: 1.6; color: #2D3238; }
.jo-req svg { flex: none; margin-top: 3px; color: #3F7D58; }
.jo-note { margin: 26px 0 0; padding: 18px 20px; border-left: 3px solid #C8A96A;
  background: rgba(200,169,106,.1); font-size: .88rem; line-height: 1.72; color: #4B5056; }
.jo-note b { color: #0B0D0F; }

/* --- the form ------------------------------------------------------------ */
.jo-form-band { background: #0B0D0F; padding: clamp(44px, 5.5vw, 76px) 0 clamp(56px, 7vw, 92px); }
.jo-form-band .jo-kicker { color: #C8A96A; }
.jo-form-band .jo-h2 { color: #F5F4F0; }
.jo-form-band .jo-lede { color: rgba(245,244,240,.74); }

.jo-card { margin: 30px 0 0; padding: clamp(24px, 3vw, 38px); border-radius: 18px;
  background: #FCFBF8; box-shadow: 0 30px 70px rgba(0,0,0,.4); }

.jo-prog { margin: 0 0 24px; }
.jo-prog__track { position: relative; height: 2px; border-radius: 999px; background: rgba(11,13,15,.12); }
.jo-prog__track i { position: absolute; inset: 0 auto 0 0; width: 33.33%; border-radius: 999px;
  background: linear-gradient(90deg, #C8A96A, #E6CE9B); transition: width .5s cubic-bezier(.22,.9,.24,1); }
.jo-prog__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 13px 0 0;
  padding: 0; list-style: none; }
.jo-prog__list li { display: flex; align-items: baseline; gap: 9px; font-size: .82rem;
  font-weight: 700; color: #A9A296; transition: color .25s; }
.jo-prog__list li b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .7rem; }
.jo-prog__list li.is-on { color: #0B0D0F; }
.jo-prog__list li.is-on b { color: #806536; }

[data-jo-step][hidden] { display: none; }
[data-jo-step] { animation: jo-in .36s cubic-bezier(.22,.9,.24,1) both; }
@keyframes jo-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.jo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.jo-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jo-f--wide { grid-column: 1 / -1; }
.jo-f label { font-size: .68rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: #6B7076; }
.jo-f label em { font-style: normal; color: #A2402F; }
.jo-f input, .jo-f select, .jo-f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(11,13,15,.16);
  border-radius: 10px; background: #fff; font: inherit; font-size: .98rem; color: #0B0D0F;
  transition: border-color .18s, box-shadow .18s; }
.jo-f textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.jo-f input:focus, .jo-f select:focus, .jo-f textarea:focus {
  outline: none; border-color: #C8A96A; box-shadow: 0 0 0 3px rgba(200,169,106,.26); }
.jo-f input::placeholder, .jo-f textarea::placeholder { color: #ADA79B; }
.jo-hint { font-size: .78rem; line-height: 1.6; color: #6B7076; }

/* Declarations are checkboxes because each one is a separate statement the
   applicant is making about themselves — not a single "I agree" that buries
   six different commitments in one tick. */
.jo-checks { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 0; }
.jo-check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem;
  line-height: 1.6; color: #2D3238; cursor: pointer; }
.jo-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #806536; cursor: pointer; }
.jo-check span small { display: block; margin-top: 3px; font-size: .8rem; color: #6B7076; }

.jo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 0;
  padding-top: 22px; border-top: 1px solid rgba(11,13,15,.1); }
.jo-next, .jo-send { display: inline-flex; align-items: center; gap: 11px; padding: 15px 30px;
  border: 0; border-radius: 999px; background: #0B0D0F; color: #F5F4F0; font: inherit;
  font-size: .95rem; font-weight: 800; cursor: pointer; transition: background .18s, transform .18s; }
.jo-next:hover, .jo-send:hover { background: #C8A96A; color: #14171B; transform: translateY(-1px); }
.jo-back { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: #5F6469;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jo-back:hover { color: #0B0D0F; }

.jo-done { padding: 26px; border: 1px solid rgba(63,125,88,.42); border-radius: 14px; background: #F2F7F3; }
.jo-done[hidden] { display: none; }
.jo-done strong { display: block; font-size: 1.1rem; color: #0B0D0F; }
.jo-done p { margin: 10px 0 0; font-size: .9rem; line-height: 1.72; color: #3F4A42; }
.jo-done code { font-family: "IBM Plex Mono", ui-monospace, monospace; background: rgba(11,13,15,.06);
  padding: 2px 7px; border-radius: 4px; color: #0B0D0F; }

@media (max-width: 900px) {
  .jo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jo-req { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jo-steps { grid-template-columns: 1fr; }
  .jo-grid { grid-template-columns: 1fr; }
  .jo-prog__list { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-jo-step] { animation: none; }
  .jo-prog__track i, .jo-next, .jo-send { transition: none; }
}
