/* The account-deletion page. The shell — palette, header, footer, the white
   sheet — comes from legal.css; this is only the form on top of it.

   Touch targets are 44px or more throughout: most of the people who reach
   this page are on a phone, and some of them have already uninstalled the app
   and are not feeling patient. */

.lede{font-size:1.06rem;margin:0 0 1.5rem}

/* --- Where you are ------------------------------------------------------- */

.steps{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;margin:0 0 1.6rem;padding:0;list-style:none;font-size:.9rem;font-weight:500;opacity:.55}
.steps li{display:flex;align-items:center;gap:.45rem}
.steps span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;
  background:rgba(16,48,43,.12);font-size:.8rem;font-weight:700}
.steps .is-now{opacity:1}
.steps .is-now span{background:var(--orange);color:#fff}
.steps .is-done span{background:var(--ink);color:#fff}
.steps .is-done{opacity:.8}

/* --- Steps and messages -------------------------------------------------- */

.step{margin:0 0 1.4rem}
.step h2{font:800 1.25rem/1.3 var(--display);margin:0 0 .7rem}
.step h2+p,.step>p{margin:0 0 1rem}

.note{margin:0 0 1.3rem;padding:.8rem 1rem;border-radius:12px;border:1px solid rgba(176,48,32,.3);
  background:rgba(176,48,32,.07);color:#8E2A1C;font-size:.96rem}
.note.is-good{border-color:rgba(16,48,43,.2);background:rgba(16,48,43,.05);color:var(--ink)}

/* --- Account type -------------------------------------------------------- */

.types{border:0;margin:0 0 1.4rem;padding:0;display:grid;gap:.7rem}
.types legend{padding:0;margin:0 0 .7rem;font-weight:700}
.type{display:flex;align-items:flex-start;gap:.75rem;padding:.95rem 1rem;cursor:pointer;
  border:1.5px solid var(--line);border-radius:14px;background:#fff;transition:border-color .15s,background .15s}
.type:hover{border-color:rgba(255,138,0,.5)}
.type input{flex:none;width:20px;height:20px;margin:.15rem 0 0;accent-color:var(--orange)}
.type:has(input:checked){border-color:var(--orange);background:rgba(255,138,0,.06)}
.type:has(input:focus-visible){outline:3px solid rgba(255,138,0,.4);outline-offset:2px}
.type-body{display:block}
.type-name{display:block;font-weight:700}
.type-desc{display:block;margin-top:.1rem;font-size:.92rem;opacity:.72}

/* --- Fields -------------------------------------------------------------- */

.field{margin:0 0 1.2rem}
.field label{display:block;margin-bottom:.4rem;font-weight:700}
.help{margin:.5rem 0 0;font-size:.92rem;opacity:.75;line-height:1.6}

input[type=tel],input[type=text]{width:100%;min-height:48px;padding:.6rem .85rem;
  font:400 1.05rem var(--body);color:var(--text);background:#fff;
  border:1.5px solid var(--line);border-radius:12px}
input:focus-visible{outline:3px solid rgba(255,138,0,.4);outline-offset:1px;border-color:var(--orange)}

/* The country code sits inside the box, so the number reads as one field. */
.phone{display:flex;align-items:stretch;border:1.5px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.phone:focus-within{border-color:var(--orange);outline:3px solid rgba(255,138,0,.4);outline-offset:1px}
.phone .cc{display:grid;place-items:center;padding:0 .8rem;font-weight:700;
  background:rgba(16,48,43,.05);border-right:1.5px solid var(--line)}
.phone input{border:0;border-radius:0;flex:1;min-width:0}
.phone input:focus-visible{outline:0}

.code{max-width:9rem;letter-spacing:.35em;font-size:1.3rem;text-align:center}

/* --- Buttons ------------------------------------------------------------- */

.row{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}

.btn{min-height:48px;padding:.7rem 1.4rem;font:700 1rem var(--body);color:#fff;
  background:var(--orange);border:1.5px solid transparent;border-radius:999px;cursor:pointer;
  transition:filter .15s,background .15s}
.btn:hover:not(:disabled){filter:brightness(.94)}
.btn:focus-visible{outline:3px solid rgba(255,138,0,.45);outline-offset:2px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn[aria-busy=true]{cursor:progress}

.btn-quiet{color:var(--ink);background:#fff;border-color:var(--line)}
.btn-quiet:hover:not(:disabled){background:rgba(16,48,43,.04);filter:none}
.btn-link{color:var(--ink);background:none;border-color:transparent;text-decoration:underline;padding-inline:.6rem}
.btn-link:hover:not(:disabled){filter:none;opacity:.72}
.btn-danger{background:#B0301F}
.btn-danger:focus-visible{outline-color:rgba(176,48,32,.45)}

/* --- Confirmation -------------------------------------------------------- */

.summary{margin:0 0 1.2rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:14px;
  background:rgba(16,48,43,.03);display:grid;grid-template-columns:auto 1fr;gap:.45rem 1rem;font-size:.97rem}
.summary dt{font-weight:700;opacity:.7}
.summary dd{margin:0}

.agree{display:flex;align-items:flex-start;gap:.7rem;margin:0 0 1.1rem;cursor:pointer;line-height:1.6}
.agree input{flex:none;width:22px;height:22px;margin:.1rem 0 0;accent-color:#B0301F}
.agree:has(input:focus-visible){outline:3px solid rgba(176,48,32,.4);outline-offset:3px;border-radius:4px}

.done h2{color:#1C6B4A}

/* --- The explanation underneath ------------------------------------------ */

#what-happens h2{font:800 1.35rem/1.3 var(--display);margin:1.8rem 0 .7rem}
#what-happens h3{font:800 1.1rem/1.35 var(--display);margin:1.5rem 0 .5rem}
#what-happens p{margin:0 0 .85rem}
#what-happens a{color:#B55F00}
.contact{margin:0 0 1rem;padding-left:1.3rem}
.contact li{margin-bottom:.3rem}

hr{margin:2rem 0 .5rem;border:0;border-top:1px solid var(--line)}

@media (max-width:420px){
  .summary{grid-template-columns:1fr;gap:.15rem}
  .summary dd{margin-bottom:.6rem}
  .row .btn{width:100%}
  .btn-link{width:auto}
}
