/* Aileph waitlist wizard */

.aileph-waitlist-section {
  position: relative;
  z-index: 1;
  padding: 7rem 0 5rem;
  background: #f4f5f7;
  min-height: 70vh;
}

.aileph-waitlist-shell {
  max-width: 720px;
  margin: 0 auto;
}

.aileph-waitlist-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 90, 93, 0.08);
  color: #255a5d;
  font-size: 0.9rem;
  font-weight: 500;
}

.aileph-waitlist-counter[data-aileph-waitlist-count]::before {
  content: none;
}

.aileph-waitlist-progress {
  margin: 1.5rem 0 2rem;
}

.aileph-waitlist-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: rgba(37, 46, 61, 0.65);
}

.aileph-waitlist-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.aileph-waitlist-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, #255a5d, #6366f1);
  transition: width 0.25s ease;
}

.aileph-waitlist-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.aileph-waitlist-step-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #252e3d;
  margin: 0 0 0.35rem;
}

.aileph-waitlist-step-sub {
  margin: 0 0 1.25rem;
  color: rgba(37, 46, 61, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
}

.aileph-waitlist-field {
  margin-bottom: 1.1rem;
}

.aileph-waitlist-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #252e3d;
  margin-bottom: 0.4rem;
}

.aileph-waitlist-field input[type="text"],
.aileph-waitlist-field input[type="email"],
.aileph-waitlist-field input[type="tel"],
.aileph-waitlist-field input[type="url"],
.aileph-waitlist-field textarea,
.aileph-waitlist-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: #252e3d;
  background: #fff;
}

.aileph-waitlist-field textarea {
  min-height: 88px;
  resize: vertical;
}

.aileph-waitlist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aileph-waitlist-chip {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #252e3d;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.aileph-waitlist-chip.is-selected {
  border-color: #255a5d;
  background: rgba(37, 90, 93, 0.1);
  color: #255a5d;
}

.aileph-waitlist-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.aileph-waitlist-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.aileph-waitlist-btn-secondary {
  background: transparent;
  color: #252e3d;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.aileph-waitlist-btn-primary {
  background: #255a5d;
  color: #fff;
  margin-left: auto;
}

.aileph-waitlist-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.aileph-waitlist-preview {
  background: #f4f5f7;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  color: #252e3d;
  line-height: 1.5;
  font-size: 0.95rem;
}

.aileph-waitlist-preview strong {
  color: #255a5d;
}

.aileph-waitlist-notice {
  margin-bottom: 1rem;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.aileph-waitlist-notice.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.aileph-waitlist-notice.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.aileph-waitlist-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Homepage hero counter */
.aileph-hero-waitlist-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  max-width: min(100%, 22rem);
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #252e3d;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .aileph-hero-waitlist-count {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .aileph-waitlist-card {
    padding: 1.25rem;
  }

  .aileph-waitlist-actions {
    flex-direction: column-reverse;
  }

  .aileph-waitlist-btn,
  .aileph-waitlist-btn-primary {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
