/* Onboarding portal — WhatsApp verification screen.
   Extends the design system in styles.css; tokens are inherited from :root there. */

.verify-body {
  padding: 22px 26px 8px;
}

/* --- The code the guest sends --- */
.otp-display {
  display: block;
  text-align: center;
  margin: 0 0 18px;
  padding: 18px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--magenta-100);
}
.otp-display .otp-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta-700);
  margin-bottom: 8px;
}
.otp-display .otp-code {
  display: block;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: var(--navy-800);
  /* Tabular figures stop the code shifting as digits change. */
  font-variant-numeric: tabular-nums;
}
.otp-display .otp-expiry {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* --- Steps telling the guest what to do --- */
.verify-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.verify-steps li {
  position: relative;
  padding: 0 0 0 34px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.verify-steps li:last-child { margin-bottom: 0; }
.verify-steps .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- WhatsApp call to action --- */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-whatsapp:hover { filter: brightness(0.95); }
.btn-whatsapp:active { transform: translateY(1px); }
.btn-whatsapp .wa-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

/* --- Waiting / result status --- */
.verify-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.verify-status.is-verified {
  background: #ECFDF5;
  color: var(--success);
  font-weight: 700;
}
.verify-status.is-expired {
  background: #FEF2F2;
  color: var(--error);
  font-weight: 700;
}

/* Spinner shown only while waiting for the message to arrive. */
.verify-status .spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--magenta-500);
  border-radius: 50%;
  animation: verify-spin 0.8s linear infinite;
}
.verify-status.is-verified .spinner,
.verify-status.is-expired .spinner { display: none; }

@keyframes verify-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .verify-status .spinner { animation: none; }
}

/* --- Resend / change number --- */
.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}
.verify-actions button {
  background: none;
  border: 0;
  padding: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--magenta-600);
  text-decoration: underline;
  cursor: pointer;
}
.verify-actions button[disabled] {
  color: var(--ink-muted);
  text-decoration: none;
  cursor: default;
}
