:root {
  --bg: #f3faec;
  --surface: #ffffff;
  --white: #ffffff;
  --mint: #f3faec;
  --ink: #10231c;
  --ink-soft: #5c6f66;
  --muted: #5c6f66;
  --line: #dce8d4;
  --field-line: #cfe0c4;
  --brand: #145c43;
  --brand-deep: #0c3d2e;
  --forest-deep: #06281c;
  --brand-tint: #e8f8c4;
  --lime: #b8ec4a;
  --warn-bg: #fff8e1;
  --warn-line: #ffe082;
  --warn-ink: #8a6200;
  --danger: #c62828;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(6, 40, 28, 0.1);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 90% -8%, rgba(184, 236, 74, 0.28), transparent 55%),
    radial-gradient(800px 400px at -10% 10%, rgba(20, 92, 67, 0.1), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.lang-bar {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 40;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23145c43' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--brand);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 40, 28, 0.1);
}

.page-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.page-logo img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(12, 61, 46, 0.14);
}

.page-logo .pl-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-logo .pl-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page-logo .pl-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Landing ---------- */
.cancel-main {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 48px 24px 72px;
}

.cancel-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: none;
}

.cancel-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.cancel-lede {
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.overview-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.overview-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.overview-step .dot {
  width: 28px;
  height: 28px;
  flex: none;
  margin-bottom: 10px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.overview-step b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.overview-step span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.cancel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cancel-card-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.cancel-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.cancel-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cancel-card-body {
  padding: 20px 28px 28px;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.term {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mint);
}

.term .num {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.92rem;
}

.term h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.term p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.notice {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--warn-ink);
}

.notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--warn-ink);
}

.action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.action-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.action-card p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.action-card .reassure {
  margin: 0 0 20px;
}

.reassure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--mint);
}

.reassure .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.reassure .row svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}

.reassure .row b {
  color: var(--ink);
}

/* ---------- Form flow ---------- */
.cancel-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}

.shell {
  width: 100%;
  max-width: 840px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px 40px;
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin-bottom: 36px;
}

.snode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scirc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--field-line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.scirc svg {
  width: 18px;
  height: 18px;
  display: none;
}

.slabel {
  position: absolute;
  top: 46px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.sline {
  height: 3px;
  background: var(--field-line);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.snode.current .scirc {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-tint);
}

.snode.current .slabel {
  color: var(--brand);
}

.snode.done .scirc {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.snode.done .scirc .snum {
  display: none;
}

.snode.done .scirc svg {
  display: block;
}

.snode.done .slabel {
  color: var(--brand-deep);
}

.sline.fill {
  background: var(--brand);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fade 0.28s ease;
}

@keyframes fade {
  from {
    transform: translateY(6px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.step h2 {
  margin: 6px 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.step .sub {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.field {
  margin-bottom: 18px;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.field .req {
  color: var(--danger);
  margin-left: 2px;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #9aafa3;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(184, 236, 74, 0.35);
}

.input.err {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.phone-row {
  display: flex;
  gap: 10px;
}

.phone-pre {
  flex: none;
  width: 92px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  background: var(--mint, #f3faec);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.phone-row .input {
  flex: 1;
}

.err-msg {
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 0.8rem;
  color: var(--danger);
}

.err-msg.show {
  display: flex;
}

.err-msg svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0 24px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: var(--forest-deep, #06281c);
  background: linear-gradient(150deg, var(--lime) 5%, #8fd42a 100%);
  box-shadow: 0 12px 24px -12px rgba(143, 212, 42, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: #fff;
  color: var(--ink-soft);
  border: 1.5px solid var(--field-line);
}

.btn-block {
  width: 100%;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(6, 40, 28, 0.25);
  border-top-color: var(--brand-deep);
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

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

.otp-info {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--brand-tint);
  border: 1px solid #cfe8a8;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--brand-deep);
}

.otp-info svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.timer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timer {
  min-width: 64px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
}

.timer.expired {
  border-color: var(--field-line);
  color: var(--muted);
}

.resend {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

.resend:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.review {
  text-align: center;
  padding: 12px 0 6px;
}

.review .rev-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  border: 1px solid #cfe8a8;
}

.review .rev-icon svg {
  width: 36px;
  height: 36px;
  color: var(--brand-deep);
}

.review .rev-icon .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0.35;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.review h2 {
  margin-bottom: 12px;
}

.review p {
  max-width: 48ch;
  margin: 0 auto 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.ref-box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--mint, #f3faec);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.ref-box b {
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.copied {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-tint);
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.cancel-foot {
  border-top: 1px solid var(--line);
  background: #06281c;
  color: #9fb8a8;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cancel-foot p {
  margin: 0;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .cancel-main {
    padding: 36px 18px 56px;
  }

  .overview-steps,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 26px 18px 30px;
  }

  .slabel {
    font-size: 0.72rem;
  }

  .stepper {
    margin-bottom: 48px;
  }
}
