:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --cyan: #0891b2;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(167, 243, 208, 0.9);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.10), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f7fffb 45%, #ffffff 100%);
}

.bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.b1 { width: 500px; height: 500px; top: -80px; left: 30%; background: rgba(16, 185, 129, 0.08); }
.b2 { width: 320px; height: 320px; bottom: 0; right: 20%; background: rgba(6, 182, 212, 0.08); }

.top, main, .foot { position: relative; z-index: 1; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 56px);
}
.brand img { display: block; height: 36px; width: auto; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a:hover, nav a.active { color: var(--emerald-dark); }
.lang {
  font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  color: var(--emerald-dark); border-radius: 999px; padding: 6px 14px;
}
.lang:hover { background: #ecfdf5; }

.hero, .wrap {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 56px 20px 72px;
}
.hero { max-width: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wrap { max-width: 640px; }

.pill {
  display: inline-block; font-size: 13px; color: #065f46;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}

h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.15; margin: 0 0 18px; font-weight: 700; }
.h1-sm { font-size: clamp(30px, 5vw, 44px); }
.grad {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 620px; margin: 0 auto 32px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #10b981, #16a34a);
  border-radius: 14px; padding: 13px 30px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.full { width: 100%; }

.card {
  text-align: start; margin-top: 8px;
  border: 1px solid rgba(167, 243, 208, .7); background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px); border-radius: 20px; padding: 28px;
}
form { display: grid; gap: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 6px; }
label > span { font-size: 13px; font-weight: 500; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--ink); width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px; outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { margin: 0; color: #dc2626; font-size: 14px; }

.done { text-align: center; padding: 36px 8px; }
.check {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--emerald); background: rgba(16, 185, 129, .12);
}
.done h2 { margin: 0 0 6px; font-size: 20px; }
.done p { margin: 0; color: var(--muted); }

.alt { margin-top: 22px; color: var(--muted); font-size: 14px; }
.alt a, .foot a { color: var(--emerald-dark); text-decoration: none; }
.alt a:hover, .foot a:hover { text-decoration: underline; }

.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px clamp(16px, 5vw, 56px); font-size: 13px; color: var(--muted);
  border-top: 1px solid rgba(167, 243, 208, .6);
}

[hidden] { display: none !important; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  nav { gap: 14px; }
  .card { padding: 20px; }
}
