/* vouchers.vinylify.com: colours and type follow the Vinylify WordPress theme
   (ink #464646, orange #ff6600, Montserrat). */
:root {
  --ink: #464646;
  --ink-soft: #8a8a8a;
  --line: #e2e2e2;
  --bg: #ffffff;
  --tint: #f6f5f3;
  --orange: #ff6600;
  --orange-dark: #e05a00;
  --orange-tint: #fff1e8;
  --error: #c0261b;
  --radius: 10px;
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 420px; padding-top: 48px; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo img { display: block; height: 32px; width: auto; }
.top-link { font-size: 14px; font-weight: 500; text-decoration: none; }
.top-link:hover { color: var(--orange); }

.hero { padding: 64px 0 40px; }
.hero.small { padding: 48px 0 24px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-weight: 900; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-weight: 700; font-size: 22px; margin: 0 0 12px; }
.lead { max-width: 580px; font-size: 18px; margin: 20px 0 0; }

/* order form */
.order { display: grid; gap: 28px; padding-bottom: 56px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 14px; padding: 0; }
legend small { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }

.choices { display: grid; gap: 14px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.choice-body strong { font-size: 18px; }
.choice-body span { font-size: 14px; }
.choice-body em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.choice:hover .choice-body { border-color: #c9c9c9; }
.choice input:checked + .choice-body { border-color: var(--orange); background: var(--orange-tint); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--orange); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; min-width: 76px; text-align: center; padding: 10px 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; }
.chip:hover span { border-color: #c9c9c9; }
.chip input:checked + span { border-color: var(--orange); background: var(--orange); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.row { display: grid; gap: 14px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.three { grid-template-columns: 1fr 1.4fr 1.2fr; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field.custom-amount { max-width: 260px; margin-top: 14px; }
.amount-hint { margin-top: 10px; }
label { font-size: 14px; font-weight: 500; }
input[type=text], input:not([type]), input[type=email], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 11px 13px; border: 1.5px solid #cfcfcf; border-radius: 8px; background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
.error { margin: 4px 0 0; color: var(--error); font-size: 14px; font-weight: 500; }
.error.banner { padding: 12px 16px; background: #fdecea; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }

.summary { background: var(--tint); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 16px; }
.summary dl { margin: 0; display: grid; gap: 6px; }
.summary dl div { display: flex; justify-content: space-between; }
.summary dt, .summary dd { margin: 0; }
.summary .total { border-top: 1px solid #ddd; padding-top: 8px; font-weight: 900; font-size: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }

.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; color: #fff; background: var(--orange); border: 2px solid var(--orange); border-radius: 999px; padding: 13px 28px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 13px; padding: 6px 14px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel.closed { background: var(--tint); border: 0; margin-bottom: 56px; }
.panel.warn { border-color: var(--orange); background: var(--orange-tint); }

.how { padding-bottom: 64px; }
.how ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: how; }
.how li { counter-increment: how; padding: 20px; background: var(--tint); border-radius: var(--radius); font-size: 15px; }
.how li::before { content: counter(how); display: block; font-weight: 900; font-size: 28px; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.how strong { display: block; }

/* done page */
.voucher-card { display: grid; gap: 14px; justify-items: start; border: 0; background: linear-gradient(90deg, var(--orange) 0 10px, var(--tint) 10px); padding-left: 34px; }
.voucher-amount { font-weight: 900; font-size: 44px; line-height: 1; }
.voucher-code span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.voucher-code strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .06em; user-select: all; }
.voucher-card p { margin: 0; }

.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: 13px; color: var(--ink-soft); }

/* admin */
.admin-h { font-size: 32px; margin: 32px 0 8px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-top h2, .admin-top p { margin: 0; }
.admin-page .wrap { max-width: 1100px; }
.status-line { font-size: 14px; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 24px; }
.stats div { background: var(--tint); border-radius: var(--radius); padding: 16px; }
.stats span { display: block; font-size: 13px; color: var(--ink-soft); }
.stats strong { font-size: 24px; font-weight: 900; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

@media (max-width: 640px) {
  .hero { padding: 40px 0 28px; }
  .choices.two, .row.two, .row.three, .how ol { grid-template-columns: 1fr; }
  .row { gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-page table { display: block; overflow-x: auto; }
}
