:root {
  --ink: #2c2318;
  --muted: #756958;
  --leaf: #315b49;
  --leaf-dark: #234638;
  --pear: #d9ea72;
  --cream: #f7f0e3;
  --paper: #fffdf8;
  --line: #ddcfba;
  --error: #8a2d2d;
  --success: #286043;
  --shadow: 0 18px 55px rgba(72, 53, 29, 0.1);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 234, 114, 0.22), transparent 28rem),
    linear-gradient(180deg, #fbf7ee 0%, var(--cream) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--leaf); }

.refund-header,
.refund-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.refund-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(49, 91, 73, 0.16);
}

.refund-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.refund-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--pear);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.refund-brand span:last-child { display: grid; }
.refund-brand strong { font-family: Georgia, serif; font-size: 1.04rem; }
.refund-brand small { color: var(--muted); font-size: 0.74rem; }

.header-link {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 750;
  text-decoration: none;
}

.refund-main {
  width: min(920px, calc(100% - 40px));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 54px 0 70px;
}

.refund-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 42px;
  align-items: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--leaf);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.12;
}

h1 { max-width: 650px; font-size: clamp(2.15rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { margin: 0 0 4px; font-size: 1.08rem; }

.refund-hero p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.amount-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  border-radius: 24px;
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 18px 45px rgba(35, 70, 56, 0.2);
}

.amount-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border: 26px solid rgba(217, 234, 114, 0.12);
  border-radius: 50%;
}

.amount-card span,
.amount-card small { position: relative; z-index: 1; color: #dfe9e3; }
.amount-card span { font-size: 0.78rem; font-weight: 750; }
.amount-card strong { position: relative; z-index: 1; margin: 5px 0 2px; color: var(--pear); font-size: 2.25rem; line-height: 1.05; }
.amount-card small { font-size: 0.75rem; }

.refund-card {
  margin-bottom: 20px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.case-card { padding-top: 22px; padding-bottom: 22px; box-shadow: none; }

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 22px;
}

.case-grid div,
.receipt div { display: grid; gap: 3px; }
.case-grid span,
.receipt span { color: var(--muted); font-size: 0.75rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; }
.case-grid strong { font-size: 0.98rem; }

.alert {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
}

.alert-error { border-color: #d6a3a3; background: #fff2f2; color: var(--error); }
.alert-success { border-color: #9bc4ab; background: #edf8f1; color: var(--success); }

.step-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.step-heading .eyebrow { margin-bottom: 2px; }
.step-heading.compact { margin-bottom: 18px; }

.step-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pear);
  color: var(--leaf-dark);
  font-weight: 900;
}

.verify-card > p { max-width: 680px; color: var(--muted); }
.verify-card > p strong { color: var(--ink); }

label {
  display: grid;
  gap: 7px;
  color: var(--leaf-dark);
  font-size: 0.87rem;
  font-weight: 800;
}

label > span { color: #a33a35; }
label > small { color: var(--muted); font-weight: 500; }

input,
textarea {
  width: 100%;
  border: 1px solid #a5947c;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input { min-height: 48px; padding: 10px 12px; }
textarea { min-height: 92px; padding: 12px; resize: vertical; }

input:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(49, 91, 73, 0.13);
}

.inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.verify-form { max-width: 650px; margin-top: 18px; }
.code-input { max-width: 220px; letter-spacing: 0.35em; font-size: 1.2rem; font-weight: 800; text-align: center; }
.resend-form { margin-top: 11px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--leaf); background: var(--leaf); color: #fff; }
.button-primary:hover { background: var(--leaf-dark); }
.button-secondary { border-color: var(--line); background: #fff; color: var(--leaf); }
.text-button { padding: 0; border: 0; background: transparent; color: var(--leaf); font: inherit; font-size: 0.84rem; font-weight: 800; text-decoration: underline; cursor: pointer; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  border: 0;
}

.method-option { position: relative; cursor: pointer; }
.method-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.method-content {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.method-content i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border-radius: 10px;
  background: #edf2db;
  color: var(--leaf);
  font-style: normal;
  font-weight: 900;
}

.method-content strong { font-size: 0.95rem; }
.method-content small { margin-top: 4px; color: var(--muted); font-size: 0.73rem; font-weight: 500; line-height: 1.35; }
.method-option input:checked + .method-content { border-color: var(--leaf); background: #f7faeb; box-shadow: 0 0 0 2px rgba(49, 91, 73, 0.11); }
.method-option input:focus-visible + .method-content { outline: 3px solid rgba(49, 91, 73, 0.28); outline-offset: 2px; }

.method-details {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #e4dac8;
  border-radius: 14px;
  background: #faf7ef;
}

.method-details[hidden] { display: none; }
.method-details > .small-note { margin-top: 0; }
.method-details > label + label { margin-top: 15px; }

.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-divider { height: 1px; margin: 34px 0; background: var(--line); }

.confirm-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #f1f5e2;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.confirm-row input { width: 19px; min-height: 19px; margin-top: 2px; accent-color: var(--leaf); }
.confirm-row span { color: var(--ink); }
.privacy-note { margin: 13px 0 20px; color: var(--muted); font-size: 0.79rem; }
.submit-button { width: 100%; min-height: 54px; }
.small-note { color: var(--muted); font-size: 0.84rem; }

.empty-card,
.complete-card,
.selection-card {
  max-width: 720px;
  margin: 35px auto;
  text-align: center;
}

.empty-card p:not(.eyebrow),
.complete-card > p:not(.eyebrow),
.selection-card > p:not(.eyebrow) { max-width: 590px; margin: 17px auto 24px; color: var(--muted); }
.empty-icon,
.complete-check { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: #edf2db; color: var(--leaf); font-size: 1.9rem; font-weight: 900; }
.complete-check { background: var(--leaf); color: var(--pear); }

.receipt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 20px;
  padding: 18px;
  border-radius: 14px;
  background: #f5f0e7;
  text-align: left;
}

.request-list { display: grid; gap: 10px; margin-top: 25px; text-align: left; }
.request-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.request-item:hover { border-color: var(--leaf); }
.request-item span { display: grid; }
.request-item small { color: var(--muted); }
.request-item b { white-space: nowrap; color: var(--leaf); font-size: 1.1rem; }

.refund-footer {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(49, 91, 73, 0.16);
  color: var(--muted);
  font-size: 0.79rem;
}

.refund-footer nav { display: flex; gap: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 760px) {
  .refund-header,
  .refund-footer,
  .refund-main { width: min(100% - 28px, 920px); }
  .refund-header { min-height: 78px; }
  .refund-brand-mark { width: 41px; height: 41px; }
  .refund-brand strong { font-size: 0.9rem; }
  .refund-brand small { display: none; }
  .refund-main { padding-top: 34px; }
  .refund-hero { grid-template-columns: 1fr; gap: 22px; }
  .amount-card { min-height: 135px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-grid div:last-child { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-content { min-height: 135px; }
  .inline-field { grid-template-columns: 1fr; }
  .inline-field .button { width: 100%; }
  .code-input { max-width: none; }
  .receipt { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.05rem; }
  .header-link { font-size: 0.78rem; }
  .refund-card { border-radius: 15px; }
  .case-grid,
  .form-grid.two { grid-template-columns: 1fr; }
  .case-grid div:last-child { grid-column: auto; }
  .method-grid { grid-template-columns: 1fr; }
  .method-content { min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
  .method-content i { grid-row: 1 / 3; margin: 0; }
  .method-content small { grid-column: 2; }
  .method-details { padding: 18px; }
  .refund-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
