/* Crownsmere Estate — international student page (English and Arabic).
   Uses the tokens, buttons and form styles from style.css. */

/* ---------- Language switch ---------- */
.student-language-bar { display: flex; justify-content: flex-end; padding-top: 16px; }
.lang-switch { display: inline-flex; padding: 3px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 14px/1 var(--sans); color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[lang="ar"] { font-family: var(--arabic); font-size: 15px; }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Layout: introduction, form, then the good-to-know notes ---------- */
.stu { display: grid; gap: 24px; grid-template-areas: "intro" "form" "advice"; padding-top: 20px; padding-bottom: var(--section); }
.stu-intro { grid-area: intro; }
.stu-intro h1 { margin-bottom: 16px; font-size: clamp(40px, 4.4vw + 16px, 72px); }
.stu-note {
  margin: 16px 0 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold);
  font-size: 14px; color: var(--ink-3);
}
.student-application { grid-area: form; }
.student-advice { grid-area: advice; padding: 22px; background: var(--bg-alt); border-radius: var(--r-lg); }
.student-advice h2 { margin-bottom: 14px; font-size: 26px; }
.student-advice .checks li { font-size: 14px; color: var(--ink-2); }
.student-advice-contact { margin: 18px 0 0; font-size: 15px; }
.student-advice-contact a { font-weight: 600; text-underline-offset: 4px; }
@media (min-width: 1000px) {
  .stu { grid-template-columns: 5fr 7fr; grid-template-areas: "intro form" "advice form"; gap: 32px 72px; align-items: start; padding-top: 48px; }
  .student-advice { padding: 28px; }
}

/* ---------- Form ---------- */
.student-form-header { margin-bottom: 20px; }
.student-form-header h2 { margin: 0 0 6px; font-size: 30px; }
.student-form-header p { font-size: 15px; color: var(--ink-2); }
.student-progress { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.student-progress li {
  display: flex; gap: 6px; padding-top: 10px; border-top: 3px solid var(--line);
  font: 600 12px/1.3 var(--sans); color: var(--ink-3);
  transition: border-color 0.3s, color 0.3s;
}
.student-progress li[aria-current], .student-progress li.is-complete { border-top-color: var(--gold); color: var(--ink); }
.student-progress li span { color: var(--gold-ink); }
.student-form:not(.enhanced) .student-progress { display: none; }
.student-stage + .student-stage { margin-top: 32px; }
.student-form.enhanced .student-stage + .student-stage { margin-top: 0; }
.student-stage h3 { margin: 0 0 18px; font-size: 26px; }
.student-stage h3:focus { outline: none; }

.std-field { display: grid; gap: 8px; min-width: 0; margin: 0 0 18px; padding: 0; border: 0; font: 600 14px/1.35 var(--sans); color: var(--ink); }
fieldset.std-field > legend { margin: 0 0 10px; padding: 0; }
.std-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .std-row { grid-template-columns: 1fr 1fr; } }
.std-radio {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center;
  margin: 0 0 8px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r);
  font: 400 15px/1.4 var(--sans); cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.std-radio input { width: 18px; height: 18px; margin: 0; }
.std-radio:hover { border-color: var(--ink); }
.std-radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.std-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.std-pills .std-radio { display: inline-flex; gap: 8px; margin: 0; padding: 10px 14px; }
.std-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 4px 0 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.std-consent input { width: 20px; height: 20px; margin: 2px 0 0; }
.std-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.std-actions .btn-primary { flex: 1 1 auto; max-width: 280px; margin-inline-start: auto; }
.std-status { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.std-status:empty { display: none; }
.std-status.is-error { color: var(--error); }
.std-fallback { margin-top: 16px; padding: 20px; background: var(--bg-alt); border-radius: var(--r); }
.std-fallback h4 { margin: 0 0 8px; font: 500 24px/1.15 var(--serif); }
.std-fallback p { font-size: 15px; color: var(--ink-2); }
.std-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
@media (max-width: 599px) { .std-fallback-actions .btn { flex: 1 1 100%; } }
.std-copy-label { display: grid; gap: 8px; margin-top: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Arabic ---------- */
[lang="ar"], [lang="ar"] :is(h1, h2, h3, h4, .eyebrow, .btn, .std-field, .std-radio, .student-progress li) { font-family: var(--arabic); letter-spacing: 0; }
[lang="ar"] :is(h1, h2, h3, h4) { font-weight: 700; line-height: 1.35; }
[lang="ar"] h1 { font-size: clamp(32px, 3.4vw + 14px, 56px); }
[lang="ar"] :is(h2, h3) { font-size: 24px; }
[lang="ar"] em { font-style: normal; }
[lang="ar"] .eyebrow { text-transform: none; font-size: 14px; }
