/* Дополнение к popups.css (стили попапов старого сайта): формы заявок на всех страницах (includes/leads.php). */

/* Галочка согласия: картинка плагина jquery.checkbox.radio, сам input невидим, но остаётся в потоке — браузер может показать
   «Установите этот флажок» (стили из footer.tpl старого сайта + pointer-events из style.css). */
.custom_checkbox { display: inline-block; cursor: pointer; background: url(img/tpl/checkbox.png) no-repeat; }
.custom_checkbox input, .custom_radio input { display: none; }
.checkbox_notification { opacity: 0; z-index: -1; position: relative; display: block !important; border-bottom: none; pointer-events: none; }
.new_acceptance { display: contents; line-height: normal; font-weight: normal; font-size: 10px; }

/* Ловушка для ботов (скрытое поле website). */
.jands-lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Попапы поверх шапки Elementor (у неё z-index до 99) и подложка — на всю страницу. */
.popupWindow { z-index: 1000; }
#TB_sloi { z-index: 999; }
/* reCAPTCHA v3: значок Google скрыт (он встаёт в правый нижний угол, где виджет Callibri), вместо него — подпись в форме (так разрешают правила Google). */
.grecaptcha-badge { visibility: hidden; }
/* Строка reCAPTCHA: цвет текста своей формы, полупрозрачная — подходит к любому фону (белые формы, синие лендинги) */
form .jands-recaptcha-note, .jands-recaptcha-note { margin: 6px 0 0 !important; padding: 0 !important; font-size: 10px !important; line-height: 1.3 !important;
  color: inherit !important; opacity: .45; font-weight: normal !important; text-align: inherit; letter-spacing: 0; }
form .jands-recaptcha-note a, .jands-recaptcha-note a { color: inherit !important; font-weight: normal !important; font-size: inherit !important; text-decoration: underline; }

/* Кнопки отправки в попапах — стили кнопок сайта (style_res.css, program.css старого сайта): попапы есть на каждой странице,
   а файлы со стилями кнопок подключаются не везде (на «Образовании за рубежом» кнопка была без оформления). */
.popupWindow .btn.jns-btn { white-space: normal; margin: 0 auto; padding: 10px 10px 8px; letter-spacing: 1px; display: block; font-family: 'Russo One', sans-serif; font-weight: 400; }
.popupWindow .btn.jns-blue { background: #0077ce; border: 0; border-top: 1px solid #2091e6; color: #fff; font-size: 16px; text-align: center; text-decoration: none; border-radius: 25px; }
.popupWindow .btn.jns-blue:hover { background: #0187e9; background-image: linear-gradient(to bottom, #0187e9, #30a7fe); color: #fff; }
.popupWindow .program__button { display: inline-block; height: 36px; width: auto; padding: 0 16px; line-height: 32px; font-size: 14px; font-weight: 700; color: #fff; border: 2px solid; border-radius: 25px; cursor: pointer; outline: 0; }
.popupWindow .program__button.blue { border-color: #0093d5; background: #00adef; }
.popupWindow .program__button.blue:hover { border-color: #26a3db; background: #26b9f1; }
.popupWindow .press_center { text-align: center; }

/* Крестик всплывающих окон — наших и Elementor: зона нажатия 44×44 px, значок ~22 px, при наведении меняется только цвет,
   размер не меняется (решение владельца 14.11.2026: крестик был мелкий — 12–15 px, в него трудно попасть). */
.popupWindow .popup__close { top: 2px; right: 2px; width: 44px; height: 44px; background: none; display: flex; align-items: center; justify-content: center; }
.popupWindow .popup__close::before { content: "\00d7"; font: 400 34px/1 Arial, sans-serif; color: #999; }
.popupWindow .popup__close:hover { background: none; }
.popupWindow .popup__close:hover::before { color: #333; }
/* Elementor: размер значка, цвет и положение — в настройках попапа (migration/tools/elementor/popup.py); здесь — зона нажатия.
   Фокус Elementor ставит на крестик при открытии — без рамки (иначе вокруг крестика квадрат). */
.elementor-popup-modal .dialog-close-button { padding: 11px; line-height: 1; }
.elementor-popup-modal .dialog-close-button:focus { outline: none; }

/* Галочка согласия во всех формах Elementor (15.11.2026, владелец: «чекбокс и подпись не выровнены»): галочка — по центру первой строки
   подписи, текст — отдельной колонкой справа (вторая строка не уходит под галочку); галочка 17px (было 13 — трудно попасть).
   Отступ 1px — для подписи 11px с межстрочьем 1.7–1.8; крупнее подпись — увеличить margin-top. Нажатие на подпись тоже ставит галочку. */
.elementor-field-type-acceptance .elementor-field-option{display:flex;align-items:flex-start;gap:7px}
.elementor-field-type-acceptance .elementor-field-option input[type="checkbox"]{flex:none;width:17px;height:17px;margin:1px 0 0;cursor:pointer}
.elementor-field-type-acceptance .elementor-field-option label{margin:0;cursor:pointer}
