/* Contact page (/contact/, /en/contact/). Static, no framework. Calm H-A look: cream page, white rounded cards, teal + gold. */
@font-face { font-family: "Plex Arabic"; src: url("/contact/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/contact/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Latin"; src: url("/contact/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Latin"; src: url("/contact/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F7F1E6; --card: #FFFDF8; --fg: #1B2B30; --muted: #5B6B70; --line: #E8DFCF;
  --primary: #0E4654; --on-primary: #F5EDDF; --gold: #D0A44B; --gold-text: #8A6A1F;
  --chip: #EFE6D6; --soft: #E3EEF0; --err: #A3372B; --ok: #1F7A5A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1F25; --card: #10292F; --fg: #ECE6DA; --muted: #A2B0B3; --line: #1F3A41;
    --primary: #7CC3D3; --on-primary: #0A1F25; --gold-text: #D0A44B;
    --chip: #17343B; --soft: #17343B; --err: #F09A8E; --ok: #7FD1AE;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.75 "Plex Arabic", "Plex Latin", "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 56px; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: .95rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
/* the name is its outlined path (business/brand/v9/make-wordmark.py), painted in the text colour through a mask:
   the same shape in every browser, whatever its Arabic shaping does with the Naskh dots */
.brand .wm-ar, .brand .wm-en { display: block; background: currentColor; -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; }
.brand .wm-ar { --wm: url("/contact/wordmark-ar.svg"); height: 34px; aspect-ratio: 2143 / 892; }
.brand .wm-en { --wm: url("/contact/wordmark-en.svg"); height: 22px; aspect-ratio: 3417 / 793; }
h1 { font-size: 1.85rem; line-height: 1.3; margin: 36px 0 6px; font-weight: 600; }
h1 em { font-style: normal; color: var(--gold-text); }
.lead { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 20px; }
.field { margin: 0 0 20px; }
.field:last-child { margin-bottom: 0; }
label, .label { display: block; font-weight: 600; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 14px; min-height: 48px;
}
textarea { min-height: 128px; resize: vertical; }
input[dir="ltr"] { text-align: left; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.pair { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.or { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; padding: 0; border: 0; }
.chips legend { padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--chip); color: var(--fg); font-size: .95rem; border: 1px solid transparent; user-select: none; }
.chip input:checked + span { background: var(--primary); color: var(--on-primary); }
.err { color: var(--err); font-size: .9rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 16px; padding: 12px 28px; min-height: 50px; background: var(--primary); color: var(--on-primary); cursor: pointer; }
button[disabled] { opacity: .6; cursor: progress; }
.privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .92rem; margin: 18px 4px 0; }
.privacy svg { flex: none; margin-top: 4px; }
.done { text-align: center; padding: 40px 20px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--soft); color: var(--primary); }
.done h2 { margin: 0 0 6px; font-size: 1.5rem; }
.done p { margin: 0; color: var(--muted); }
.fail { color: var(--err); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { margin-top: 36px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
[hidden] { display: none !important; }
