:root {
  --c: #2e7d32;
  --bg: #f0f2f5;
  --mut: #6b7280;
  --line: #eef0f4;
  --ink: #222
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial
}

.wrap {
  max-width: 980px;
  margin: 48px auto;
  padding: 0 16px
}

.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  display: grid;
  grid-template-columns: 1.1fr .9fr
}

.left {
  padding: 28px 32px
}

.right {
  padding: 28px 32px;
  border-left: 1px solid var(--line);
  background: #fafbfc
}

h1 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--ink)
}

.muted {
  color: var(--mut);
  font-size: 14px
}

.brand {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .2px;
  margin: 12px 0 22px
}

label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6e4;
  border-radius: 4px;
  font-size: 15px
}

.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: var(--c);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed
}

.btn.secondary {
  background: #e5e7eb;
  color: #111
}

.help {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mut)
}

.err {
  color: #b00020;
  margin-top: 10px
}

.ok {
  color: #0a7d2a;
  margin-top: 10px
}

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

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef7ee;
  color: #0a7d2a;
  font-size: 12px;
  font-weight: 600
}

.step {
  display: none
}

.step.active {
  display: block
}

.step-title {
  font-weight: 700;
  margin: 0 0 8px
}

.progress {
  height: 6px;
  background: #eceff3;
  border-radius: 99px;
  overflow: hidden;
  margin: 0 0 16px
}

.progress>i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c)
}

.choice {
  display: grid;
  gap: 10px
}

.choice button {
  all: unset;
  background: #fff;
  border: 1px solid #d7dce6;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer
}

.choice button:hover {
  border-color: #b9c1d3
}

.note {
  font-size: 13px;
  color: var(--mut)
}

@media (max-width:860px) {
  .card {
    grid-template-columns: 1fr
  }
}

/* ---------- Right-pane payment box ---------- */
.paybox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px
}

.paybox h2 {
  margin: 0 0 8px;
  font-size: 16px
}

.qr {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap
}

.addr-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.addr-chip {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #f6f7f9;
  border: 1px solid #e2e6ef;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  user-select: all
}

.small {
  font-size: 12px;
  color: var(--mut)
}

.paybox .actions {
  display: flex;
  gap: 10px;
  margin-top: 10px
}

/* Receipt upload */
.drop {
  border: 1.5px dashed #cfd6e4;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #fbfcfe
}

.drop.drag {
  background: #f2f7ff;
  border-color: #9fb8ff
}

/* ---------- Modal (guide book) ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 14, .55);
  z-index: 50;
  padding: 18px
}

.modal.open {
  display: flex
}

.modal .sheet {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  max-width: 720px;
  width: 100%
}

@media (max-width:860px) {
  .modal .sheet {
    width: 94vw
  }
}

.sheet header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.sheet header h2 {
  margin: 0;
  font-size: 20px;
  color: #111
}

.sheet .content {
  padding: 18px 20px;
  max-height: 70vh;
  overflow: auto;
  font-size: 16px;
  color: #111
}

.sheet .nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 18px;
  border-top: 1px solid var(--line)
}

.pill {
  background: #eef7ee;
  color: #0a7d2a;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px
}

.pill.dark {
  background: #111;
  color: #fff
}

/* ---------- Link button ---------- */
.linkbtn {
  all: unset;
  display: inline-block;
  background: #1f6feb;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer
}

.linkbtn:active {
  opacity: .9
}

/* Pulse (legacy) */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 111, 235, .6)
  }

  70% {
    box-shadow: 0 0 0 14px rgba(31, 111, 235, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(31, 111, 235, 0)
  }
}

.linkbtn.pulse {
  animation: pulse 1.25s ease-out infinite;
  position: relative
}

.linkbtn.pulse::after {
  content: "Tap to open PayPal";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -30px;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Shockwave attention */
.linkbtn.shockwave.is-active {
  animation: shockwaveJump 1s ease-out infinite;
  position: relative
}

.linkbtn.shockwave.is-active::before,
.linkbtn.shockwave.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px
}

.linkbtn.shockwave.is-active::before {
  animation: shockwave 1s .50s ease-out infinite
}

.linkbtn.shockwave.is-active::after {
  animation: shockwave 1s .65s ease-out infinite
}

@keyframes shockwaveJump {
  0% {
    transform: scale(1)
  }

  40% {
    transform: scale(1.08)
  }

  50% {
    transform: scale(0.98)
  }

  55% {
    transform: scale(1.02)
  }

  60% {
    transform: scale(0.98)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes shockwave {
  0% {
    transform: scale(1);
    box-shadow: 0 0 2px rgba(0, 0, 0, .15), inset 0 0 1px rgba(0, 0, 0, .15)
  }

  95% {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0), inset 0 0 30px rgba(0, 0, 0, 0)
  }

  100% {
    transform: scale(2.25)
  }
}

/* ---------- Apple pane visuals ---------- */
.applebox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start
}

.apple-hero {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 0 8px;
  border-radius: 12px
}

.apple-title {
  margin-top: 4px
}

/* ---------- Step 1 right-side instructions ---------- */
.introbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

/* INLINE SVG card badges */
.card-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.cc svg {
  height: 26px;
  width: auto;
  display: block
}

/* common badge bg + text */
.cc rect {
  fill: #1a1f36
}

.cc text {
  fill: #fff;
  font: 700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
  letter-spacing: .3px;
}

/* brand tweaks */
.cc.visa text {
  font-size: 14px
}

.cc.mc circle:first-of-type {
  fill: #ea001b
}

.cc.mc circle:last-of-type {
  fill: #ff9f00;
  opacity: .9
}

.cc.amex rect {
  fill: #1777ff
}

.cc.amex text {
  font-size: 12px
}

.cc.disc circle {
  fill: #ff7a00
}

/* --- Mobile typography tweaks --- */
body {
  font-size: 16px
}

h1 {
  font-size: 20px
}

.muted {
  font-size: 15px
}

.addr-chip {
  font-size: 15px
}

@media (max-width:860px) {
  body {
    font-size: 17px
  }

  h1 {
    font-size: 22px
  }
}


.badge.alt {
  background: #fff3e0;
  color: #b45309;
  /* amber-700 */
  border: 1px solid #f59e0b33;
}


/* Grid areas so we can flip left/right after selection */
.card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas: "left right";
}

.left {
  grid-area: left
}

.right {
  grid-area: right
}

/* When .flipped is added, swap panes and slightly swap widths */
.card.flipped {
  grid-template-columns: .9fr 1.1fr;
  grid-template-areas: "right left";
}

/* Mobile: stacked (flip has no visual effect) */
@media (max-width:860px) {

  .card,
  .card.flipped {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right";
  }
}


/* Embedded map sizing for ATM finder */
.atm-map {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .atm-map {
    height: 280px;
  }
}



/* Embedded map sizing for ATM finder (Leaflet) */
.atm-map {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .atm-map {
    height: 280px;
  }
}

/* Leaflet default panes shouldn’t overflow rounded corners */
.leaflet-container {
  border-radius: 8px;
}