/* FLUENT PLACEMENT VERSION: v1.9.0 */
:root {
  --navy:#0b1e33;
  --blue:#00537a;
  --blue2:#2e9db8;
  --gold:#f5a201;
  --bg:#f3f6f8;
  --card:#ffffff;
  --muted:#687787;
  --border:#dce4ea;
  --shadow:0 24px 70px rgba(11,35,66,.12);
  --radius:28px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  font-family:"Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(91,163,230,.18), transparent 28rem),
    radial-gradient(circle at 10% 35%, rgba(212,175,55,.10), transparent 24rem),
    var(--bg);
  color:var(--navy);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a { color:inherit; text-decoration:none; }
button, input, select, textarea { font:inherit; }

.placement-shell {
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:20px 0 70px;
}

.placement-topbar {
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  margin-bottom:26px;
  background:rgba(255,255,255,.78);
  border:1px solid var(--border);
  border-radius:999px;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  box-shadow:0 12px 36px rgba(11,35,66,.08);
}

.brand img {
  width:190px;
  max-width:48vw;
  height:auto;
  display:block;
}

.placement-topbar nav {
  display:flex;
  gap:8px;
  align-items:center;
  white-space:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
}

.placement-topbar nav::-webkit-scrollbar { display:none; }

.placement-topbar nav a {
  display:inline-flex;
  min-height:38px;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  background:rgba(91,163,230,.10);
  color:var(--navy);
  font-weight:850;
  font-size:.88rem;
}

.placement-hero {
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:26px;
  align-items:stretch;
  margin-bottom:26px;
}

.hero-copy, .hero-card, .placement-panel {
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}

.hero-copy {
  padding:42px;
}

.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  color:#347fbd;
  font-weight:950;
  letter-spacing:.08em;
  direction:ltr;
  font-size:.78rem;
}

h1, h2, h3, p { margin-top:0; }
h1 {
  font-size:clamp(2.8rem, 6vw, 5.4rem);
  line-height:1.05;
  letter-spacing:-.06em;
  margin-bottom:18px;
}
.hero-copy p {
  max-width:64ch;
  font-size:1.08rem;
  line-height:2;
  color:rgba(11,35,66,.76);
  font-weight:650;
}
.hero-pills {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.hero-pills span {
  padding:10px 14px;
  border-radius:999px;
  background:rgba(91,163,230,.12);
  border:1px solid rgba(91,163,230,.16);
  font-weight:850;
  font-size:.9rem;
}

.hero-card {
  min-height:280px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:36px;
  background:
    radial-gradient(circle at 72% 20%, rgba(124,199,255,.24), transparent 20rem),
    linear-gradient(135deg,#071526,#102a43);
  color:white;
}
.hero-card span {
  color:rgba(255,255,255,.62);
  font-weight:900;
  direction:ltr;
}
.hero-card strong {
  direction:ltr;
  font-size:clamp(2.4rem,4.6vw,4.2rem);
  letter-spacing:-.05em;
  margin:8px 0;
}
.hero-card p {
  color:rgba(255,255,255,.70);
  direction:ltr;
  line-height:1.8;
}

.placement-panel {
  padding:28px;
}

.progress-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
}
.progress-head h2 {
  font-size:clamp(1.8rem,3vw,2.7rem);
  letter-spacing:-.045em;
  margin:0;
}
.progress-meter {
  flex:0 0 220px;
  height:10px;
  border-radius:999px;
  background:rgba(11,35,66,.08);
  overflow:hidden;
}
.progress-meter span {
  display:block;
  height:100%;
  width:25%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--blue),var(--blue2));
  transition:width .3s ease;
}

.placement-step { display:none; }
.placement-step.active { display:block; animation:fadeIn .25s ease both; }

@keyframes fadeIn {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:none; }
}

.form-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}

label {
  display:grid;
  gap:8px;
  color:rgba(11,35,66,.74);
  font-weight:850;
}
label.wide { grid-column:1 / -1; }

input, select, textarea {
  width:100%;
  min-height:52px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  color:var(--navy);
  padding:0 16px;
  outline:none;
  box-shadow:0 8px 22px rgba(11,35,66,.04);
}
input:focus, select:focus, textarea:focus {
  border-color:rgba(91,163,230,.55);
  box-shadow:0 0 0 4px rgba(91,163,230,.12);
}

.note-card, .review-box {
  margin-top:18px;
  padding:18px;
  border-radius:22px;
  background:rgba(91,163,230,.09);
  border:1px solid rgba(91,163,230,.14);
  line-height:1.9;
}

.question-list {
  display:grid;
  gap:14px;
}
.question-card {
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 10px 28px rgba(11,35,66,.055);
}
.question-card h3 {
  font-size:1.05rem;
  line-height:1.8;
  margin-bottom:14px;
}
.options {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}
.option {
  cursor:pointer;
  padding:13px 14px;
  border-radius:16px;
  background:rgba(11,35,66,.035);
  border:1px solid rgba(11,35,66,.075);
  transition:.18s ease;
  font-weight:750;
}
.option:hover {
  border-color:rgba(91,163,230,.32);
  background:rgba(91,163,230,.08);
}
.option input { display:none; }
.option:has(input:checked) {
  background:rgba(91,163,230,.16);
  border-color:rgba(91,163,230,.46);
  box-shadow:0 0 0 4px rgba(91,163,230,.10);
}

.review-summary {
  display:grid;
  gap:8px;
  margin-top:16px;
  color:var(--muted);
}

.placement-actions {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:22px;
}
.primary-btn, .ghost-btn,
.primary-action, .secondary-action, .ghost-action {
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:18px;
  padding:0 22px;
  font-weight:950;
  cursor:pointer;
}
.primary-btn, .primary-action {
  background:var(--gold);
  color:#061426;
  box-shadow:0 14px 34px rgba(245,162,1,.20);
}
.ghost-btn, .ghost-action {
  background:rgba(11,35,66,.06);
  color:var(--navy);
}
.secondary-action {
  background:rgba(91,163,230,.11);
  color:var(--navy);
}

.result-card {
  padding:24px;
  border-radius:28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(124,199,255,.22), transparent 22rem),
    linear-gradient(135deg,#071526,#102a43);
  color:#fff;
}
.result-card h2 {
  direction:ltr;
  font-size:clamp(3rem,7vw,5.5rem);
  letter-spacing:-.06em;
  margin-bottom:10px;
}
.result-card p { color:rgba(255,255,255,.74); line-height:1.9; }
.score-line {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 0;
  border-top:1px solid rgba(255,255,255,.13);
  border-bottom:1px solid rgba(255,255,255,.13);
  margin:18px 0;
}
.score-line strong { direction:ltr; font-size:1.5rem; }
.result-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.result-grid article {
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.result-grid .wide { grid-column:1 / -1; }
.result-grid strong { display:block; margin-bottom:8px; }
.result-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
.save-status {
  font-size:.88rem;
  margin-top:14px;
}

.error-text {
  color:#b42318;
  background:rgba(255,230,230,.85);
  border:1px solid rgba(180,35,24,.18);
  border-radius:14px;
  padding:10px 12px;
  margin-top:12px;
  line-height:1.8;
  font-weight:800;
}

@media (max-width: 820px) {
  .placement-shell { width:min(100% - 22px, 100%); padding-top:10px; }
  .placement-topbar {
    border-radius:22px;
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .placement-topbar nav { width:100%; }
  .placement-hero { grid-template-columns:1fr; }
  .hero-card { min-height:auto; }
  .hero-copy { padding:26px 20px; }
  h1 { font-size:clamp(2.3rem,10vw,3.7rem); }
  .placement-panel { padding:18px; border-radius:24px; }
  .progress-head { flex-direction:column; align-items:stretch; }
  .progress-meter { flex:auto; width:100%; }
  .form-grid, .options, .result-grid { grid-template-columns:1fr; }
  .placement-actions { display:grid; grid-template-columns:1fr; }
  .result-actions { display:grid; grid-template-columns:1fr; }
  .result-grid .wide { grid-column:auto; }
  input, select, textarea { font-size:16px; }
}


/* FLUENT PLACEMENT v1.9.5 — CEFR quality, RTL/LTR cleanup, Bale action */
.placement-hero .hero-copy p {
  text-wrap: pretty;
}

.test-intro {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .18);
  line-height: 1.9;
  color: rgba(11,35,66,.72);
}

.test-intro strong {
  color: var(--navy);
  margin-left: 6px;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  direction: ltr;
  justify-content: flex-start;
}

.question-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(91,163,230,.11);
  border: 1px solid rgba(91,163,230,.15);
  color: #075985;
  font-size: .78rem;
  font-weight: 950;
}

.question-meta .q-number {
  direction: rtl;
  background: rgba(11,35,66,.07);
  color: var(--navy);
  min-width: 32px;
}

.question-card h3[dir="ltr"] {
  text-align: left;
  direction: ltr;
  font-weight: 900;
}

.options {
  direction: ltr;
}

.option {
  text-align: left;
  direction: ltr;
  line-height: 1.55;
}

.result-card h2 {
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 1.06;
}

.result-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.60) !important;
  font-size: .9rem;
}

.skill-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.skill-breakdown article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.skill-breakdown article div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  direction: ltr;
}

.skill-breakdown strong {
  font-size: .88rem;
}

.skill-breakdown span {
  color: rgba(255,255,255,.70);
  font-weight: 900;
}

.skill-breakdown i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.skill-breakdown b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
}

.result-grid p,
.result-card #resultSummary,
.result-card #resultPath,
.result-card #resultStrengths,
.result-card #resultFocus {
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}

.bale-action {
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:18px;
  padding:0 22px;
  font-weight:950;
  cursor:pointer;
  background: linear-gradient(180deg,#e9f0ff,#c9dcff);
  color:#0B2342;
  box-shadow:0 14px 34px rgba(91,163,230,.14);
}

@media (max-width: 900px) {
  .skill-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-pills span {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .question-card {
    padding: 16px 14px;
  }

  .question-card h3[dir="ltr"] {
    font-size: 1rem;
  }

  .skill-breakdown {
    grid-template-columns: 1fr;
  }

  .result-card h2 {
    font-size: 2.35rem;
  }
}

.consent-field{display:flex!important;align-items:flex-start;gap:10px;border:1px solid var(--line);background:#f8fbfc;border-radius:14px;padding:13px 14px;font-size:.82rem!important;line-height:1.9;color:var(--muted);font-weight:650!important}.consent-field input{width:18px!important;height:18px!important;margin-top:4px;flex:0 0 auto;accent-color:var(--blue)}.consent-field span{display:block}.consent-field a{color:var(--blue);text-decoration:underline;font-weight:800}
