/* Формы и окно заявки Токс */
.toks-form { max-width: 520px; }
.toks-form__title { font-size: 22px; font-weight: 700; color: #1d2733; margin: 0 0 18px; line-height: 1.25; }
.toks-form__row { margin-bottom: 14px; }
.toks-form__label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; color: #3a4654; }
.toks-form__req { color: #e2401c; }
.toks-form__input { width: 100%; height: 44px; padding: 8px 12px; font-size: 16px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; color: #1d2733; transition: border-color .15s, box-shadow .15s; }
textarea.toks-form__input { height: auto; min-height: 84px; resize: vertical; }
.toks-form__input:focus { outline: none; border-color: #004fa3; box-shadow: 0 0 0 3px rgba(0, 79, 163, .15); }
.toks-form__input[readonly] { background: #f2f6fb; }
.toks-form__row_error .toks-form__input { border-color: #e2401c; }
.toks-form__error { font-size: 13px; color: #e2401c; margin-top: 4px; }
.toks-form__error:empty { display: none; }
.toks-form__captcha-box { display: flex; gap: 10px; align-items: center; }
.toks-form__captcha-box img { flex: 0 0 auto; border-radius: 6px; cursor: pointer; }
.toks-form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.toks-form__check input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }
/* Стили шаблона сайта прячут чекбоксы ([type=checkbox] { left: -9999px }) и снимают рамку у полей — возвращаем свои */
.toks-form .toks-form__check input[type="checkbox"] { position: static; left: auto; display: inline-block; opacity: 1; visibility: visible; appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer; accent-color: #004fa3; }
.toks-form .toks-form__row input.toks-form__input,
.toks-form .toks-form__row select.toks-form__input,
.toks-form .toks-form__row textarea.toks-form__input { border: 1px solid #cfd8e3; border-radius: 8px; padding: 8px 12px; box-shadow: none; background-color: #fff; }
.toks-form .toks-form__row input.toks-form__input[readonly] { background-color: #f2f6fb; }
.toks-form .toks-form__row .toks-form__input:focus { border-color: #004fa3; box-shadow: 0 0 0 3px rgba(0, 79, 163, .15); }
.toks-form .toks-form__row_error .toks-form__input { border-color: #e2401c; }
.toks-form__submit { min-width: 200px; margin-top: 4px; }
.toks-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toks-form__success { padding: 20px 0 6px; }
.toks-form__success-title { font-size: 20px; font-weight: 700; color: #004fa3; margin-bottom: 8px; }

.toks-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; background: rgba(13, 27, 45, .55); }
.toks-modal_open { display: flex; }
.toks-modal__box { position: relative; width: 100%; max-width: 560px; padding: 30px 28px 26px; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.toks-modal__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 30px; line-height: 1; color: #7a8796; cursor: pointer; }
.toks-modal__close:hover { color: #1d2733; }
.toks-modal__loading { padding: 40px 0; text-align: center; color: #7a8796; }
.toks-modal-lock { overflow: hidden; }
@media (max-width: 480px) { .toks-modal { padding: 0; } .toks-modal__box { min-height: 100%; border-radius: 0; padding: 26px 16px; } }

/* атрибут hidden сильнее стилей шаблона (.btn { display: inline-block } перебивал скрытие кнопки после отправки) */
.toks-form [hidden], .toks-modal [hidden] { display: none !important; }

/* Выбор города в окне «Онлайн заявка» */
.toks-choose__hint { margin: 0 0 16px; color: #3a4654; }
.toks-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toks-choose .toks-choose__btn { width: 100%; }
@media (max-width: 480px) { .toks-choose { grid-template-columns: 1fr; } }
