/* «Стать добровольцем» — блок «Самостоятельная подача заявки на отношение» (#apply).
   Использует общие стили квиза из main.css (.quiz, .qstep, .opt, .field, .consent, .progress) + дополнения ниже. */
.apply-section { overflow: hidden; }
.apply-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 10% 0%, rgba(197,164,106,.10), transparent 70%), radial-gradient(45% 45% at 100% 100%, rgba(89,97,74,.22), transparent 70%); pointer-events: none; }
.apply-layout { position: relative; display: grid; gap: 32px; }
@media (min-width: 1024px) { .apply-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } .apply-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.apply-intro { display: grid; gap: 18px; align-content: start; }
.quiz.apply { grid-area: auto; }
.apply .quiz__form { min-height: 320px; }

/* Чекбоксы-плитки: квадратная отметка вместо круглой */
.opt--check span::before { border-radius: 6px; }
.opt--check input:checked + span::before { background: var(--c-gold-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.options--check { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.options--check .opt span { min-height: 52px; }

/* Должности: поиск + прокручиваемый список */
.pos-tools { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.pos-search input { min-height: 50px; }
.pos-picked { font-size: 14px; font-weight: 700; color: var(--c-ink-muted); white-space: nowrap; }
.pos-picked b { color: var(--c-gold-ink); }
.pos-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 4px 6px 4px 2px; margin-right: -6px; overscroll-behavior: contain; scrollbar-width: thin; }
@media (min-width: 640px) { .pos-list { grid-template-columns: 1fr 1fr; } }
.pos-list .opt span { min-height: 48px; padding: 10px 14px; font-size: 14.5px; }
.pos-list .opt[hidden] { display: none; }
.pos-empty { grid-column: 1 / -1; font-size: 14px; color: var(--c-ink-muted); padding: 8px 2px; }

/* Ошибки на уровне шага */
.apply__err { display: none; font-size: 13px; color: #b0492f; font-weight: 600; }
.apply__err.is-on { display: block; }

/* Документы */
.docs { display: grid; gap: 12px; }
@media (min-width: 640px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid rgba(22,26,21,.14); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc.has-files { border-color: rgba(138,107,53,.55); background: #fffaf0; }
.doc.is-invalid { border-color: var(--c-danger); box-shadow: 0 0 0 3px rgba(215,122,97,.18); }
.doc.is-invalid .field__err { display: block; }
.doc__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.doc__title { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.doc__tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-ink-muted); background: rgba(22,26,21,.06); border-radius: 999px; padding: 3px 8px; }
.doc--req .doc__tag { color: var(--c-gold-ink); background: rgba(197,164,106,.16); }
.doc__files { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.doc__files:empty { display: none; }
.doc__file { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.doc__thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--c-light-2); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--c-ink-muted); }
.doc__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc__name small { display: block; color: var(--c-ink-muted); }
.doc__rm { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink-muted); font-size: 20px; line-height: 1; }
.doc__rm:hover { color: #b0492f; background: rgba(215,122,97,.1); }
.doc__add { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1.5px dashed rgba(22,26,21,.25); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--c-ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.doc__add:hover { border-color: var(--c-gold-ink); background: rgba(197,164,106,.08); }
.doc__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.doc__add:focus-within { outline: 2px solid var(--c-gold-ink); outline-offset: 2px; }
.doc__add svg { width: 18px; height: 18px; color: var(--c-gold-ink); }
.docs__total { font-size: 13px; color: var(--c-ink-muted); margin: 0; }

/* Навигация и загрузка */
.apply__nav .btn { min-height: 52px; }
.apply__upload { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--c-ink-muted); }
.apply__note { font-size: 14px; color: #8a4a2f; }
.apply .quiz__result .btn--ghost { --btn-fg: var(--c-ink); border-color: rgba(22,26,21,.22); }

@media (max-width: 420px) {
  .pos-tools { grid-template-columns: 1fr; }
  .pos-list { max-height: 50vh; }
  .options--check { grid-template-columns: 1fr 1fr; }
  .apply__nav .btn { padding: 0 18px; }
}
/* Кнопка в hero */
.hero__apply { margin-top: 2px; }
