.checkbox-box {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.modal h2 {
  font-size: 20px;
  text-align: center;
}


/* ===== OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

/* ===== MODAL ===== */
.modal {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 16px;
  box-sizing: border-box;
  position: relative;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .modal {
    max-width: 100%;
    padding: 20px;
    border-radius: 14px;
  }

  .modal h2 {
    font-size: 20px;
    text-align: center;
  }

  .modal input,
  .modal button {
    font-size: 16px;
  }
}

/* ===== CLOSE ===== */
.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
}

/* ===== FORM ===== */
.modal label {
  font-size: 14px;
  margin-top: 14px;
  display: block;
}

.modal input[type="text"],
.popup input[type="text"],
.modal input[type="email"],
.popup input[type="email"],
.popup input[type="tel"],
.modal input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 16px;
  box-sizing: border-box;
}

.modal input:focus {
  outline: none;
  border-color: #00e676;
}

/* ===== CHECKBOXES ===== */
.checkboxes {
  margin-top: 16px;
}

/* ⛔ ПЕРЕОПРЕДЕЛЯЕМ label */
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;

  /* критично */
  white-space: nowrap;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-text {
  font-size: 13px;
  line-height: 1.3;
}


/* ===== WARNING TEXT ===== */
.conditions-warning {
  display: none;
  margin-top: 10px;
  margin-bottom: 6px;
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

/* ===== BUTTON ===== */
.popup button,
#submitBtn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  background: #00e676;
  color: #1f1f1f;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.popup button:disabled,
#submitBtn:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* ===== PULSE ANIMATION (РАБОТАЕТ НА МОБИЛЬНЫХ) ===== */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,230,118,0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0,230,118,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,230,118,0);
  }
}

/* ❗ АНИМАЦИЯ НА LABEL, НЕ НА INPUT */
.checkbox-box.pulse {
  animation: pulse 1.4s infinite;
}
