/* Santa Media — Jobs application forms. Shared styles for the static wizard.
   Matches the landing (index.html): teal glass, TheYearofTheCamel (Arabic) + Montserrat (English). */

/* ---- Fonts ---- */
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/ArbFONTS-TheYearofTheCamel-Regular.otf') format('opentype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/ArbFONTS-TheYearofTheCamel-Medium.otf') format('opentype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/ArbFONTS-TheYearofTheCamel-Bold.otf') format('opentype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/ArbFONTS-TheYearofTheCamel-ExtraBold.otf') format('opentype');
  font-weight: 800; font-display: swap;
}

:root {
  --bg-1: #164f4b;
  --bg-2: #0b2d2d;
  --bg-3: #051818;
  --teal: #2a7a76;
  --teal-light: #6fd6cd;
  --teal-deep: #0b2d2d;
  --ink: #0f2e2c;
  --muted: #607873;
  --line: #e4ebea;
  --danger: #d64545;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: radial-gradient(circle at top left, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
body.locale-ar { font-family: 'TheYearofTheCamel', 'Montserrat', sans-serif; }

/* Ambient blurred shapes (like the landing) */
.bg-shape { position: fixed; filter: blur(90px); z-index: 0; opacity: 0.55; pointer-events: none; }
.bg-shape.s1 { top: -12%; left: -10%; width: 48vw; height: 48vw; background: radial-gradient(circle, var(--teal), transparent 70%); border-radius: 50%; }
.bg-shape.s2 { bottom: -14%; right: -12%; width: 56vw; height: 56vw; background: radial-gradient(circle, #1a4a46, transparent 70%); border-radius: 50%; }

/* ---- Layout ---- */
.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 56px 18px 80px; }

/* ---- Hero ---- */
.hero { text-align: center; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.78); margin-bottom: 22px;
}
.badge .dot { width: 16px; height: 16px; color: var(--teal-light); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.7; letter-spacing: -0.01em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--teal-light), #fff 50%, var(--teal-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .subtitle { margin: 20px auto 0; max-width: 560px; font-size: clamp(0.92rem, 2.4vw, 1.05rem); line-height: 1.9; color: rgba(255,255,255,0.78); }
.hero .meta { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: rgba(111,214,205,0.9); }
.hero .meta svg { width: 15px; height: 15px; }

/* ---- Card ---- */
.card {
  background: #fff; color: var(--ink); border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}

/* ---- Progress ---- */
.progress-head { padding: 26px 26px 0; }
.progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.progress-step { font-size: 0.85rem; font-weight: 700; color: var(--teal); }
.progress-title { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.progress-bar { height: 6px; width: 100%; border-radius: 999px; background: #eef2f1; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transition: width 0.4s ease; }

/* ---- Form body ---- */
form { padding: 30px 26px 28px; }
.step-title { font-size: clamp(1.15rem, 3.5vw, 1.4rem); font-weight: 800; margin-bottom: 5px; }
.step-subtitle { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 26px; }
.fields { display: grid; gap: 22px; }

.field > label.field-label { display: block; font-weight: 700; font-size: 0.97rem; line-height: 1.5; margin-bottom: 9px; }
.field .req { color: var(--teal); margin: 0 3px; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin: -3px 0 9px; }

.control {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 1rem;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.control::placeholder { color: #aab8b5; }
.control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,122,118,0.18); }
textarea.control { min-height: 116px; resize: vertical; line-height: 1.7; unicode-bidi: plaintext; }
.control.ltr { direction: ltr; text-align: left; }
.control.is-error { border-color: var(--danger); }

/* Radio cards */
.radiogroup { display: grid; gap: 10px; }
.radio-opt {
  display: flex; align-items: center; gap: 12px; text-align: start;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 13px 15px; cursor: pointer; transition: all 0.15s; width: 100%; font: inherit;
  color: var(--ink);
}
.radio-opt:hover { border-color: rgba(42,122,118,0.45); background: rgba(42,122,118,0.03); }
.radio-opt.selected { border-color: var(--teal); background: rgba(42,122,118,0.07); box-shadow: 0 0 0 1px var(--teal); }
.radio-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c4cfcd; flex: 0 0 auto; transition: all 0.15s; }
.radio-opt.selected .radio-mark { border-color: var(--teal); background: var(--teal); }
.radio-mark svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.radio-opt.selected .radio-mark svg { opacity: 1; }
.radio-label { font-size: 0.95rem; line-height: 1.45; color: rgba(15,46,44,0.82); }
.radio-opt.selected .radio-label { font-weight: 700; color: var(--ink); }

.field-error { margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--danger); }

/* Focus ring (keyboard) */
.control:focus-visible, .radio-opt:focus-visible, .btn:focus-visible, .btn-text:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(42,122,118,0.5);
}

/* ---- Nav ---- */
.nav { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--muted); cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.btn-text:hover { color: var(--ink); }
.btn-text[disabled] { opacity: 0.5; cursor: default; }
.btn-text svg { width: 16px; height: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; border: none; cursor: pointer;
  background: var(--teal); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(42,122,118,0.7);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: #226461; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn svg { width: 19px; height: 19px; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Success ---- */
.success { padding: 48px 30px; text-align: center; }
.success .check { margin: 0 auto 22px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: rgba(42,122,118,0.1); }
.success .check svg { width: 32px; height: 32px; color: var(--teal); }
.success h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 800; margin-bottom: 14px; }
.success p { color: rgba(15,46,44,0.72); line-height: 1.9; max-width: 420px; margin: 0 auto 30px; }
.success .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.success a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; }
.success a.primary { background: var(--teal); color: #fff; }
.success a.primary:hover { background: #226461; }
.success a.ghost { border: 1px solid var(--line); color: rgba(15,46,44,0.75); }
.success a.ghost:hover { background: #f4f7f6; }
.success a svg { width: 18px; height: 18px; }

.foot-note { margin-top: 22px; text-align: center; font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 440px; margin-left: auto; margin-right: auto; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #2a1414; color: #fff; border: 1px solid rgba(214,69,69,0.5);
  padding: 14px 20px; border-radius: 12px; max-width: 92vw; z-index: 50;
  opacity: 0; transition: all 0.3s; box-shadow: 0 12px 30px rgba(0,0,0,0.4); font-size: 0.9rem; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast strong { display: block; margin-bottom: 3px; }

@media (max-width: 560px) {
  .wrap { padding: 40px 14px 64px; }
  form { padding: 24px 18px 22px; }
  .progress-head { padding: 22px 18px 0; }
}
