/* ================= DELETE ACCOUNT PAGE ================= */
/* Reuses the landing page's tokens (--download-purple, Inter, pill buttons,
   soft-shadow cards) so this page reads as part of the same site. */

.da-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.da-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 40px;
}

.da-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f4f1fb;
  color: var(--download-purple);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.da-card h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.da-card p.da-lead {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 28px;
}

/* ---------- form ---------- */
.da-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.da-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.da-phone:focus-within {
  border-color: var(--download-purple);
}

.da-phone .da-cc {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
}

.da-phone input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font-size: 16px; /* 16px stops iOS Safari zooming on focus */
  color: #111827;
  min-width: 0;
}

/* OTP boxes */
.da-otp {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.da-otp input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: 0;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.da-otp input::-webkit-outer-spin-button,
.da-otp input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.da-otp input:focus {
  border-color: var(--download-purple);
}

.da-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--download-purple);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.da-btn:hover:not(:disabled) { opacity: 0.9; }
.da-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.da-btn-danger { background: #dc2626; }

.da-btn-ghost {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.da-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.da-btn-row .da-btn { width: auto; flex: 1; }

.da-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--download-purple);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.da-link:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

.da-meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 14px;
  text-align: center;
}

/* ---------- steps ---------- */
.da-step { display: none; }
.da-step.is-active { display: block; }

.da-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.da-dot {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: #e5e7eb;
}

.da-dot.is-on { background: var(--download-purple); }

/* ---------- result states ---------- */
.da-result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 18px;
}

.da-icon-warn   { background: #fef3c7; color: #b45309; }
.da-icon-danger { background: #fee2e2; color: #b91c1c; }
.da-icon-info   { background: #e0e7ff; color: #3730a3; }
.da-icon-ok     { background: #dcfce7; color: #15803d; }

.da-result h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.da-result p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
}

.da-countdown {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  margin: 20px 0;
}

.da-countdown strong {
  font-size: 34px;
  font-weight: 800;
  color: var(--download-purple);
  line-height: 1;
}

.da-countdown span {
  font-size: 14px;
  color: #6b7280;
}

.da-facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.da-facts li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #4b5563;
  padding: 9px 0;
  border-top: 1px solid #f3f4f6;
  line-height: 1.5;
}

.da-facts li:first-child { border-top: 0; }
.da-facts i { color: var(--download-purple); margin-top: 3px; }

/* ---------- feedback ---------- */
.da-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.da-alert.is-shown { display: flex; }
.da-alert-error { background: #fef2f2; color: #b91c1c; }
.da-alert-ok    { background: #f0fdf4; color: #15803d; }

.da-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: da-spin 0.7s linear infinite;
  display: none;
}

.da-btn.is-busy .da-spinner { display: block; }

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

/* reCAPTCHA is invisible, but Firebase still needs a mount point in the DOM. */
#da-recaptcha { display: flex; justify-content: center; }

/* ================= MOBILE ================= */
@media (max-width: 575px) {
  .da-wrap { padding: 24px 0 48px; }

  .da-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .da-card h1 { font-size: 26px; }
  .da-result h2 { font-size: 21px; }

  .da-otp { gap: 7px; }

  .da-otp input {
    height: 50px;
    font-size: 19px;
    border-radius: 12px;
  }

  .da-countdown strong { font-size: 28px; }

  /* Stacked, so neither button ends up too narrow to read */
  .da-btn-row { flex-direction: column; }
}
