/* Лид-магнит форма — канон-токены --ds-* (credos-ds.css: ink/accent/line/paper/r-md). */
.lm-form { width: 100%; display: flex; flex-direction: column; gap: 20px; }

/* Контейнер шага — ВСЕ поля/группы внутри. Шкала отступов (Ководство Лебедева: подпись принадлежит своему полю):
   поле↔поле 20px (раздельные сущности), внутри поля label→input 6px (плотно). */
.lm-form__step:not([hidden]) { display: flex; flex-direction: column; gap: 20px; }

.lm-form__field { display: flex; flex-direction: column; gap: 6px; }
.lm-form__field label {
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase; color: var(--ds-ink-muted, #5a6470);
}
.lm-form__field input {
    width: 100%; box-sizing: border-box;
    padding: 15px 16px;
    border: 1.5px solid var(--ds-line, #e3e3e3);
    border-radius: var(--ds-r-md, 8px);
    font-size: 16px;
    background: var(--ds-paper, #fff);
    color: var(--ds-ink, #0a225e);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lm-form__field input::placeholder { color: #9aa3b0; }
.lm-form__field input:focus {
    outline: none;
    border-color: var(--ds-accent, #2e47d7);
    box-shadow: 0 0 0 3px rgba(46, 71, 215, .14);
}

/* Группа согласий — связанные чекбоксы рядом (10px), группа отделена от полей общим step-gap (20px). */
.lm-form__consents { display: flex; flex-direction: column; gap: 10px; }
.lm-form__consent {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 13px; color: var(--ds-ink-muted, #5a6470); line-height: 1.45;
    margin: 0;
}
.lm-form__consent input { margin-top: 1px; flex: none; width: 18px; height: 18px; accent-color: var(--ds-accent, #2e47d7); cursor: pointer; }
.lm-form__consent a { color: var(--ds-accent, #2e47d7); }

.lm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lm-form__submit {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 24px;
    background: var(--ds-accent, #2e47d7); color: var(--ds-paper, #fff);
    border: none; border-radius: var(--ds-r-md, 8px);
    font-size: 16px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 14px rgba(46, 71, 215, .22);
    transition: filter .15s ease, box-shadow .15s ease, transform .1s ease, opacity .15s ease;
}
.lm-form__submit:hover { filter: brightness(1.06); box-shadow: 0 6px 20px rgba(46, 71, 215, .3); }
.lm-form__submit:active { transform: translateY(1px); }
.lm-form__submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }

.lm-form__msg { font-size: 14px; color: var(--ds-ink-muted, #5a6470); margin: 0; min-height: 1.2em; }
.lm-form__msg[data-error] { color: #c0392b; }

/* :not([hidden]) — чтобы display не перебивал атрибут hidden (иначе done-шаг виден всегда) */
.lm-form__done:not([hidden]) { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lm-form__done [data-lm-done-msg] { font-size: 16px; font-weight: 600; color: var(--ds-ink, #0a225e); margin: 0; }
