.esihlentu-form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.esihlentu-form-status.is-success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.esihlentu-form-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.esihlentu-static-form button[disabled] {
  opacity: 0.75;
  cursor: wait;
}

body.esihlentu-modal-open {
  overflow: hidden;
}

.esihlentu-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
}

.esihlentu-subscribe-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 15px;
}

.esihlentu-subscribe-form button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid #1a7efb;
  border-radius: 8px;
  background: #1a7efb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.esihlentu-subscribe-form button:hover {
  background: #ffffff;
  color: #1a7efb;
}

.esihlentu-success-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.esihlentu-success-popup[hidden] {
  display: none !important;
}

.esihlentu-success-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 29, 60, 0.7);
  backdrop-filter: blur(4px);
}

.esihlentu-success-popup__dialog {
  position: relative;
  width: min(92vw, 520px);
  margin: min(12vh, 90px) auto 0;
  padding: 34px 28px 28px;
  border-radius: 24px;
  background: #ffffff;
  color: #031d3c;
  text-align: center;
  box-shadow: 0 30px 80px rgba(3, 29, 60, 0.28);
}

.esihlentu-success-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(3, 29, 60, 0.08);
  color: #031d3c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.esihlentu-success-popup__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #37c2cc, #1a7efb);
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
}

.esihlentu-success-popup__title {
  margin: 0 0 12px;
  color: #031d3c;
  font-size: 30px;
  line-height: 1.2;
}

.esihlentu-success-popup__message {
  margin: 0 0 22px;
  color: #606f8e;
  font-size: 16px;
  line-height: 1.7;
}

.esihlentu-success-popup__button {
  min-width: 150px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #1a7efb;
  border-radius: 999px;
  background: #1a7efb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.esihlentu-success-popup__button:hover,
.esihlentu-success-popup__close:hover {
  background: #37c2cc;
  border-color: #37c2cc;
  color: #ffffff;
}

@media (max-width: 767px) {
  .esihlentu-subscribe-form {
    grid-template-columns: 1fr;
  }

  .esihlentu-success-popup__dialog {
    margin-top: 40px;
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .esihlentu-success-popup__title {
    font-size: 25px;
  }
}
