/* =========================================================================
   Sanad brand styles
   Navy:   #043673  (deep) / #1D5AA6 (light)
   Orange: #FCB015 → #F99C18 → #F7881C → #F36A21 (brand gradient)
   ========================================================================= */
:root {
    --navy: #043673;
    --navy-light: #1D5AA6;
    --orange-1: #FCB015;
    --orange-2: #F99C18;
    --orange-3: #F7881C;
    --orange-4: #F36A21;
    --ink: #1B1F2A;
    --muted: #5b6472;
    --line: #e6e9f0;
    --bg: #f4f7fc;
    --card: #ffffff;
    --success-bg: #f0fdf4;
    --success-fg: #16a34a;
    --error-bg: #fef2f2;
    --error-fg: #dc2626;
    --brand-gradient: linear-gradient(135deg, #FCB015 0%, #F99C18 35%, #F7881C 70%, #F36A21 100%);
    --radius: 16px;
    --shadow: 0 18px 40px rgba(4, 54, 115, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(243, 106, 33, 0.08), transparent 60%),
        radial-gradient(1000px 500px at -10% 0%, rgba(4, 54, 115, 0.08), transparent 55%),
        var(--bg);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--navy-light); }

/* ---------- Header ---------- */
.site-header {
    background: var(--navy);
    background-image: linear-gradient(180deg, #043673 0%, #052b59 100%);
    color: #fff;
    padding: 22px 0;
    position: relative;
    overflow: hidden;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: var(--brand-gradient);
}
.header-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-logo {
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    display: inline-flex;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.header-logo img { height: 46px; display: block; }
.header-text h1 { margin: 0; font-size: 1.35rem; letter-spacing: .2px; }
.header-text p { margin: 2px 0 0; color: #cfe0f5; font-size: .92rem; }

/* ---------- Layout ---------- */
.wrap {
    max-width: 920px;
    margin: 34px auto;
    padding: 0 22px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px clamp(20px, 4vw, 40px);
}
.card + .card { margin-top: 22px; }

.lead { color: var(--muted); margin-top: 6px; }

/* ---------- Section headings ---------- */
h2.section-title {
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}
h2.section-title::before {
    content: "";
    width: 8px; height: 22px;
    border-radius: 6px;
    background: var(--brand-gradient);
    display: inline-block;
}

/* ---------- Form ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; color: #2a3342; }
.req { color: var(--orange-4); }
.hint { font-size: .82rem; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: #fbfcfe;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 90, 166, 0.12);
}
textarea { resize: vertical; min-height: 110px; }

.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange-4); }
.check-row label { font-weight: 600; }
.check-row .hint { font-weight: 400; }

.consent {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); }

/* ---------- Button ---------- */
.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--brand-gradient);
    padding: 14px 26px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(243, 106, 33, 0.28);
    transition: transform .12s, box-shadow .12s, filter .12s;
    margin-top: 22px;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }

/* ---------- Alerts ---------- */
.alert {
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border: 1.5px solid transparent;
    font-size: .95rem;
}
.alert-success { background: var(--success-bg); border-color: #bbf7d0; color: #14532d; }
.alert-error   { background: var(--error-bg);   border-color: #fecaca; color: #7f1d1d; }
.alert strong { display: block; margin-bottom: 4px; }
.ref-code {
    display: inline-block;
    font-family: "Consolas", "Courier New", monospace;
    background: #fff;
    border: 1px dashed var(--success-fg);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ---------- Info list ---------- */
.steps { margin: 14px 0 0; padding: 0; list-style: none; }
.steps li {
    position: relative;
    padding: 6px 0 6px 30px;
    color: var(--muted);
}
.steps li::before {
    content: "✓";
    position: absolute; left: 0; top: 6px;
    color: #fff;
    background: var(--orange-3);
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: .72rem;
    display: grid; place-items: center;
    font-weight: 700;
}

/* ---------- Privacy policy typography ---------- */
.policy h2 { color: var(--navy); margin-top: 30px; font-size: 1.18rem; }
.policy h2:first-of-type { margin-top: 8px; }
.policy h3 { color: var(--navy-light); margin-top: 20px; font-size: 1.02rem; }
.policy p, .policy li { color: #333a47; }
.policy ul { padding-left: 20px; }
.policy .updated {
    display: inline-block;
    background: #eef4ff;
    color: var(--navy);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: .85rem;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    padding: 26px 22px 40px;
}
.site-footer a { color: var(--navy-light); text-decoration: none; font-weight: 600; }
.site-footer .links { margin-bottom: 8px; }
.site-footer .links a { margin: 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .header-text h1 { font-size: 1.12rem; }
    .header-logo img { height: 38px; }
}
