/* === Waitlist Modal === */
.ht-wl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.ht-wl-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  width: 90%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  padding: 2rem;
}

.ht-wl-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ht-wl-form h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  text-align: center;
}

/* === Fields === */
.ht-wl-field {
  display: flex;
  flex-direction: column;
}

.ht-wl-field label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ht-wl-field input[type="text"],
.ht-wl-field input[type="email"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.ht-wl-field input[type="text"][aria-invalid="true"],
.ht-wl-field input[type="email"][aria-invalid="true"],
.ht-wl-field input[type="checkbox"][aria-invalid="true"] {
  border-color: #c62828;
  outline: none;
}

/* === Consent checkbox === */
.ht-wl-consent {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.ht-wl-consent label {
  font-weight: normal;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* === Error messages === */
.ht-wl-error {
  display: block !important;
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 4px;
}

.ht-wl-consent .ht-wl-error {
  margin-left: 0;
}

/* === Actions === */
.ht-wl-actions {
  display: flex;
  justify-content: center;
}

.ht-wl-submit {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ht-wl-submit:hover:not(:disabled) {
  background: #005bb5;
}

.ht-wl-submit:disabled {
  background: #999;
  cursor: not-allowed;
}

/* === Status message === */
.ht-wl-msg {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.ht-wl-msg[data-error="1"] {
  color: #c62828;
}