@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/fonts/plex-arabic-400.ttf) format("truetype"); }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/fonts/plex-arabic-600.ttf) format("truetype"); }

:root {
  --ink: #16282e;
  --muted: #566a70;
  --line: #d5dfe0;
  --page: #f5f7f6;
  --card: #ffffff;
  --accent: #0d5c63;
  --accent-dark: #094449;
  --danger: #a4262c;
}

* { box-sizing: border-box; }
html[lang="ar"] [lang="en"], html[lang="en"] [lang="ar"] { display: none; }
[hidden] { display: none !important; }

body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.75 "Plex Arabic", "Segoe UI", Tahoma, sans-serif; }
a { color: var(--accent); }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.mark { font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--accent-dark); }
.lang { font: inherit; font-size: 14px; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 5px 14px; min-height: 36px; cursor: pointer; }
.lang:hover { border-color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }
.hero { padding: 40px 0 28px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 15px; }
h1 { margin: 4px 0; font-size: 38px; line-height: 1.25; font-weight: 600; }
.facts { margin: 0; color: var(--muted); }
.jump { display: none; margin-top: 16px; padding: 10px 20px; background: var(--accent); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.job h2 { margin: 28px 0 6px; font-size: 18px; font-weight: 600; }
.job p { margin: 0; }
.job ul { margin: 0; padding-inline-start: 20px; }
.job li { margin-bottom: 4px; }

.panel { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 16px; }
.panel h2 { margin: 0 0 16px; font-size: 20px; font-weight: 600; }
#done:focus, #closed:focus { outline: none; }

.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
label, legend { display: block; padding: 0; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
input:not([type="radio"], [type="checkbox"]) { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: inherit; background: #fff; border: 1px solid #9fb0b3; border-radius: 6px; }
input[dir="ltr"] { text-align: left; }
input[type="file"] { padding: 8px; font-size: 14px; }
input:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-bottom: 4px; min-height: 28px; cursor: pointer; }
.choice input { margin-top: 7px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }

.hint { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.error { margin: 6px 0 0; color: var(--danger); font-size: 14px; line-height: 1.6; }
.invalid input:not([type="radio"], [type="checkbox"]) { border-color: var(--danger); }

.notice { margin: 0 0 14px; padding: 8px 12px; background: var(--page); border-radius: 6px; font-size: 14px; line-height: 1.7; }
.notice summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.notice p { margin: 8px 0 0; overflow-wrap: anywhere; }

.captcha { margin-bottom: 12px; }
.captcha:empty { display: none; }

.send { width: 100%; min-height: 48px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; }
.send:hover { background: var(--accent-dark); }
.send:disabled { opacity: .7; cursor: progress; }
.send .busy, .send.is-busy .idle { display: none; }
.send.is-busy .busy { display: inline; }
#formError { margin: 0 0 12px; }

.alt { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }

@media (min-width: 861px) {
  .panel { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
}

@media (max-width: 860px) {
  .bar { padding: 12px 16px; }
  .wrap { padding: 0 16px 48px; }
  .hero { padding: 28px 0 20px; }
  h1 { font-size: 30px; }
  .jump { display: inline-block; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .panel { padding: 20px 16px; }
}
