/* Радикс · форма рождения (экраны 2a–2g, design/Radix Birth Form.dc.html) и плашки «нет сети» (11c).
   Токены и базовые компоненты — radix.css; здесь раскладка формы и то, чего в дизайн-системе нет.
   Режимы времени переключаются без JS: виден блок отмеченного режима (:has). */

.form-page { gap: var(--rx-s-6); }
.form-page .page__intro { gap: var(--rx-s-2); }
.birth-form { gap: var(--rx-s-6); }
.birth-form .rx-field__error:empty { display: none; }
.birth-form p { margin: 0; }

/* кнопка-ссылка (поправить вручную, вернуть автоматический, координаты вручную) */
.rx-link { padding: 0; border: 0; border-bottom: 1px solid rgba(232,195,106,.4); background: none; color: var(--rx-gold); font: inherit; cursor: pointer; }
.rx-link:hover { color: var(--rx-gold-hover); }

/* ——— дата: маска + нативный пикер ——— */
.date-field { position: relative; }
.date-field__input { padding-right: 52px; }
.date-field__pick { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.date-field__pick svg { width: 20px; height: 20px; fill: none; stroke: var(--rx-text-2); stroke-width: 1.5; stroke-linecap: round; }
.date-field__pick:hover svg { stroke: var(--rx-text); }
.date-field__native { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.date-field__native::-webkit-calendar-picker-indicator { opacity: 0; }
.date-field__native.is-open { pointer-events: auto; }   /* браузер без showPicker (form.js) */

/* ——— время: три режима ——— */
.time-group { gap: 10px; }
.time-group .rx-fieldset > legend.rx-field__label { margin-bottom: 10px; }
.time-block { display: none; flex-direction: column; gap: 6px; }
.time-block--approx { gap: 10px; }
.time-group:has(#time_mode-exact:checked) .time-block--exact,
.time-group:has(#time_mode-approx:checked) .time-block--approx,
.time-group:has(#time_mode-unknown:checked) .time-block--unknown { display: flex; }
.time-block .rx-field__hint { text-wrap: pretty; line-height: 1.45; }

.time-block--approx .rx-chips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rx-s-2); }
.time-block--approx .rx-chips > label { display: block; }
.time-block--approx .rx-chip { width: 100%; height: 44px; justify-content: center; gap: 6px; font-weight: 500; }
.time-block--approx input:checked + .rx-chip { font-weight: 600; }
.time-block--approx .rx-chip__meta { font-weight: 500; }

.unknown-card { border: 1px solid var(--rx-line); border-radius: var(--rx-r-l); background: var(--rx-surface-1); padding: var(--rx-s-4); display: flex; flex-direction: column; gap: 10px; }
.unknown-card__title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.unknown-card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.unknown-card__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.unknown-card__minus { color: var(--rx-error); }
.unknown-card__plus { color: var(--rx-blue); }
.unknown-card__note { font-size: 13px; line-height: 1.45; color: var(--rx-text-2); }

/* обращение: компактные чипы под временем */
.address-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.address-group__optional { color: var(--rx-text-3); }
.address-group .rx-chip { height: 36px; }

/* ——— город ——— */
.city-group { display: flex; flex-direction: column; gap: 6px; }
.place-field { gap: 6px; }
.place-field__box { position: relative; }
.place-field__input { padding-right: 48px; }
.place-field__clear { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.place-field__clear svg { width: 14px; height: 14px; fill: none; stroke: var(--rx-text-2); stroke-width: 1.5; stroke-linecap: round; }
#place-selected:empty, #place-suggest:empty { display: none; }
.place-suggest { display: flex; flex-direction: column; }
.place-suggest li { list-style: none; }
.suggest-item { width: 100%; border: 0; background: transparent; color: var(--rx-text); font: inherit; text-align: left; align-items: flex-start; }
.suggest-item:focus-visible { background: rgba(242,240,234,.06); outline-offset: -2px; }
.place-missing { display: flex; flex-direction: column; gap: 8px; }
.place-missing .rx-field__error, .place-missing .rx-field__hint { text-wrap: pretty; }
.place-missing__manual { align-self: flex-start; min-height: 44px; border-bottom: 0; font-size: 14px; font-weight: 600; }
.manual-coords { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.manual-coords__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* строка пояса и выбор при переводе часов */
.tz-block { display: flex; flex-direction: column; gap: 8px; }
.tz-block:not(:has(> :not(input))) { display: none; }
.tz-line { text-wrap: pretty; }
.tz-line .rx-field__value { font-weight: 600; }
.tz-choice { margin: 4px 0 0; padding: 16px; min-width: 0; border: 1px solid rgba(157,180,255,.35); border-radius: var(--rx-r-l); background: rgba(157,180,255,.06); display: flex; flex-direction: column; gap: 10px; }
.tz-choice__title { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tz-choice__text { font-size: 14px; line-height: 1.5; color: var(--rx-text-2); text-wrap: pretty; }
.tz-choice__option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; cursor: pointer; }
.tz-choice__option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rx-gold); }
.tz-choice__body { display: flex; flex-direction: column; gap: 2px; }
.tz-choice__name { font-size: 15px; line-height: 1.45; }
.tz-check { font-size: 13px; line-height: 1.5; color: var(--rx-text-2); }
.tz-check > summary { cursor: pointer; color: var(--rx-text); min-height: 24px; }
.tz-check p { margin: 6px 0 0; text-wrap: pretty; }

/* шторка «Часовой пояс» (2g) */
.tz-options { display: flex; flex-direction: column; border: 1px solid rgba(242,240,234,.12); border-radius: var(--rx-r-m); overflow: hidden; }
.tz-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid rgba(242,240,234,.08); cursor: pointer; }
.tz-option:last-child { border-bottom: 0; }
.tz-option:has(input:checked) { background: rgba(232,195,106,.08); }
.tz-option:has(input:focus-visible) { outline: 2px solid var(--rx-gold); outline-offset: -2px; }
.tz-option__ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(242,240,234,.4); display: flex; align-items: center; justify-content: center; }
.tz-option__ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.tz-option:has(input:checked) .tz-option__ring { border-color: var(--rx-gold); }
.tz-option:has(input:checked) .tz-option__ring::after { background: var(--rx-gold); }
.tz-option__utc { width: 64px; flex: none; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tz-option__note { font-size: 13px; color: var(--rx-text-2); }

/* ——— кнопка и строка под ней (липкая панель на телефоне) ——— */
.birth-form__bar { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1023px) {
  .birth-form__bar {
    position: sticky; bottom: 0; z-index: 10; margin: 0 calc(-1 * var(--rx-gutter));
    padding: 12px var(--rx-gutter) calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rx-line); background: rgba(11,13,23,.92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
}
/* Пока открыт ввод города, панель не липнет: иначе закрывала бы список подсказок (2c). */
.birth-form:has(#place_query:focus) .birth-form__bar { position: static; }
#place-suggest { scroll-margin-bottom: 24px; }
.birth-form__submit { gap: 8px; }
.birth-form__busy { display: none; align-items: center; gap: 8px; }
.birth-form.htmx-request .birth-form__label { display: none; }
.birth-form.htmx-request .birth-form__busy { display: inline-flex; }
.birth-form__hint { font-size: 12px; line-height: 1.4; text-align: center; color: var(--rx-text-2); }
.birth-form__alert { text-align: center; }
.birth-form__bar .rx-consent { font-size: 12px; }

/* плашки «нет сети» / «соединение есть» (11c, 11d) — site.css (общие с экраном карты) */

/* результат без базы (M1) */
.form-page + .result { margin-top: var(--rx-s-8); }
