/* General apply page – built for phones first (big touch targets, 16px text so iPhones do not zoom) */
.an-page { background: #EEF2F9; }
.an-main { padding: 0 0 40px; background: linear-gradient(180deg, #0A1F4F 0, #0D2760 300px, #EEF2F9 300px); }
.an-wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 14px 16px 0; }
.an-intro { color: #fff; padding: 2px 4px 14px; }
.an-intro h1 { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.5rem); }
.an-intro p { margin-top: 6px; color: #D5DEF3; }
.an-intro ul { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .82rem; }
.an-intro li { display: flex; align-items: center; gap: 4px; }
.an-intro .ico { color: var(--gold); }
.an-card { padding: 20px 16px 22px; border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -28px rgba(6, 21, 56, .6); }
.an-prog { height: 6px; border-radius: 6px; background: #E3E8F1; overflow: hidden; }
.an-prog i { display: block; width: 50%; height: 100%; border-radius: 6px; background: var(--gold); transition: width .3s; }
.an-step-txt { margin: 8px 0 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.an-step { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.an-step[hidden], .an-form[hidden], .an-done[hidden] { display: none; }
.an-h { margin: 0 0 14px; padding: 0; font-size: 1.22rem; font-weight: 700; color: var(--navy); outline: none; }
.an-row { display: grid; gap: 16px; }
.an-step[data-step="1"] { gap: 14px; }
.an-step[data-step="1"] .an-row { grid-template-columns: 1fr 1fr; gap: 12px; }
.an-f { min-width: 0; }
.an-f > label:not(.an-check):not(.an-file), .an-lab { display: block; margin-bottom: 7px; font-weight: 600; color: var(--navy); }
.an-f small { font-weight: 500; color: var(--muted); }
.an-f input[type=text], .an-f input[type=tel], .an-f input[type=email], .an-f select { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid #CBD4E4; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.an-f .an-short { max-width: 150px; }
.an-f input:focus-visible, .an-f select:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(242, 179, 39, .35); }
.an-tel { display: flex; border: 1.5px solid #CBD4E4; border-radius: 13px; overflow: hidden; }
.an-tel:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(242, 179, 39, .35); }
.an-tel span { display: grid; place-items: center; padding: 0 14px; background: var(--grey); font-weight: 700; }
.an-f .an-tel input[type=tel] { border: 0; border-radius: 0; box-shadow: none; }
.an-f input, .an-f select, .an-chips label { scroll-margin-bottom: 110px; }
.an-check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.45; color: #33415F; cursor: pointer; }
.an-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--navy); }
.an-check a { font-weight: 700; }
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-chips label { position: relative; cursor: pointer; }
.an-chips input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.an-chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 15px; border: 1.5px solid #CBD4E4; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.an-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.an-chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(242, 179, 39, .5); }
.an-file { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed #B6C2D8; border-radius: 13px; cursor: pointer; color: var(--navy); }
.an-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.an-file:focus-within { box-shadow: 0 0 0 4px rgba(242, 179, 39, .35); }
.an-file span { min-width: 0; }
.an-file b, .an-file small { display: block; overflow-wrap: anywhere; }
.an-err { margin: 6px 0 0; font-size: .88rem; font-weight: 600; color: var(--danger); }
.an-err:empty { display: none; }
.an-bad input, .an-bad select, .an-bad .an-tel { border-color: var(--danger) !important; }
.an-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8E1B1B; font-weight: 600; }
.an-go { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 5; margin: 0 -16px -22px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 -10px 24px -18px rgba(6, 21, 56, .5); }
.an-step[data-step="1"] .an-go { position: static; padding-top: 2px; box-shadow: none; }
.an-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 20px; border: 0; border-radius: 15px; background: var(--gold); color: var(--navy); font: inherit; font-size: 1.06rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.an-btn:disabled { opacity: .65; cursor: default; }
.an-back { min-height: 56px; padding: 0 18px; border: 1.5px solid #CBD4E4; border-radius: 15px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.an-btn:focus-visible, .an-back:focus-visible, .an-line:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.an-done { display: grid; gap: 14px; padding: 14px 0 6px; text-align: center; outline: none; }
.an-tick { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; background: #E3F8EC; color: #0B6B3A; }
.an-tick .ico { width: 38px; height: 38px; }
.an-done p { color: var(--muted); }
.an-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 1.5px solid #CBD4E4; border-radius: 15px; font-weight: 700; text-decoration: none; }
.an-links a { font-weight: 700; color: var(--navy-600); }
.an-note { margin: 18px 4px 0; font-size: .86rem; color: var(--muted); text-align: center; }
@media (min-width: 560px) { .an-row { grid-template-columns: 1fr 1fr; } .an-card { padding: 28px 28px 30px; } .an-go { margin: 0 -28px -30px; padding: 14px 28px 22px; } }
@media (min-width: 900px) { .an-wrap { padding-top: 40px; } .an-go { position: static; box-shadow: none; } }
@media (max-width: 899px) { .an-page .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .an-prog i { transition: none; } }
