/* ============================================================
   FUTURE SKILLS LAB — register.css
   Registration page. Clean, light, single column.
   ============================================================ */

:root {
  --ink: #17202e;
  --ink-soft: #5a6474;
  --line: #e4e2dc;
  --paper: #ffffff;
  --paper-2: #faf8f4;
  --blue: #1f5eff;
  --blue-dark: #1546c9;
  --blue-tint: #eef3ff;
  --yellow: #ffb400;
  --green: #0e8a4f;
  --red: #c2410c;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 760px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 620px; }
.h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 22px; }
.lead { color: var(--ink-soft); margin-bottom: 28px; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }
.dim { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost:disabled { color: var(--ink-soft); background: var(--paper-2); cursor: not-allowed; border-color: var(--line); }
.btn--block { width: 100%; }
.btn--wide { min-width: 240px; }
.btn--big { padding: 18px 26px; font-size: 1.06rem; }

.linkbtn {
  background: none; border: 0; padding: 8px 0;
  color: var(--blue); text-decoration: underline; font-size: 0.94rem;
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px; background: #0a1430; position: relative; flex: 0 0 auto;
}
.brand__mark::before {
  content: ""; position: absolute; left: 5px; right: 5px; top: 7px; height: 7px;
  background: var(--yellow); border-radius: 2px;
}
.brand__mark::after {
  content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 4px;
  background: var(--blue); border-radius: 2px;
}
.brand__txt { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand__txt b { color: var(--blue); }

.langs { display: flex; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; flex: 0 0 auto; }
.langs button {
  border: 0; background: transparent; border-radius: 6px;
  padding: 6px 10px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
}
.langs button:hover { color: var(--ink); }
.langs button.is-active { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 44px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.hero__h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); margin-bottom: 18px; }
.hero__p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 32px; font-size: 1.05rem; }
.hero__note { color: var(--ink-soft); font-size: 0.88rem; margin: 12px 0 0; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 32px; text-align: left;
}
.fact { background: var(--paper); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.fact--price { background: #fffdf5; }
.fact__k { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.fact__v { font-size: 1.05rem; font-weight: 600; }
.fact__v b { font-size: 1.35rem; }
.fact__s { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- bands ---------- */
.band { padding: 52px 0; border-top: 1px solid var(--line); }
.band--alt { background: var(--paper-2); }
.band--form { background: var(--paper-2); }

/* ticks */
.ticks li {
  position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 11px;
  color: var(--green); font-weight: 700;
}

/* day */
.day { display: grid; gap: 4px; }
.day li {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.day li:last-child { border-bottom: 0; }
.day__t { font-weight: 600; font-size: 0.9rem; color: var(--blue); padding-top: 2px; }
.day p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.day p b { color: var(--ink); font-weight: 600; }

/* price card */
.price-card {
  display: grid; grid-template-columns: 1fr 260px; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper);
}
.inc { padding: 26px 28px; }
.inc li { position: relative; padding: 8px 0 8px 26px; font-size: 0.98rem; }
.inc li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card__side {
  background: var(--paper-2); border-left: 1px solid var(--line);
  padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 4px;
}
.price { margin: 0; line-height: 1; }
.price b { font-size: 2.9rem; font-weight: 700; letter-spacing: -0.03em; }
.price span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.price__sub { font-size: 0.86rem; color: var(--ink-soft); margin: 4px 0 0; }
.price__seats { font-size: 0.86rem; margin: 8px 0 14px; }
.price__seats b { color: var(--red); }

/* ---------- form ---------- */
.f { margin-bottom: 20px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f label, .lbl { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.86rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #a9afba; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.14);
}
input.bad, select.bad, textarea.bad { border-color: var(--red); background: #fff8f4; }
textarea { resize: vertical; }
.hint { font-size: 0.86rem; color: var(--ink-soft); margin: 7px 0 0; }
.hint--center { text-align: center; margin-top: 14px; }
.err { color: var(--red); font-size: 0.86rem; font-weight: 600; margin: 6px 0 0; }
.err:empty { display: none; }

/* pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { flex: 1 1 auto; min-width: 110px; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span {
  display: block; text-align: center; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  font-size: 0.96rem; cursor: pointer; transition: all 0.12s ease;
}
.pill span:hover { border-color: #b9bfca; }
.pill input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* minor */
.minor {
  border: 1.5px solid #f0d9a8; background: #fffaf0; border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 20px;
}
.minor p { font-size: 0.95rem; }

/* checks */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; padding: 8px 0; }
.check input { margin-top: 4px; width: 19px; height: 19px; accent-color: var(--blue); flex: 0 0 auto; }
.terms {
  border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; margin-bottom: 26px;
}

/* ---------- success ---------- */
.done {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; text-align: center;
  animation: pop 0.35s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.done__mark {
  width: 54px; height: 54px; border-radius: 50%; background: #e6f6ed; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 700;
  margin: 0 auto 18px;
}
.done h3 { font-size: 1.5rem; margin-bottom: 10px; }
.done p { color: var(--ink-soft); }
.done__ref { font-size: 0.95rem; }
.done__ref b { color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; }
.done__laptop {
  background: #fffaf0; border-radius: 10px; padding: 12px 16px; font-size: 0.92rem;
  color: var(--ink) !important; margin: 22px 0 6px;
}
.pay {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 24px 0 4px; background: var(--paper-2);
}
.pay__k { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft); margin-bottom: 10px; }
.pay .hint { margin-top: 10px; }

/* ---------- location ---------- */
.loc { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
.loc__name { font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.loc__addr { color: var(--ink-soft); margin-bottom: 10px; }
.loc__time { font-size: 0.92rem; margin-bottom: 18px; }
.loc__map img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }

/* ---------- faq ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; font-weight: 400; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 16px; margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; background: var(--paper-2); }
.foot__in { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.foot__brand { font-size: 0.84rem; margin-top: 8px; }
.foot__brand b { color: var(--ink); }

/* ---------- sticky mobile CTA ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transform: translateY(120%); transition: transform 0.25s ease;
  display: none;
}
.sticky.on { transform: translateY(0); }

/* ============================================================
   ARABIC / RTL
   ============================================================ */
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Space Grotesk", sans-serif; }
html[lang="ar"] body { font-family: var(--font); }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .facts, [dir="rtl"] .loc { direction: rtl; }
[dir="rtl"] .ticks li, [dir="rtl"] .inc li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .inc li { padding-right: 26px; }
[dir="rtl"] .ticks li::before, [dir="rtl"] .inc li::before { left: auto; right: 0; }
[dir="rtl"] .price-card__side { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .price span { margin-left: 0; margin-right: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .price-card__side { border-left: 0; border-top: 1px solid var(--line); }
  [dir="rtl"] .price-card__side { border-right: 0; border-top: 1px solid var(--line); }
  .loc { grid-template-columns: 1fr; }
  .day li { grid-template-columns: 1fr; gap: 4px; }
  .sticky { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .band { padding: 42px 0; }
  .hero { padding: 40px 0 34px; }
  .f2 { grid-template-columns: 1fr; gap: 0; }
  .inc { padding: 22px 20px; }
  .btn--wide { width: 100%; }
  .pill { min-width: 0; flex: 1 1 30%; }
  .pill span { padding: 12px 8px; font-size: 0.92rem; }
  .done { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .done { animation: none; }
  .btn, .pill span, .sticky { transition: none; }
}

/* submit-level error */
.err--center { text-align: center; margin-top: 12px; }
.done__next { background: #f2f6ff; border-radius: 10px; padding: 14px 18px; color: var(--ink) !important; font-size: 0.97rem; }

/* ============================================================
   CHALLENGE CARDS — horizontal scroller
   ============================================================ */
.h3 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin: 42px 0 4px;
}
.lv__lead { margin-bottom: 18px; }
.lv {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 22px 14px;
  margin: 0 -22px;
  scrollbar-width: thin;
}
.lv::-webkit-scrollbar { height: 6px; }
.lv::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.lv__card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lv__card:hover { border-color: #b9bfca; transform: translateY(-2px); }
.lv__card picture { display: block; }
.lv__card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lv__body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 3px; }
.lv__tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint);
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
}
.lv__tag--boss { color: #a2500a; background: #fff2dd; }
.lv__body h4 { margin: 4px 0 0; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.lv__body p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.lv__card--boss { border-style: dashed; }
.lv__card--boss img { filter: saturate(0.75) brightness(0.92); }
.lv__hint { font-size: 0.84rem; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .lv__hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .lv { scroll-snap-type: none; }
  .lv__card { transition: none; }
}

/* two-column included list on wider screens */
.inc--two { columns: 2; column-gap: 30px; }
.inc--two li { break-inside: avoid; }
@media (max-width: 720px) { .inc--two { columns: 1; } }

/* "English all day" line under the schedule */
.day__eng {
  margin: 20px 0 10px;
  padding: 13px 18px;
  background: var(--blue-tint);
  border-radius: 10px;
  font-size: 0.97rem;
  color: var(--ink);
}

/* ---------- registration closed ---------- */
.closed {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  text-align: center;
}
.closed__tag {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8a6a00;
  background: #fff6e0;
  border-radius: 999px;
  padding: 6px 14px;
}
.closed__h { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 14px; }
.closed__p { color: var(--ink-soft); font-size: 1rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
.closed .btn { margin-top: 10px; }

.closedpill {
  display: inline-block;
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #8a6a00;
  background: #fff6e0;
  border: 1px solid #f2dfa8;
  border-radius: 999px;
  padding: 12px 22px;
}

[dir="rtl"] .closed__tag,
[dir="rtl"] .closedpill { letter-spacing: 0 !important; }

/* ---------- private invitation ---------- */
.invite {
  background: var(--blue-tint);
  border: 1px solid #cfdcff;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.invite__tag {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-dark);
}
.invite__p { margin: 0; font-size: 0.94rem; color: #24406f; line-height: 1.55; }

[dir="rtl"] .invite { border-left: 1px solid #cfdcff; border-right: 4px solid var(--blue); }
[dir="rtl"] .invite__tag { letter-spacing: 0 !important; }
