:root {
  color-scheme: light;
  --page: #f2f6f3;
  --paper: #fff;
  --ink: #182c25;
  --muted: #495f54;
  --line: #d7e3db;
  --green: #135641;
  --deep: #13392f;
  --mint: #daf4e5;
  --accent: #bcf0cf;
  --radius: 20px;
  font-family: "Inter", "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #067a5b; outline-offset: 3px;
}
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 760; font-size: .95rem; }
.mark { width: 21px; height: 21px; background: var(--green); border-radius: 6px; display: grid; place-items: center; flex: none; }
.mark::after { content: ""; width: 8px; height: 8px; border: 1.5px solid #e2f5e8; border-radius: 2px; }
.languages { display: flex; align-items: stretch; gap: 2px; background: var(--page); border-radius: 12px; padding: 3px; }
.languages button { border: 1px solid transparent; border-radius: 9px; padding: 7px 10px; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 650; }
.languages button[aria-pressed="true"] { border-color: var(--line); color: var(--green); background: var(--paper); }
.intro { padding-block: 42px 35px; max-width: 780px; }
.eyebrow { color: var(--green); font-size: .9rem; font-weight: 720; margin-bottom: 11px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.45rem); letter-spacing: -.047em; line-height: 1.12; font-weight: 760; }
[dir="rtl"] h1 { letter-spacing: normal; line-height: 1.25; }
.intro p { color: var(--muted); font-size: 1.05rem; margin-top: 13px; max-width: 660px; line-height: 1.56; }
.layout { display: grid; grid-template-columns: 257px minmax(0, 1fr); align-items: start; gap: 23px; }
.rail { position: sticky; top: 18px; background: var(--deep); border-radius: var(--radius); padding: 22px 16px 16px; color: #f4fff9; }
.rail-header { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding-inline: 5px; font-weight: 720; font-size: .9rem; }
#rail-progress { color: var(--accent); white-space: nowrap; font-size: .84rem; }
.meter { height: 5px; margin: 12px 5px 17px; border-radius: 5px; background: #456359; overflow: hidden; }
#meter-fill { height: 100%; width: 25%; background: var(--accent); border-radius: inherit; transition: width .22s ease; }
#steps { display: grid; gap: 4px; }
.step-link { display: flex; align-items: center; gap: 10px; padding: 9px 8px; text-align: start; border: 1px solid transparent; border-radius: 11px; color: #e1f0e8; font-size: .91rem; background: transparent; width: 100%; line-height: 1.33; }
.step-link:disabled { opacity: .74; cursor: default; }
.step-link[aria-current="step"] { background: #275344; border-color: #4a7461; font-weight: 730; color: #fff; }
.step-link:focus-visible { outline-color: var(--accent); }
.step-number { border: 1px solid #829c90; border-radius: 100%; width: 24px; height: 24px; flex: none; display: grid; place-items: center; font-size: .77rem; }
.step-link[aria-current="step"] .step-number { background: var(--accent); color: var(--deep); border-color: var(--accent); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: 0 10px 35px #19382a07; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.24; }
h2:focus { outline: none; }
.lead { margin: 7px 0 24px; line-height: 1.53; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
.field, fieldset { min-width: 0; }
.full { grid-column: 1 / -1; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.field-title, legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .96rem; line-height: 1.4; }
.hint { color: var(--muted); font-size: .88rem; line-height: 1.46; margin: 0 0 8px; }
.scope-note { border-radius: 9px; padding: 11px 13px; background: #edf8f0; color: var(--green); line-height: 1.48; font-size: .9rem; }
.add-on-badge {
  display: inline-block; margin-inline-start: 3px; padding: 1px 6px; border-radius: 5px;
  background: #fff1df; color: #713f12; font-size: .875rem; font-weight: 700; line-height: 1.45;
}
.add-on-note .add-on-badge { margin-inline: 0 3px; }
.reference-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf8;
}
.reference-note span { color: var(--muted); font-size: .9rem; }
.reference-note a { color: var(--green); font-weight: 720; text-underline-offset: 3px; }
.reference-note a:focus-visible { outline: 3px solid #067a5b; outline-offset: 3px; }
input:not([type="checkbox"]), textarea, select {
  width: 100%; border: 1px solid #b9cabf; border-radius: 9px; color: var(--ink); background: #fbfdfa; padding: 9px 11px; min-height: 43px;
}
input::placeholder, textarea::placeholder { color: #597166; opacity: 1; }
textarea { display: block; resize: vertical; min-height: 79px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23495f54' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; background-size: 16px; padding-inline-end: 31px; }
[dir="rtl"] select { background-position: left 10px center; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; min-height: 43px; cursor: pointer; font-size: .94rem; }
.choice:has(input:checked) { border-color: #6d9a83; background: #edf8f0; }
.choice input { accent-color: var(--green); width: 17px; height: 17px; flex: none; margin: 0; }
.choice-text { min-width: 0; }
.conditional { display: grid; grid-template-columns: inherit; gap: inherit; }
[hidden] { display: none !important; }
.review-note { margin-top: 9px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; }
.actions .back { margin-inline-end: auto; }
.primary, .secondary { min-height: 43px; border-radius: 9px; padding: 8px 15px; font-size: .94rem; font-weight: 730; line-height: 1.35; }
.primary { background: var(--green); color: white; border: 1px solid var(--green); }
.primary:hover { background: #0c4533; }
.secondary { background: white; color: var(--green); border: 1px solid #b9cabf; }
.secondary:hover { background: #eff7f0; }
.review { display: grid; gap: 9px; }
.review details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.review summary { font-weight: 720; cursor: pointer; line-height: 1.45; }
.review dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 13px; font-size: .91rem; margin: 12px 0 2px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.review p { margin: 9px 0 2px; color: var(--muted); font-size: .91rem; }
#form-status:not(:empty) { color: var(--green); margin-top: 15px; line-height: 1.4; }
#form-status[data-invalid="true"] { color: #8a241d; }
footer { padding: 19px 0 32px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (max-width: 790px) {
  .shell { width: calc(100% - 36px); }
  .layout { grid-template-columns: 1fr; gap: 13px; }
  .rail { position: static; padding: 14px 13px 10px; }
  #steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-link { padding: 5px 3px; font-size: .81rem; align-items: flex-start; }
  .step-number { width: 19px; height: 19px; }
  .intro { padding-block: 25px 23px; }
  .panel { padding: 21px; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 24px); }
  .wordmark { font-size: .82rem; gap: 6px; }
  .mark { width: 16px; height: 16px; }
  .languages button { font-size: .81rem; padding-inline: 6px; }
  .panel { padding: 16px; }
  .fields { grid-template-columns: 1fr; }
  #steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review dl { grid-template-columns: 1fr; gap: 4px; }
  .review dd { margin-bottom: 7px; padding-inline-start: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
