:root {
  --bg: #f7fafb;
  --panel: #fff;
  --text: #18343f;
  --muted: #566f7b;
  --border: #dfe9ec;
  --accent: #06777c;
  --soft: #eaf8f8;
  --error: #b93935;
  --success: #167552;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #10222b;
  --panel: #162d37;
  --text: #eaf4f6;
  --muted: #a2b9c3;
  --border: #2d4652;
  --accent: #68d8da;
  --soft: #1b3c42;
  --error: #ffb2ab;
  --success: #70dcb4;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.95;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #10c1c4;
  outline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
.shell {
  width: min(100% - 3rem, 72rem);
  margin: auto;
}
.header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.brand img {
  width: 5.5rem;
  height: 2.4rem;
  object-fit: contain;
}
.brand-wordmark {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 1rem;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
}
.nav a[aria-current],
.nav a:hover {
  background: var(--soft);
  color: var(--accent);
}
.hero {
  max-width: 50rem;
  margin: 3rem auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.subtitle {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 2;
  max-width: 46rem;
}
.meta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.pill {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--panel);
}
.content {
  max-width: 50rem;
  margin: 0 auto 3rem;
}
.section {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.section p,
.section li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 2.1;
}
.section p {
  margin: 0.5rem 0;
}
.section ul {
  padding-inline-start: 1.3rem;
}
.form-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.field-grid {
  display: grid;
  gap: 1.1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 500;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg);
  padding: 0.75rem 1rem;
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
}
input:focus,
textarea:focus {
  border-color: #10c1c4;
  box-shadow: 0 0 0 3px var(--soft);
}
input[type="email"] {
  direction: ltr;
  text-align: start;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
  accent-color: var(--accent);
}
.actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
button[type="submit"] {
  border: 0;
  border-radius: 0.6rem;
  background: #087f83;
  color: #fff;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  font-size: 0.86rem;
}
.direct {
  font-size: 0.76rem;
  color: var(--muted);
}
.direct a {
  color: var(--accent);
}
.notice,
.form-error {
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
}
.notice {
  color: var(--success);
}
.form-error,
.field-error {
  color: var(--error);
}
.field-error {
  font-size: 0.76rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--panel);
  padding: 1rem;
  z-index: 30;
}
.skip-link:focus {
  top: 1rem;
}
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}
@media (max-width: 800px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav {
    gap: 0.3rem;
    font-size: 0.72rem;
  }
  .nav a {
    padding: 0.25rem 0.45rem;
  }
  .hero {
    margin-top: 2rem;
  }
  .form-panel {
    padding: 1.5rem;
  }
}
@media (max-width: 540px) {
  .shell {
    width: calc(100% - 2rem);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 1.2rem;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .subtitle {
    font-size: 0.85rem;
  }
  .section p,
  .section li {
    font-size: 0.85rem;
  }
  input,
  textarea {
    font-size: 16px;
  }
  .actions {
    gap: 0.8rem;
  }
  .nav {
    font-size: 0.68rem;
  }
  .hero {
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.zi {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  vertical-align: middle;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
}
.theme-toggle {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
}
.theme-toggle span {
  display: inline-flex;
}
.theme-toggle [hidden] {
  display: none;
}
