/* css/form-module.css */

/* === Плавающая кнопка «Записаться» === */
.consult-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
  padding: 1em 2em;
  font-size: 1.1em;
  background: linear-gradient(45deg, #FFD700, #FFC107);
  color: #000;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.consult-btn.visible {
  opacity: 0.9;
  pointer-events: auto;
}
.consult-btn:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

/* === Контейнер попапа === */
#consultation-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#consultation-popup.open {
  display: flex;
}

/* === Затемнённый фон === */
.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* === Окно формы === */
.popup-content {
  position: relative;
  background: #fff;
  padding: 2em;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;        /* ограничение по высоте экрана */
  overflow-y: auto;       /* скролл внутри */
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* === Крестик закрытия === */
.popup-close {
  position: absolute;
  top: 0.5em; right: 0.5em;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

/* === Поля формы === */
#consultation-form-element label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}
#consultation-form-element input,
#consultation-form-element select,
#consultation-form-element textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.25em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

/* === Отображение значения слайдера === */
#consultation-form-element .scale-value {
  text-align: center;
  margin-top: 0.5em;
  font-weight: bold;
  font-size: 1em;
}

/* === Кнопка отправки === */
.submit-btn {
  margin-top: 1.5em;
  width: 100%;
  padding: 0.8em;
  font-size: 1em;
}

/* === Адаптив для мобильных === */
@media (max-width: 480px) {
  .popup-content {
    padding: 1.5em;
    width: 95%;
    max-height: 95vh;
  }
}

/* === Hero CTA-кнопка === */
.hero-cta-btn {
  padding: 1em 2em;
  font-size: 1.2em;
  background: linear-gradient(45deg, #FFD700, #FFC107);
  color: #000;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}
.hero-cta-btn:hover {
  transform: scale(1.05);
  opacity: 1;
}
