:root {
    --navy: #212b68;
    --blue: #1c3f9e;
    --yellow: #ffdd00;
    --gold: #f7a81b;
    --red: #e82328;
    --ink: #2b2f3a;
    --muted: #6b7185;
    --line: #d9def0;
    --soft: #eef2fb;
    --bg: #fff8d6;
    --err: #d11a2a;
}

[ng-cloak], [hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Segoe UI", Calibri, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg) linear-gradient(180deg, #ffe880 0, #fff6d2 380px, #fff8e6 100%) no-repeat;
    min-height: 100vh;
}

/* ---------- Hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; }
.hero img { display: block; width: 100%; height: auto; margin: 0 auto; }
/* Tablet / desktop: keep the banner compact so the form is visible above the fold */
@media (min-width: 700px) {
    .hero { padding: 16px 24px 0; }
    .hero img { width: min(100%, 620px); border-radius: 16px; box-shadow: 0 8px 24px rgba(33, 43, 104, .16); }
}
@media (min-width: 700px) and (max-height: 800px) {
    .hero img { width: min(100%, 500px); }
}

/* ---------- Card ---------- */
.card {
    position: relative;
    max-width: 1100px;
    margin: -28px auto 0;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 22px 16px 28px;
    box-shadow: 0 -4px 24px rgba(33, 43, 104, .10);
    border-top: 5px solid var(--yellow);
}
@media (min-width: 700px) {
    .card { margin: 18px 24px 0; padding: 28px 36px 40px; border-radius: 22px; box-shadow: 0 8px 30px rgba(33, 43, 104, .10); }
}
@media (min-width: 1148px) { .card { margin: 18px auto 0; } }

.card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #f3edcf; }
.card-logo { width: 88px; height: auto; flex: none; }
.card-head h1 { margin: 0; color: var(--blue); font-weight: 800; font-size: clamp(19px, 5.4vw, 42px); letter-spacing: .5px; line-height: 1.1; }
.card-head .sub { margin: 6px 0 0; color: #444; font-weight: 600; font-size: clamp(13px, 3.4vw, 18px); }
@media (min-width: 700px) {
    .card-head { gap: 28px; }
    .card-logo { width: 150px; }
    .card-head > div { flex: 1; text-align: center; }
}

/* ---------- Sections ---------- */
.block { padding: 20px 0; border-bottom: 1px solid #f3edcf; }
.block.last { border-bottom: 0; }
.block-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.block-title h3 { margin: 0; color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: 1px; line-height: 1.5; }
.block-title h3 em { font-style: italic; font-weight: 700; }
.ico-ring {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    border: 2.5px solid var(--navy); display: grid; place-items: center; color: var(--navy);
}
.ico-ring svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 860px) {
    .block { display: grid; grid-template-columns: 270px 1fr; gap: 24px; padding: 26px 0; }
    .block-title { align-self: start; margin: 18px 0 0; gap: 16px; }
    .block-title h3 { font-size: 15.5px; }
    .ico-ring { width: 52px; height: 52px; }
}

/* ---------- Fields ---------- */
.lbl { display: block; margin: 16px 0 7px; color: var(--blue); font-weight: 700; font-size: 15px; }
.block-body > .lbl:first-child { margin-top: 0; }
.lbl i, .tick i { color: var(--blue); font-style: normal; font-size: .8em; vertical-align: super; }
.lbl.spec { margin-top: 18px; }

.field {
    position: relative; display: flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
    box-shadow: 0 2px 0 #e4e8f4, inset 0 1px 2px rgba(33, 43, 104, .04);
    transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 63, 158, .15); }
.field.bad { border-color: var(--err); }
.f-ico { flex: none; width: 22px; height: 22px; margin-left: 14px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field input, .field select {
    flex: 1; min-width: 0; width: 100%;
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
    color: var(--ink); padding: 14px 14px 14px 12px;
}
.field input::placeholder { color: #8a8fa3; }
.field.plain input { padding-left: 16px; }
.field.select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.field.select.empty select { color: #8a8fa3; }
.field.select option { color: var(--ink); }
.chev { position: absolute; right: 14px; width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; pointer-events: none; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.err { margin: 6px 2px 0; color: var(--err); font-size: 13px; font-weight: 600; }
.err.big { font-size: 14px; text-align: center; margin-bottom: 12px; }

/* ---------- Phone pair ---------- */
.pair { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 600px) { .pair { grid-template-columns: 1fr 1fr; } }
.field input:disabled { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.mini { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.mini input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

/* ---------- Option chips ---------- */
.opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .opts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .opts { grid-template-columns: repeat(3, 1fr); gap: 12px 18px; } }
.opt {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    background: var(--soft); border: 1.5px solid transparent; border-radius: 12px;
    padding: 12px 14px; color: var(--blue); font-weight: 700; font-size: 15px;
    transition: background .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8a8fa3; background: #fff; display: grid; place-items: center; }
.opts.regions { grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .opts.regions { grid-template-columns: repeat(3, 1fr); } }
.opts.bad .opt { border-color: #f3b3b8; }
.opt.on { background: #fff7c2; border-color: var(--gold); }
.opt.on .dot { border-color: var(--blue); }
.opt.on .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.opt input:focus-visible + .dot { outline: 3px solid rgba(28, 63, 158, .35); outline-offset: 2px; }

/* ---------- Consent ---------- */
.consent { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #333; text-align: justify; hyphens: auto; }
.consent a { color: var(--blue); font-weight: 700; word-break: break-all; }
.tick {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 12px 14px; margin-top: 10px; border-radius: 12px; background: var(--soft);
    border: 1.5px solid transparent; font-size: 15px; font-style: italic; line-height: 1.45; color: #333;
    -webkit-tap-highlight-color: transparent;
}
.tick.bad { border-color: var(--err); background: #fff1f2; }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.tick .box { flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 6px; border: 2px solid #8a8fa3; background: #fff; display: grid; place-items: center; }
.tick input:checked + .box { background: var(--blue); border-color: var(--blue); }
.tick input:checked + .box::after { content: ""; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.tick input:focus-visible + .box { outline: 3px solid rgba(28, 63, 158, .35); outline-offset: 2px; }

/* ---------- Button ---------- */
.actions { padding-top: 22px; text-align: center; }
.btn {
    display: inline-grid; place-items: center; width: 100%; max-width: 380px; min-height: 56px;
    border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(180deg, #2a3a8c, var(--navy)); color: #fff;
    font: inherit; font-size: 18px; font-weight: 800; letter-spacing: 2px;
    box-shadow: 0 5px 0 #121a4a, 0 10px 20px rgba(33, 43, 104, .25);
    transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #121a4a, 0 5px 10px rgba(33, 43, 104, .25); }
.btn[disabled] { opacity: .75; cursor: default; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.done { text-align: center; padding: 36px 8px 12px; }
.done-tick { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 8px #fff6c2; }
.done-tick svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin: 0 0 6px; color: var(--blue); font-size: 26px; }
.done p { margin: 4px 0; color: #444; font-size: 16px; }
.done .ref { margin: 12px 0 26px; color: var(--muted); }
.done .ref b { color: var(--navy); font-size: 18px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
