@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "Noto Kufi Arabic", "Cairo", "Tahoma", sans-serif;
  color: #063b70;
  background: #f7f3ea;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: normal;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(190, 149, 78, 0.19), transparent 32rem),
    linear-gradient(180deg, #fbf8f1 0%, #f4efe5 100%);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(6, 59, 112, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 59, 112, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
  padding-block: 1.25rem 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #f8f6f0;
  background: #063b70;
  box-shadow: 0 10px 28px rgba(6, 59, 112, 0.2);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.65rem 0.9rem;
  border-color: transparent;
  border-radius: 999px;
  color: rgba(6, 59, 112, 0.68);
  font-size: 0.76rem;
  line-height: 1.5;
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: #f8f6f0;
  background: #063b70;
}

.card {
  margin-block-start: 2.25rem;
  padding: clamp(1.35rem, 4vw, 4.25rem);
  border: 1px solid rgba(6, 59, 112, 0.12);
  border-radius: clamp(1.6rem, 4vw, 3rem);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 28px 80px rgba(6, 59, 112, 0.1);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0;
  color: #a0742f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.7;
}

h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.15rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(6, 59, 112, 0.72);
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
  line-height: 1.9;
}

.content {
  display: grid;
  gap: 1rem;
  margin-block-start: clamp(2rem, 5vw, 3rem);
}

.section {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(6, 59, 112, 0.1);
  border-radius: 1.3rem;
  background: rgba(248, 246, 240, 0.72);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.5;
}

.section p,
.section li,
.note {
  color: rgba(6, 59, 112, 0.72);
  font-size: 0.9rem;
  line-height: 1.95;
}

.section p {
  margin: 0.7rem 0 0;
}

.section ul,
.section ol {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.4rem;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-block-start: 2rem;
}

.action {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(6, 59, 112, 0.1);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.action:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 59, 112, 0.34);
}

.action strong {
  font-size: 0.98rem;
  line-height: 1.55;
}

.action span {
  color: rgba(6, 59, 112, 0.62);
  font-size: 0.76rem;
  line-height: 1.7;
}

.form {
  display: grid;
  gap: 1rem;
  margin-block-start: 2rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
  color: #063b70;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.65;
}

input,
select,
textarea,
button {
  font: inherit;
  font-family: inherit;
  letter-spacing: normal;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(6, 59, 112, 0.18);
  border-radius: 0.95rem;
  outline: none;
  color: #063b70;
  background: #fffdf8;
}

input,
select {
  height: 50px;
  padding-inline: 0.85rem;
}

textarea {
  min-height: 130px;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.75;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #063b70;
  box-shadow: 0 0 0 3px rgba(6, 59, 112, 0.09);
}

.full {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  color: #f8f6f0;
  background: #063b70;
  font-size: 0.88rem;
  font-weight: 800;
}

.submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  display: none;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  line-height: 1.8;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #155d3c;
  background: #e9f6ef;
}

.form-status.is-error {
  color: #8b1e2d;
  background: #fcecef;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0.5rem 0;
  color: rgba(6, 59, 112, 0.56);
  font-size: 0.7rem;
  line-height: 1.8;
}

.ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1rem, 980px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-block-end: 0.25rem;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .card {
    margin-block-start: 1.3rem;
  }

  .actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .action {
    transition: none;
  }
}
