:root {
    --ink: #0f172a;
    --muted: #5b6678;
    --line: #d6dce6;
    --paper: #ffffff;
    --page: #f3f6fb;
    --blue: #1d4ed8;
    --navy: #1e3a8a;
    --orange: #f5a019;
    --green: #128c4b;
    --green-dark: #0e733d;
    --red: #c62828;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--ink);
    font: 400 16px/1.7 "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
}

a { color: var(--blue); }

/* ---------- header ---------- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(16px, calc((100% - 640px) / 2));
    background: linear-gradient(120deg, var(--navy), var(--blue));
    color: #fff;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .2px;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; background: #fff; }
.lang {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
}
.lang:hover { background: rgba(255, 255, 255, .14); }

/* ---------- layout ---------- */
.wrap {
    flex: 1;
    width: 100%;
    max-width: 672px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}
.intro h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.35; font-weight: 800; }
.intro p { margin: 0 0 20px; color: var(--muted); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}

/* ---------- fields ---------- */
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
    display: block;
    padding: 0;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 15px;
}
.field small { font-weight: 400; color: var(--muted); font-size: 12px; margin-inline-start: 4px; }

input[type="text"], textarea, select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.6;
}
textarea { resize: vertical; min-height: 112px; }
select { min-height: 50px; }
input[type="text"]:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(29, 78, 216, .22);
    border-color: var(--blue);
}
::placeholder { color: #8a94a6; opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
    display: block;
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    transition: background-color .12s, border-color .12s, color .12s;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 2px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.bad input[type="text"], .bad textarea { border-color: var(--red); }
.bad .chip span { border-color: #e7a3a3; }
.err { margin: 6px 0 0; color: var(--red); font-size: 14px; }
.notice {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecec;
    color: #8e1c1c;
    font-size: 15px;
}

/* honeypot: invisible to people, present for bots. Clipped in place rather
   than moved off-screen, which would add a sideways scroll area in RTL. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card { position: relative; }

/* ---------- submit ---------- */
.send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
}
.send:hover { background: var(--green-dark); }
.send:focus-visible { outline: 3px solid rgba(18, 140, 75, .4); outline-offset: 2px; }
.send svg { flex: none; }
.hint { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.hint a { white-space: nowrap; }

/* ---------- footer ---------- */
.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    padding: 16px;
    background: #0f1a26;
    color: #b6c2cf;
    font-size: 13px;
}
.foot p { margin: 0; }

@media (max-width: 520px) {
    .wrap { padding-top: 20px; }
    .intro h1 { font-size: 24px; }
    .card { padding: 18px 14px; }
    .pair { grid-template-columns: 1fr; }
}

/* ---------- eezeeclick credit signature (official component) ---------- */
.ec-credit{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:max-content;max-width:100%;padding:5px 10px;border:1px solid #aab6c06b;background:#19242ee8;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);white-space:nowrap;font:400 10px/1.5 Tahoma,Arial,sans-serif;color:#d7e0e5;direction:rtl}
.ec-credit[dir="ltr"]{direction:ltr}
.ec-credit .ec-credit-brand{display:inline-flex;align-items:baseline;gap:4px;font:400 13px/1 Tahoma,Arial,sans-serif;letter-spacing:0;text-decoration:none;white-space:nowrap}
.ec-credit .ec-credit-brand[dir="ltr"]{gap:0}
.ec-credit .ec-credit-brand:hover{filter:brightness(1.2)}
.ec-credit .ec-credit-brand:focus-visible{outline:1px solid #f5a019;outline-offset:3px}
.ec-credit .ec-credit-orange{color:#f5a019}
.ec-credit .ec-credit-gray{color:#afb0b8}
.ec-credit .ec-credit-sep{width:1px;height:11px;background:#b2bec76b;flex:none}
.ec-credit .ec-credit-heart{display:block;width:12px;height:12px;flex:none;fill:#ff354b;filter:drop-shadow(0 0 4px #ff354b77);animation:ec-credit-heartbeat 1.2s ease-in-out infinite;transform-origin:center}
@keyframes ec-credit-heartbeat{0%,30%,65%,100%{transform:scale(1)}13%{transform:scale(1.24)}43%{transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.ec-credit .ec-credit-heart{animation:none}}
@media(max-width:380px){.ec-credit{padding:4px 7px;gap:4px;font-size:9px}.ec-credit .ec-credit-brand{font-size:12px}}
