/* Flow pages: contact, generic bank mask, confirmation.
   Loaded after vinted.css, so every rule here is an override. */

body {
  background: var(--bg);
}

@media (max-width: 759px) {
  body.has-cta {
    padding-bottom: calc(136px + var(--safe-b));
  }
}

/* ---------- frame ---------- */

.crumb a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

main {
  width: 100%;
}

.page-narrow {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
}

.sheet-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100dvh - 61px);
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.pad {
  width: 100%;
  padding: 18px 20px 6px;
  text-align: center;
}

.pad-b {
  padding-bottom: 4px;
}

/* ---------- step bar ---------- */

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 20px 0;
  border-bottom: 0;
  overflow: visible;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.2;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  white-space: nowrap;
  font-weight: 500;
}

.step b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
}

.step.on {
  color: var(--teal);
  font-weight: 600;
}

.step.on b {
  border-color: transparent;
  background: var(--teal-soft);
  color: var(--teal);
}

.step.done {
  color: var(--faint);
}

.step.done b {
  border-color: transparent;
  background: var(--teal-soft);
  color: var(--teal);
}

.step-line {
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--line-soft);
}

/* ---------- headings & copy ---------- */

.h2,
.done-wrap h1,
.bc-title {
  display: block;
  max-width: 20em;
  margin: 18px auto 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.2px;
  text-align: center;
  text-wrap: balance;
}

.lede,
.done-wrap > p,
.bankcard-sub {
  max-width: 46ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

/* ---------- fields ---------- */

.field {
  margin: 0 0 16px;
  text-align: left;
}

.field label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #8a8a8a;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
}

.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 119, 130, .55);
}

.input.err {
  border-color: #c62828;
  background: #fdf3f3;
  box-shadow: none;
}

.input.err:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .14);
}

.input::placeholder {
  color: #757575;
}

.row-2 {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.field .hint {
  max-width: 48ch;
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.err-msg {
  max-width: 48ch;
  margin: 6px 0 0;
  color: #b3261e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

/* ---------- checkbox ---------- */

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.checkline input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}

.checkline span {
  max-width: 48ch;
  padding-top: 1px;
}

/* ---------- actions ---------- */

.btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.btn:hover {
  background: var(--teal-dark);
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn.ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--surface);
}

.btn svg {
  flex: none;
}

.cta-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  padding: 12px max(20px, calc((100vw - 460px) / 2 + 20px)) calc(12px + var(--safe-b));
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}

.cta-bar .btn {
  max-width: min(100%, 420px);
  margin: 0 auto;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 46ch;
  margin: 9px auto 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.cta-note svg {
  flex: none;
}

/* ---------- confirmation ---------- */

.done-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px 20px 34px;
  text-align: center;
}

.done-ic {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
}

.done-ic svg {
  width: 34px;
  height: 34px;
}

.done-wrap h1 {
  margin-top: 0;
}

.done-wrap > p {
  margin-bottom: 24px;
}

.receipt {
  max-width: 380px;
  margin: 0 auto 24px;
  padding: 4px 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.receipt div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.receipt div:last-child {
  border-bottom: 0;
}

.receipt .k {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

.receipt .v {
  max-width: 60%;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.trust {
  display: grid;
  gap: 14px;
  max-width: 46ch;
  margin: 0 auto 24px;
  padding: 0;
  border-top: 0;
  list-style: none;
  text-align: left;
}

.trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trust li > div {
  max-width: 42ch;
}

.trust li svg {
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}

.trust li strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.trust li span {
  display: block;
}

.tiny {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.done-wrap .btn {
  max-width: 100%;
}

.done-wrap .tiny {
  margin-top: 16px;
}

/* ---------- generic bank mask ---------- */

.bankcard {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.bankcard-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 18px 0 22px;
  text-align: center;
}

.bank-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.bank-logo svg {
  width: 24px;
  height: 24px;
}

.bankcard-title {
  width: 100%;
}

.bc-title {
  margin: 0 auto 6px;
}

.bankcard-sub {
  margin: 0 auto;
  font-size: 13.5px;
}

.bankcard form {
  text-align: left;
}

.bankcard .cta-bar {
  margin-top: 22px;
}

.bankcard .tiny {
  margin-top: 16px;
  text-align: left;
}

/* ---------- footer ---------- */

.foot {
  margin-top: 22px;
  padding: 20px 20px 26px;
  font-size: 12px;
}

.foot-in {
  max-width: 460px;
}

.foot-cols {
  gap: 12px;
  margin-bottom: 12px;
}

.foot a {
  padding: 10px 0;
  min-height: 44px;
}

/* ---------- desktop ---------- */

@media (min-width: 760px) {
  body.has-cta {
    padding-bottom: 0;
  }

  main {
    padding: 26px 20px 40px;
  }

  .sheet-card {
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .steps {
    padding: 18px 24px 0;
  }

  .pad {
    padding: 6px 24px 6px;
  }

  .pad-b {
    padding-bottom: 24px;
  }

  .done-wrap {
    padding: 32px 28px 34px;
  }

  .bankcard-head {
    margin-top: 10px;
  }

  .bankcard .cta-bar {
    position: static;
    margin: 22px 0 0;
    padding: 0;
    border-top: 0;
  }

  .cta-bar {
    position: static;
    margin-top: 22px;
    padding: 0;
    border-top: 0;
    background: transparent;
  }

  .cta-bar .btn {
    max-width: 100%;
  }

  .done-wrap .btn {
    max-width: 100%;
  }

  .foot {
    padding: 20px;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- contact ---------- */

body.contact {
  background: var(--white);
}

.contact .page-narrow {
  max-width: 460px;
  padding: 0;
}

.contact .sheet-card {
  min-height: calc(100dvh - 53px - var(--safe-t));
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.contact .steps {
  gap: 7px;
  padding: 18px 0 18px;
  color: var(--faint);
  font-size: 11.5px;
}

.contact .step {
  gap: 5px;
  font-weight: 500;
}

.contact .step b {
  width: 16px;
  height: 16px;
  font-size: 9.5px;
}

.contact .step.on {
  font-weight: 600;
}

.contact .step-line {
  width: 14px;
}

.contact .pad,
.contact .pad-b {
  padding: 0 20px 24px;
}

.contact .h2 {
  max-width: 19em;
  margin: 0 auto 6px;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -.15px;
}

.contact .lede {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact .field {
  margin: 0 0 14px;
}

.contact .field label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.contact .err-msg {
  margin: 5px 0 0;
  color: #b3261e;
  font-size: 12px;
}

.contact .checkline {
  min-height: 44px;
  align-items: center;
  margin: 14px 0 20px;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact .checkline input {
  width: 20px;
  height: 20px;
}

.contact .checkline span {
  padding-top: 0;
}

.contact .cta-bar {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact .cta-bar .btn {
  max-width: 100%;
}

.contact .cta-note {
  margin-top: 8px;
  font-size: 11.5px;
}

@media (min-width: 760px) {
  body.contact {
    background: var(--bg);
  }

  .contact .sheet-card {
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .contact .steps {
    padding-top: 20px;
  }

  .contact .pad,
  .contact .pad-b {
    padding: 0 24px 24px;
  }

  .contact .h2 {
    font-size: 22px;
  }
}
