.modal {
  position: fixed;
  inset: 0;
  background: rgba(29, 40, 74, 0.42);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(179, 190, 226, 0.38);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(67, 79, 126, 0.22);
  padding: 28px 24px 24px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(237, 241, 251, 0.92);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #52658f;
  font-weight: 700;
}

.modal-logo {
  display: block;
  width: 190px;
  max-width: 70%;
  margin: 0 0 18px 0;
}

.modal-title {
  font-size: 30px;
  line-height: 1.15;
  color: #25376c;
  margin-bottom: 10px;
  padding-right: 36px;
}

.modal-copy {
  font-size: 16px;
  line-height: 1.7;
  color: #5a6d99;
  margin-bottom: 16px;
}

.modal-perks {
  margin: 0 0 18px 18px;
  color: #4f628d;
  line-height: 1.7;
  font-size: 15px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input--hidden {
  display: none !important;
}

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 16px 17px;
  border-radius: 14px;
  border: 1px solid #d9e0f0;
  font-size: 16px;
  color: #23376c;
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: #9a8cff;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.14);
}

.waitlist-form button {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #9f8cff 0%, #7de2d8 100%);
  box-shadow: 0 14px 28px rgba(112, 122, 215, 0.24);
}

.modal-note {
  margin-top: 4px;
  font-size: 14px;
  color: #7a89b3;
  line-height: 1.6;
}

.form-success,
.form-error {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
}

.form-success {
  color: #2f7a5f;
}

.form-error {
  color: #a24c5f;
}

@media (max-width: 820px) {
  .modal-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .modal-logo {
    width: 160px;
    max-width: 68%;
    margin: 0 0 16px 0;
  }

  .modal-title {
    font-size: 25px;
  }

  .modal-copy {
    font-size: 15px;
  }

  .modal-perks {
    font-size: 14px;
  }
}