/* Ostool Albon "compass minimal": navy bar, gold accents, cream body. */
:root {
    --navy: #101B31;
    --gold: #D8B968;
    --gold-dark: #B6892E;
    --cream: #F4F1E9;
    --ink: #1D2433;
    --muted: #5E6573;
    --line: #D9D2C0;
    --error: #B42318;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Almarai", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
}

.bar .logo { width: 40px; height: auto; display: block; }
.bar .brand { font-weight: 700; font-size: 18px; color: var(--gold); flex: 1; }

.lang {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--gold);
    border-radius: 22px;
    background: transparent;
    color: var(--gold);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }

h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 6px; color: var(--navy); }
h1:focus { outline: none; }
.lead { color: var(--muted); margin: 0 0 20px; }

.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { color: var(--gold-dark); }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }

input[type="text"], input[type="tel"], input[type="email"], select {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 17px; /* >= 16px keeps iOS from zooming */
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E6573' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px 8px;
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
[dir="rtl"] select { background-position: left 12px center; padding-right: 12px; padding-left: 32px; }

input:focus, select:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(216, 185, 104, 0.35);
}

[aria-invalid="true"] { border-color: var(--error); }

.phone { display: flex; }
.phone .cc {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #EDE8DB;
    font-weight: 700;
    font-size: 17px;
}
.phone input { border-radius: 0 10px 10px 0; flex: 1; min-width: 0; }

.bday { display: flex; gap: 8px; }
.bday select { flex: 1; min-width: 0; }
.bday select:last-child { flex: 1.4; }

.langs { display: flex; gap: 8px; }
.field .lang-opt {
    flex: 1;
    display: flex;
    margin: 0;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}
.lang-opt:has(input:checked) { border-color: var(--gold-dark); background: #FBF6E9; }
.lang-opt input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: none;
    accent-color: var(--gold-dark);
}

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 4px 0 18px;
    cursor: pointer;
}
.consent input {
    width: 24px;
    height: 24px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--gold-dark);
}

.err { color: var(--error); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.form-err { margin: 0 0 12px; font-size: 15px; }

.btn {
    position: relative;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--gold);
    color: var(--navy);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.btn:active { background: var(--gold-dark); }
.btn:disabled { opacity: 0.75; cursor: default; }
.btn .spin {
    display: none;
    width: 18px;
    height: 18px;
    margin-inline-end: 8px;
    vertical-align: -3px;
    border: 3px solid rgba(16, 27, 49, 0.25);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.privacy { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* Honeypot: invisible to people, still "there" for naive bots. Clipped rather
   than moved off-screen - a negative offset widens the page in RTL. */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

#done-view { text-align: center; padding-top: 24px; }
.check {
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 52px;
    line-height: 88px;
    font-weight: 700;
}
.big-phone {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--navy);
    margin: 4px 0 18px;
    unicode-bidi: isolate;
}
.earn { color: var(--gold-dark); font-weight: 700; }
a.btn.wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    background: var(--navy);
    color: var(--gold);
    text-decoration: none;
}
a.btn.wallet:active { background: var(--ink); }
.wallet-sent { color: var(--navy); font-weight: 700; margin-top: 16px; }

[hidden] { display: none !important; }
