/* Gift voucher pages: gift-vouchers.html, gift-voucher-success.html, redeem-gift-voucher.html.
   Builds on site.css (nav, footer, article-copy, rr-card, rr-btn). No build step needed. */
.gv-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .gv-wrap { padding: 0 1.5rem; } }

.gv-hero { position: relative; overflow: hidden; border-bottom: 1px solid #1e293b; background: radial-gradient(circle at 12% 0%, rgba(234,179,8,.25), transparent 38%), radial-gradient(circle at 90% 90%, rgba(220,38,38,.14), transparent 40%), linear-gradient(135deg, #020617, #0f172a 55%, #111827); }
.gv-hero-grid { display: grid; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .gv-hero-grid { grid-template-columns: 1.05fr .95fr; padding-top: 4.5rem; padding-bottom: 5rem; } }
.gv-kicker { color: #facc15; font-weight: 800; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.1rem; }
.gv-hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 900; font-style: italic; letter-spacing: -.02em; color: #fff; margin-bottom: 1.25rem; }
.gv-hero h1 em { color: #facc15; font-style: italic; }
.gv-lead { font-size: 1.15rem; line-height: 1.7; color: #cbd5e1; margin-bottom: 1.75rem; max-width: 38rem; }
.gv-ticks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; font-size: .85rem; color: #cbd5e1; }
.gv-ticks li { padding: .35rem .85rem; border-radius: 999px; background: rgba(15,23,42,.8); border: 1px solid #334155; }
.gv-ticks li::before { content: "✓ "; color: #facc15; font-weight: 900; }

.gv-stack { position: relative; aspect-ratio: 1.42; max-width: 36rem; margin: 0 auto; width: 100%; }
.gv-stack img { position: absolute; width: 82%; border-radius: .6rem; box-shadow: 0 30px 60px rgba(0,0,0,.55); border: 1px solid rgba(250,204,21,.25); }
.gv-stack img:nth-child(1) { left: 0; top: 0; transform: rotate(-6deg); }
.gv-stack img:nth-child(2) { right: 0; top: 6%; transform: rotate(5deg); }
.gv-stack img:nth-child(3) { left: 9%; top: 18%; transform: rotate(-1deg); z-index: 2; }

.gv-section { padding: 3.5rem 0; }
.gv-section h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin-bottom: 1rem; }
.gv-section > .gv-wrap > p, .gv-sub { color: #cbd5e1; line-height: 1.8; max-width: 46rem; }

/* Purchase form */
.gv-buy { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .gv-buy { grid-template-columns: 1.1fr .9fr; } }
.gv-form { background: rgba(15,23,42,.85); border: 1px solid #334155; border-radius: 1.5rem; padding: 1.5rem; }
@media (min-width: 640px) { .gv-form { padding: 2rem; } }
.gv-form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.gv-form legend, .gv-form label > span { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; font-size: .9rem; margin-bottom: .5rem; }
.gv-form label { display: block; margin-bottom: 1.1rem; }
.gv-form small { color: #94a3b8; font-weight: 400; font-family: 'Open Sans', sans-serif; }
.gv-input { width: 100%; background: #020617; border: 1px solid #334155; border-radius: .8rem; padding: .85rem 1rem; color: #fff; font-size: 1rem; font-family: inherit; }
.gv-input:focus { outline: 2px solid #eab308; outline-offset: 1px; border-color: #eab308; }
textarea.gv-input { min-height: 7rem; resize: vertical; line-height: 1.6; }
.gv-count { display: block; text-align: right; font-size: .75rem; color: #64748b; margin-top: .3rem; }
.gv-occasions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 640px) { .gv-occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gv-occasions label { margin: 0; }
.gv-occasions input { position: absolute; opacity: 0; pointer-events: none; }
.gv-occasions .gv-opt { display: block; text-align: center; padding: .8rem .5rem; border-radius: .9rem; border: 1px solid #334155; background: #020617; color: #cbd5e1; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.gv-occasions .gv-opt b { display: block; font-size: 1.35rem; line-height: 1; margin-bottom: .3rem; }
.gv-occasions input:checked + .gv-opt { border-color: #eab308; background: rgba(234,179,8,.12); color: #fff; }
.gv-occasions input:focus-visible + .gv-opt { outline: 2px solid #eab308; outline-offset: 2px; }
.gv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gv-submit { width: 100%; border: 0; cursor: pointer; font-size: 1.05rem; padding: 1rem 1.5rem; }
.gv-submit[disabled] { opacity: .6; cursor: progress; }
.gv-error { display: none; margin-top: 1rem; padding: .85rem 1rem; border-radius: .8rem; background: rgba(220,38,38,.12); border: 1px solid rgba(248,113,113,.5); color: #fecaca; }
.gv-error.is-on { display: block; }
.gv-note { display: none; margin-bottom: 1.25rem; padding: .85rem 1rem; border-radius: .8rem; background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.4); color: #fde68a; }
.gv-note.is-on { display: block; }
.gv-secure { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: .9rem; font-size: .8rem; color: #94a3b8; text-align: center; }

/* Live preview card (mirrors the PDF voucher) */
.gv-preview-wrap { position: sticky; top: 6rem; }
.gv-preview { position: relative; aspect-ratio: 1.415; border-radius: .8rem; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); color: #fff; font-family: 'Montserrat', sans-serif; container-type: inline-size; background: linear-gradient(180deg, #0f172a, #020617); }
.gv-preview[data-theme="christmas"] { background: linear-gradient(180deg, #0b2a22, #020617); }
.gv-preview[data-theme="christmas"]::before { content: ""; position: absolute; left: 4%; top: 0; bottom: 0; width: 1.5%; background: #b91c1c; box-shadow: -1px 0 0 #eab308, 1px 0 0 #eab308; }
.gv-preview[data-theme="birthday"] { background: radial-gradient(circle at 20% 8%, rgba(244,114,182,.35) 0 1%, transparent 1.2%), radial-gradient(circle at 70% 5%, rgba(56,189,248,.5) 0 .8%, transparent 1%), radial-gradient(circle at 40% 4%, rgba(250,204,21,.6) 0 .7%, transparent .9%), linear-gradient(180deg, #1e1b4b, #020617); }
.gv-preview-inner { position: absolute; inset: 3%; border: 1px solid rgba(234,179,8,.5); padding: 6% 5% 5% 6.5%; display: grid; grid-template-columns: 1fr 34%; gap: 5%; }
.gv-pv-logo { font-weight: 900; font-style: italic; font-size: 4.2cqw; letter-spacing: -.03em; }
.gv-pv-logo span { color: #eab308; }
.gv-pv-tag { color: #facc15; font-size: 1.5cqw; letter-spacing: .3em; font-weight: 800; margin-top: 1%; }
.gv-pv-head { font-weight: 900; font-style: italic; font-size: 6cqw; line-height: 1.05; margin-top: 6%; overflow-wrap: anywhere; }
.gv-pv-line { width: 9cqw; height: .6cqw; background: #eab308; margin: 3% 0; }
.gv-preview[data-theme="christmas"] .gv-pv-line { background: #dc2626; }
.gv-preview[data-theme="birthday"] .gv-pv-line { background: #f472b6; }
.gv-pv-product { color: #facc15; font-weight: 800; font-size: 2.9cqw; }
.gv-pv-for { margin-top: 5%; font-size: 1.3cqw; letter-spacing: .25em; color: #94a3b8; font-weight: 800; }
.gv-pv-name { font-weight: 800; font-size: 4.4cqw; line-height: 1.1; overflow-wrap: anywhere; }
.gv-pv-msg { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #cbd5e1; font-size: 1.9cqw; line-height: 1.4; margin-top: 2.5%; border-left: .35cqw solid #eab308; padding-left: 2.5%; max-height: 8.5em; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.gv-pv-msg:empty { display: none; }
.gv-pv-from { margin-top: 2.5%; font-size: 1.8cqw; font-weight: 800; }
.gv-pv-from:empty { display: none; }
.gv-pv-card { background: #fff; color: #0f172a; border-top: .9cqw solid #eab308; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6% 4%; align-self: center; height: 82%; }
.gv-pv-qr { width: 70%; aspect-ratio: 1; background: #fff url('../gift/qr-sample.svg') center / contain no-repeat; margin: 6% 0; }
.gv-pv-scan { font-size: 1.3cqw; letter-spacing: .2em; font-weight: 800; }
.gv-pv-code { font-family: 'Courier New', monospace; font-weight: 700; font-size: 2.4cqw; }
.gv-pv-valid { font-size: 1.3cqw; font-weight: 700; margin-top: 4%; color: #334155; }
.gv-preview-caption { text-align: center; color: #94a3b8; font-size: .85rem; margin-top: .9rem; }

/* Steps, guide previews */
.gv-steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 768px) { .gv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gv-step { background: rgba(15,23,42,.75); border: 1px solid #1e293b; border-radius: 1.25rem; padding: 1.4rem; }
.gv-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #eab308; color: #020617; font-weight: 900; font-family: 'Montserrat', sans-serif; margin-bottom: .9rem; }
.gv-step h3 { font-family: 'Montserrat', sans-serif; color: #fff; font-weight: 800; margin-bottom: .4rem; }
.gv-step p { color: #94a3b8; line-height: 1.65; font-size: .95rem; }
.gv-guide { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
.gv-guide img { width: 100%; height: auto; border-radius: .6rem; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.gv-designs { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .gv-designs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gv-designs figure { margin: 0; }
.gv-designs img { width: 100%; height: auto; border-radius: .6rem; border: 1px solid #1e293b; }
.gv-designs figcaption { color: #cbd5e1; font-weight: 700; margin-top: .6rem; font-size: .95rem; }
.gv-places { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.gv-places a, .gv-places span { padding: .35rem .85rem; border-radius: 999px; border: 1px solid #334155; color: #e2e8f0; font-size: .85rem; text-decoration: none; }
.gv-places a:hover { border-color: #facc15; color: #facc15; }

/* Success and redeem pages */
.gv-panel { max-width: 44rem; margin: 0 auto; background: rgba(15,23,42,.85); border: 1px solid #334155; border-radius: 1.5rem; padding: 1.75rem; }
@media (min-width: 640px) { .gv-panel { padding: 2.5rem; } }
.gv-panel h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-style: italic; color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; margin-bottom: .9rem; }
.gv-panel p { color: #cbd5e1; line-height: 1.75; margin-bottom: 1rem; }
.gv-panel ol { color: #cbd5e1; line-height: 1.75; margin: 0 0 1.25rem 1.25rem; list-style: decimal; }
.gv-panel ol li { margin-bottom: .4rem; }
.gv-code-box { background: #020617; border: 1px dashed rgba(234,179,8,.6); border-radius: 1rem; padding: 1.1rem 1.25rem; margin: 1.25rem 0; display: grid; gap: .3rem; color: #cbd5e1; }
.gv-code-box strong { color: #fff; }
.gv-code-box .gv-code { font-family: 'Courier New', monospace; font-size: 1.5rem; font-weight: 700; color: #facc15; letter-spacing: .05em; }
.gv-actions { display: grid; gap: .7rem; margin: 1.5rem 0; }
@media (min-width: 560px) { .gv-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gv-actions .rr-btn { width: 100%; }
.gv-loading { display: flex; gap: .8rem; align-items: center; color: #cbd5e1; }
.gv-spinner { width: 1.4rem; height: 1.4rem; border-radius: 999px; border: 3px solid #334155; border-top-color: #eab308; animation: gv-spin .8s linear infinite; }
@keyframes gv-spin { to { transform: rotate(360deg); } }
.gv-code-input { text-transform: uppercase; font-family: 'Courier New', monospace; font-size: 1.3rem; letter-spacing: .08em; text-align: center; }
.gv-check { display: flex; gap: .7rem; align-items: flex-start; color: #cbd5e1; font-size: .9rem; line-height: 1.5; }
.gv-check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: #eab308; flex-shrink: 0; }
[hidden] { display: none !important; }
section[id], [id="buy"] { scroll-margin-top: 5.5rem; }
/* On phones show the live preview above the form so buyers see it update. */
@media (max-width: 1023px) {
  .gv-preview-wrap { order: -1; position: static; max-width: 30rem; width: 100%; margin: 0 auto; }
}
