.simple-popup {
  font-size: 15px;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.simple-popup.active {
  display: block;
}

.simple-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.simple-popup.closing .simple-popup__overlay {
  animation: fadeOut 0.3s ease forwards;
}

.simple-popup__content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  padding: 27.5px;
  border-radius: 8px;
  max-width: 310px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  animation: popIn 0.3s ease 0.1s forwards;
}

.simple-popup.closing .simple-popup__content {
  animation: popOut 0.3s ease forwards;
}

.simple-popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  transition: color 0.2s ease;
}

.simple-popup__close:hover {
  color: #0073aa;
}

.simple-popup__title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.simple-popup__body {
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes popIn {
  from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.9);
  }
  to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes popOut {
  from {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
  }
  to {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.9);
  }
}

.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.simple-popup-item {
  background: #f9f9f9;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.simple-popup-item h3 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.simple-popup input,
.simple-popup textarea {
  max-width: 100%;
  border-radius: .1875rem;
  border: #d0d0d0 1px solid;
  display: inline-block;
  line-height: 1.45;
  padding: 8.5px 12px;
  box-sizing: border-box;
  margin-top: 3px;
}

.simple-popup textarea {
  height: 80px;
}

.simple-popup label {
  font-weight: normal;
}

.simple-popup form p {
  margin: 10px 0;
}

.simple-popup input[type="submit"] {
  cursor: pointer;
}
