/* OnCallAlert - waitlist form (js/waitlist.js) and thank-you page */

.wl-card {
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2.2rem;
}

.wl-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.wl-req {
  color: #f87171;
}

.wl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.wl-textarea {
  resize: vertical;
  font-family: var(--font-sans);
  min-height: 3.2rem;
}

.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wl-chip {
  position: relative;
  cursor: pointer;
}

/* Visually hidden but still focusable and readable by screen readers */
.wl-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wl-chip span {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wl-chip:hover span {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.wl-chip input:checked + span {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(0, 242, 254, 0.1);
}

.wl-chip input:focus-visible + span {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.wl-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0.4rem 0 1rem;
  cursor: pointer;
}

.wl-consent input {
  margin-top: 0.2rem;
  accent-color: var(--accent-cyan);
  flex-shrink: 0;
}

.wl-consent a {
  color: var(--text-primary);
  text-decoration: underline;
}

.wl-error {
  display: none;
  color: #f87171;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wl-note {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .wl-card {
    padding: 1.6rem 1.2rem;
  }

  .wl-row {
    grid-template-columns: 1fr;
  }
}

/* ── Thank-you page ── */

.wl-thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 16px 4rem;
}

.wl-thanks-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}

.wl-thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #07090e;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  box-shadow: var(--shadow-cyan);
}

.wl-thanks-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.wl-thanks-sub {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.wl-thanks-perk {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 242, 254, 0.25);
  background: rgba(0, 242, 254, 0.06);
  margin-bottom: 2rem;
}

.wl-thanks-perk strong {
  color: var(--text-primary);
}

.wl-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.wl-share a,
.wl-share button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}

.wl-share a:hover,
.wl-share button:hover {
  border-color: var(--accent-cyan);
}
