/* Поп-ап «Успей занять последние места» (плагин SC Lead Popup, скрипт js/lead-popup.js).
   Размеры, цвета и шрифты — как у основного поп-апа .index_pop_up_form_* в style.css */
.sc-lp { position: fixed; inset: 0; z-index: 999999; display: flex; justify-content: center; align-items: center; padding: 16px; overflow-y: auto; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.sc-lp.is-visible { opacity: 1; visibility: visible; }
.sc-lp__box { position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; max-width: 592px; height: max-content; margin: auto; padding: 48px; border-radius: 30px; background: #fff; box-shadow: 0 20px 80px rgba(0, 0, 0, .15); font-family: 'Inter', -apple-system, sans-serif; color: #232323; }
.sc-lp__box[hidden] { display: none; }
.sc-lp__box--done { align-items: center; text-align: center; }
.sc-lp__close { position: absolute; top: 24px; right: 24px; z-index: 10; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.sc-lp__close:hover { transform: scale(1.1); opacity: .8; }
.sc-lp__close img { width: 24px; height: 24px; object-fit: contain; }
.sc-lp__title { margin: 0 0 40px; font: 400 28px/1.15 'Southbank LT', -apple-system, sans-serif; text-align: center; text-transform: uppercase; color: #1e1e1e; }
.sc-lp__box--done .sc-lp__title { margin-bottom: 12px; }
/* наклонный оранжевый блок, как .offline_service_form_enrollment-badge на страницах курсов */
.sc-lp__badge { display: table; margin: 12px auto 0; padding: 6px 18px; border-radius: 70px; background: #ffb11f; color: #fff; font-family: 'Caveat', -apple-system, Roboto, Helvetica, sans-serif; font-size: 32px; font-weight: 700; line-height: 1; text-transform: none; transform: rotate(-3deg); }
.sc-lp__form { display: flex; flex-direction: column; gap: 20px; width: 100%; margin: 0; }
.sc-lp__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sc-lp__errors { color: #ff4d4d; font-size: 14px; font-weight: 600; text-align: center; }
.sc-lp__errors:empty { display: none; }
.sc-lp__input { box-sizing: border-box; width: 100%; height: 64px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; background: #f5f8fc; font: 400 16px 'Inter', -apple-system, sans-serif; color: #232323; outline: none; transition: background-color .3s ease, border-color .3s ease; -moz-appearance: textfield; }
.sc-lp__input::placeholder { color: #232323; opacity: .6; }
.sc-lp__input::-webkit-outer-spin-button, .sc-lp__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-lp__input:focus { background: #e8f2fd; border-color: #2daae6; }
.sc-lp__consent { display: flex; align-items: flex-start; gap: 12px; margin: 15px 0 28px; font-size: 14px; line-height: 1.3; color: #515151; text-align: left; }
.sc-lp__consent .checkbox-wrapper { align-self: flex-start; margin: 0 !important; }
.sc-lp__consent .checkbox-custom { border-radius: 6px; }
.sc-lp__consent label { margin: 0; cursor: pointer; }
.sc-lp__consent a { color: #2daae6; font-weight: 500; }
.sc-lp__submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; padding: 0 16px; border: 0; border-radius: 50px; background: #2daae6; color: #fff; font: 600 16px 'Inter', -apple-system, sans-serif; box-shadow: 0 16px 50px 0 rgba(94, 146, 236, .45); cursor: pointer; transition: background-color .3s ease, transform .2s ease, box-shadow .3s ease; }
.sc-lp__submit:hover { background: #2596d1; transform: translateY(-2px); box-shadow: 0 20px 60px 0 rgba(94, 146, 236, .6); }
.sc-lp__submit:disabled { opacity: .7; cursor: default; transform: none; }
.sc-lp__done-icon { display: block; width: 119px; height: 119px; margin: 0 auto 32px; }
.sc-lp__text { margin: 0 0 40px; font-size: 16px; line-height: 24px; color: #232323; }
/* три поля — окно выше основного поп-апа: на низких экранах ноутбуков ужимаем, чтобы кнопка была видна без прокрутки */
@media (max-height: 800px) {
  .sc-lp__box { padding-top: 32px; padding-bottom: 32px; }
  .sc-lp__title { margin-bottom: 24px; }
  .sc-lp__input, .sc-lp__submit { height: 52px; }
  .sc-lp__form { gap: 12px; }
  .sc-lp__consent { margin: 6px 0 10px; }
}
@media (max-width: 991px) {
  .sc-lp__box { padding: 32px 20px; max-width: calc(100% - 12px); }
  .sc-lp__close { top: 14px; right: 14px; }
  .sc-lp__title { margin-bottom: 28px; padding: 0 24px; font-size: 22px; }
  .sc-lp__badge { font-size: 28px; }
  .sc-lp__input, .sc-lp__submit { height: 56px; }
  .sc-lp__form { gap: 14px; }
  .sc-lp__consent { margin: 6px 0 12px; }
}
