/* ══════════════════════════════════════════════════════════════
   НефроСфера — Appointment Modal
   Стили модалки «Записаться на приём». Делаются осознанно в том же
   ключе, что chat.css: тот же overlay, та же ширина, те же CSS-переменные.
   ══════════════════════════════════════════════════════════════ */

.appt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.appt-overlay.active { display: flex; }

.appt-modal {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: apptFadeIn .15s ease-out;
}

@keyframes apptFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.appt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 1rem 1rem 0 0;
}
.appt-header h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.appt-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.appt-close:hover { opacity: .8; }

.appt-body { padding: 20px; }

.appt-body p.appt-lead {
  margin: 0 0 16px;
  color: var(--muted, #555);
  font-size: .95rem;
  line-height: 1.45;
}

.appt-field { margin-bottom: 14px; }

.appt-field label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.appt-field input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border, #d4d4d8);
  border-radius: .5rem;
  font-family: inherit;
  outline: none;
  transition: border-color .12s;
}
.appt-field input[type="tel"]:focus {
  border-color: var(--primary);
}

.appt-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  line-height: 1.4;
  color: #444;
}
.appt-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.appt-consent a { color: var(--primary); text-decoration: underline; }

/* Honeypot — невидимое для людей поле, ловит ботов.
   Используем абсолютное смещение за пределы экрана, а не display:none:
   некоторые умные боты пропускают всё, что display:none или hidden. */
.appt-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.appt-captcha {
  margin: 14px 0;
  min-height: 100px;  /* зарезервировано под виджет, чтобы layout не прыгал */
}

.appt-error {
  display: none;
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #fdecec;
  border: 1px solid #f5b8b8;
  color: #a02020;
  border-radius: .5rem;
  font-size: .9rem;
}
.appt-error.visible { display: block; }

.appt-success {
  display: none;
  text-align: center;
  padding: 24px 20px;
}
.appt-success.visible { display: block; }
.appt-success i {
  font-size: 2.5rem;
  color: #2c8a4a;
  margin-bottom: 12px;
}
.appt-success h4 { margin: 0 0 8px; font-size: 1.1rem; }
.appt-success p { margin: 0; color: #555; font-size: .95rem; }

.appt-submit {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: .5rem;
  cursor: pointer;
  transition: opacity .12s, background .12s;
}
.appt-submit:hover { opacity: .9; }
.appt-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}
