body { background: var(--bg); }
.hero {
  background: var(--red); color: #fff; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 76px;
  background-image: repeating-linear-gradient(-18deg, transparent 0 26px, rgba(255, 255, 255, .07) 26px 30px);
}
.hero-in { max-width: 560px; margin: 0 auto; display: grid; gap: 6px; }
.hero .logo-mark { color: #fff; height: 32px; margin-bottom: 16px; }
.hero h1 { font-size: 34px; font-weight: 900; font-stretch: 88%; letter-spacing: -0.025em; }
.hero p { margin: 0; opacity: .92; font-weight: 550; }
.hero p a { color: #fff; font-weight: 750; }

.wrap { max-width: 560px; margin: -52px auto 48px; padding: 0 14px; display: grid; gap: 14px; }
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.card h2 { font-size: 19px; font-weight: 850; letter-spacing: -0.01em; }
.hint { text-align: center; color: var(--ink-3); margin: 4px 0 0; font-size: 14px; }
.hint a { color: var(--ink); font-weight: 700; }

/* Two big choice cards */
.pick { display: grid; gap: 14px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type { position: relative; cursor: pointer; display: grid; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type-in {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 14px 14px 16px; border-radius: 16px; border: 2px solid var(--line);
  background: #fff; transition: border-color .15s, background .15s, transform .08s; -webkit-tap-highlight-color: transparent;
}
.type:active .type-in { transform: scale(.98); }
.type .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 4px; }
.type .ic svg { width: 26px; height: 26px; }
.type-post .ic { background: #fff1d6; color: #9a4a07; }
.type-c2c .ic { background: #dcf5e9; color: #0a7a51; }
.type b { font-size: 17px; font-weight: 850; line-height: 1.15; }
.type small { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.type .tick {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
}
.type input:checked + .type-in { border-color: var(--ink); background: #fbfaf8; box-shadow: 0 0 0 3px rgba(22, 23, 27, .06); }
.type input:checked + .type-in .tick { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px #fff; }
.type input:focus-visible + .type-in { outline: 2px solid var(--red); outline-offset: 2px; }

/* Form */
.form { display: grid; gap: 22px; scroll-margin-top: 12px; }
.fs { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.fs legend {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--red); padding: 0; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.fs legend::after { content: ''; flex: 1; height: 1.5px; background: var(--line-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field > span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.opt { font-style: normal; font-weight: 500; color: var(--ink-3); }
.zpill {
  display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); margin-left: 2px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14px; transition: .12s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.seg { display: flex; }
.seg label { flex: 1; }
.seg span { text-align: center; padding: 9px 10px; }

.est { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.est small { font-size: 12px; color: var(--ink-3); font-weight: 650; }
.est b { font-size: 20px; font-weight: 850; font-stretch: 92%; }
.est p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.err { color: var(--st-failed); font-weight: 650; font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.fine { margin: -8px 0 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.okcard { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 20px 22px; }
.ok-mark {
  width: 58px; height: 58px; border-radius: 50%; background: var(--st-delivered); color: #fff; display: grid; place-items: center;
  font-size: 30px; font-weight: 900; box-shadow: 0 0 0 8px var(--st-delivered-bg); margin-bottom: 8px;
}
.eyebrow { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--ink-3); }
.ok-code { font-size: 38px; font-weight: 900; font-stretch: 88%; letter-spacing: -0.02em; line-height: 1; }
.ok-text { margin: 6px 0 0; color: var(--ink-2); max-width: 380px; }
.ok-fee { margin-top: 8px; width: 100%; background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.ok-fee small { font-size: 12px; color: var(--ink-3); font-weight: 650; }
.ok-fee b { font-size: 22px; font-weight: 850; }
.ok-fee span { font-size: 13.5px; color: var(--ink-2); }
.trackcard { display: grid; gap: 12px; }
.trackcard p { margin: -6px 0 0; }
.linkbox input { font-size: 14px; background: var(--bg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.after { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 420px) {
  .hero h1 { font-size: 30px; }
  .card { padding: 18px 16px; }
  .types { gap: 8px; }
  .type-in { padding: 12px 12px 14px; }
  .type b { font-size: 16px; }
  .type small { font-size: 12.5px; }
  .grid2 { grid-template-columns: 1fr; }
}
