:root {
  --navy-900: #071120;
  --navy-800: #0b1830;
  --navy-700: #12254a;
  --royal: #17458f;
  --gold: #f7a81b;
  --gold-soft: #e9c77b;
  --ivory: #fbf7ef;
  --ink: #1b2233;
  --muted: #5d6578;
  --line: #e6dcc6;
  --danger: #b3261e;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy-800); color: var(--ink); font: 400 16px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-900); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 72px 16px; color: var(--ivory);
  background: radial-gradient(120% 80% at 50% 0%, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}
.hero__glow { position: absolute; inset: auto 50% 8% auto; width: 70vmax; height: 70vmax; transform: translate(50%, 40%); background: radial-gradient(closest-side, rgba(247, 168, 27, .16), transparent 70%); z-index: -1; }
.hero__wheel { position: absolute; width: min(70vmin, 580px); right: -16vmin; top: -18vmin; opacity: .045; z-index: -1; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__wheel { animation: none; } html { scroll-behavior: auto; } }
.hero__inner { max-width: 820px; }

/* Zalău landmarks (Porolissum gate, clock tower, Colegiul Silvania) as a backdrop:
   the side buildings grow out of the bottom corners and recede toward the centre, like a wide-angle lens;
   the clock tower stands small and far away in the middle */
.skyline { position: absolute; inset: 0; perspective: 700px; perspective-origin: 50% 70%; pointer-events: none; z-index: -1; opacity: .1; overflow: hidden; }
.skyline img { position: absolute; bottom: 0; width: auto; filter: brightness(0) invert(1); }
.skyline__l { left: -4%; bottom: -24% !important; height: min(104%, 46vw); transform-origin: left bottom; transform: rotateY(62deg) rotateZ(-2deg); }
.skyline__r { right: -4%; bottom: -15% !important; height: min(98%, 43vw); transform-origin: right bottom; transform: rotateY(-58deg) rotateZ(2deg); }
.skyline__c { left: 50%; bottom: -4% !important; height: 34%; transform: translateX(-50%); opacity: .7; }
.skyline--ink { opacity: .05; }
.skyline--ink img { filter: brightness(0); }
.skyline--ink .skyline__l { height: 120%; } .skyline--ink .skyline__r { height: 112%; }
.skyline--strip { opacity: .12; perspective: 600px; }
.skyline--strip .skyline__l { height: 150%; } .skyline--strip .skyline__r { height: 140%; }
.skyline--strip .skyline__c { height: 70%; }
/* narrow and portrait screens: sized by width so each building keeps to its own half,
   with a gentler angle (a steep one smears the drawings). Bottom offsets are in vw because
   the empty space under each drawing scales with its width: ~28% (gate) and ~18% (college) of its height */
@media (orientation: portrait) and (min-width: 721px) {
  .skyline { perspective: 1100px; }
  .skyline .skyline__l { width: 50vw; height: auto; left: -10vw; bottom: -9vw !important; transform: rotateY(36deg) rotateZ(-1.5deg); }
  .skyline .skyline__r { width: 50vw; height: auto; right: -10vw; bottom: -6vw !important; transform: rotateY(-36deg) rotateZ(1.5deg); }
}
@media (max-width: 720px) {
  .skyline { perspective: 1300px; perspective-origin: 50% 85%; }
  .skyline .skyline__l { width: 60vw; height: auto; left: -14vw; bottom: -11vw !important; transform: rotateY(24deg) rotateZ(-1deg); }
  .skyline .skyline__r { width: 60vw; height: auto; right: -14vw; bottom: -7vw !important; transform: rotateY(-24deg) rotateZ(1deg); }
  .skyline__c { height: 22%; }
}
}
}
.section--backdrop { position: relative; overflow: hidden; isolation: isolate; }
/* the Zalău clock tower crowns the invitation */
.hero__tower { height: clamp(96px, 17vh, 168px); width: auto; margin: 0 auto 1.6rem; filter: brightness(0) invert(1); opacity: .42; }
@media (max-width: 560px) { .hero__tower { height: 84px; margin-bottom: 1.1rem; } }
.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1.25rem; }
.hero__title { font: 600 clamp(3.2rem, 11vw, 7rem)/0.95 var(--serif); margin: 0; letter-spacing: .01em; }
.hero__edition { font: italic 500 clamp(1.25rem, 3.4vw, 1.75rem)/1.3 var(--serif); color: var(--gold-soft); margin: .9rem 0 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.8rem auto; }
.ornament span { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); }
.hero__when { font: 600 clamp(1.15rem, 3vw, 1.5rem)/1.4 var(--serif); margin: 0; letter-spacing: .03em; }
.hero__when .dot { color: var(--gold); margin: 0 .4rem; }
.hero__where { margin: .35rem 0 0; color: #c9d1e4; }
.hero__deadline { margin: 1rem 0 0; font-size: .85rem; color: #aeb8cf; }

.countdown { display: flex; justify-content: center; gap: 12px; margin: 2rem 0 0; }
.countdown div { min-width: 82px; padding: .7rem .5rem; border: 1px solid rgba(233, 199, 123, .35); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.countdown b { display: block; font: 600 2rem/1 var(--serif); color: var(--ivory); }
.countdown small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 999px; padding: .9rem 1.9rem; font: 600 .9rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(247, 168, 27, .6); }
.btn--gold:hover { transform: translateY(-1px); background: #ffb733; }
.btn--gold:disabled { opacity: .6; cursor: progress; transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.2rem; }
.btn--ghost { background: transparent; color: var(--royal); border-color: currentColor; }
.btn--ghost:hover { background: rgba(23, 69, 143, .06); }
.btn--light { background: transparent; color: var(--ivory); border-color: rgba(233, 199, 123, .55); }
.btn--light:hover { background: rgba(255, 255, 255, .06); }
.btn--sm { padding: .45rem .9rem; font-size: .72rem; }
.btn--wide { width: 100%; margin-top: 1.5rem; padding-block: 1.1rem; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; background: var(--ivory); }
.section--light { background: #fff; }
.section--rsvp { background: linear-gradient(180deg, var(--ivory), #f4ecdb); }
.h2 { font: 600 clamp(2.1rem, 5vw, 3rem)/1.1 var(--serif); color: var(--navy-800); text-align: center; margin: 0 0 2.4rem; }
.h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin: 1rem auto 0; }
.h3 { font: 600 2rem/1.2 var(--serif); color: var(--navy-800); margin: .5rem 0; }
.lead { text-align: center; color: var(--muted); max-width: 640px; margin: -1rem auto 2rem; }
.prose { font: 500 1.3rem/1.6 var(--serif); color: var(--ink); text-align: center; }
.prose p { margin: 0 0 1rem; }
.cause { text-align: center; color: var(--muted); margin: 1.5rem 0 0; }

.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 340px)); justify-content: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.section--light .card { background: var(--ivory); }
.card__label { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--royal); margin: 0 0 .8rem; }
.card__value { font: 600 1.45rem/1.25 var(--serif); color: var(--navy-800); margin: 0; }
.card__sub { color: var(--muted); margin: .4rem 0 0; font-size: .92rem; }
.card__link { display: inline-block; margin-top: .7rem; color: var(--royal); font-weight: 600; font-size: .9rem; }
.card--package { text-align: center; border-top: 3px solid var(--gold); }
.price { font: 700 2.4rem/1.1 var(--serif); color: var(--navy-800); margin: .6rem 0 0; }
.price small { font: 500 .85rem var(--sans); color: var(--muted); }
.stars { color: var(--gold); font-size: .9rem; letter-spacing: .1em; }
.rates { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--ink); font-size: .92rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 0 0 1.6rem 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #fff; }
.timeline__time { font: 600 1.15rem/1.4 var(--serif); color: var(--royal); }
.timeline__title { margin: 0; font-weight: 600; }
.timeline__detail { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }

/* placeholders for facts not yet supplied */
.todo { background: repeating-linear-gradient(45deg, rgba(247, 168, 27, .16) 0 8px, rgba(247, 168, 27, .08) 8px 16px); outline: 1px dashed var(--gold); border-radius: 4px; padding: 0 .3em; font-style: italic; }

/* ---------- form ---------- */
.demo-banner { background: #fff4dc; border: 1px solid var(--gold-soft); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; color: #6a4a07; margin: -1rem 0 1.5rem; text-align: center; }
form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(11, 24, 48, .35); }
.fs { border: 0; margin: 0 0 1.8rem; padding: 0; min-width: 0; }
.fs legend { font: 600 1.5rem/1.2 var(--serif); color: var(--navy-800); padding: 0; margin-bottom: 1rem; }
.field { margin: 0 0 1.15rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row .field { margin-bottom: 1.15rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } .timeline__item { grid-template-columns: 1fr; gap: 2px; } }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.req { color: var(--danger); }
.hint { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d5cbb5; border-radius: 10px; padding: .8rem .9rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--royal) 50%), linear-gradient(135deg, var(--royal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(23, 69, 143, .15); }
.choices { display: grid; gap: 10px; }
.choices--inline { grid-template-columns: repeat(2, minmax(0, 160px)); }
.choice { display: flex; align-items: center; gap: .7rem; border: 1px solid #d5cbb5; border-radius: 10px; padding: .75rem .9rem; margin: 0; font-weight: 500; cursor: pointer; min-height: 48px; }
.choice:has(input:checked) { border-color: var(--royal); background: rgba(23, 69, 143, .05); box-shadow: inset 0 0 0 1px var(--royal); }
.choice input { accent-color: var(--royal); width: 18px; height: 18px; margin: 0; }
.consent { margin-top: .4rem; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-weight: 400; font-size: .85rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--royal); width: 20px; height: 20px; margin: .1rem 0 0; flex: none; }
.small-link { display: inline-block; margin: .5rem 0 0 2rem; font-size: .82rem; color: var(--royal); }
.invalid input:not([type=radio]):not([type=checkbox]), .invalid select, .invalid textarea, .invalid .choice { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; margin: .35rem 0 0; }
.form-error { background: #fdecea; color: var(--danger); border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0 0; font-size: .9rem; }
.combo { position: relative; }
.combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--royal); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(11, 24, 48, .45); }
.combo__opt { padding: .7rem .8rem; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.combo__opt:hover, .combo__opt[aria-selected="true"] { background: rgba(23, 69, 143, .07); color: var(--navy-800); }
.combo__opt mark { background: none; color: var(--royal); font-weight: 600; }
.combo:has(.combo__list:not([hidden])) input { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(23, 69, 143, .15); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.optional { font-weight: 400; color: var(--muted); font-size: .85em; }

/* ---------- one question at a time ---------- */
.progress { display: none; }
.wizard .progress { display: block; margin: 0 0 2rem; }
.progress__track { height: 4px; border-radius: 4px; background: #efe6d3; overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--royal), var(--gold)); border-radius: inherit; transition: width .35s ease; }
.progress__text { margin: .6rem 0 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wizard { min-height: 420px; display: flex; flex-direction: column; }
.wizard .fs { margin: 0; }
.wizard .fs:not(.is-current), .wizard .step:not(.is-current) { display: none; }
.wizard .fs legend { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--royal); margin-bottom: 1.4rem; }
.wizard .step.is-current { animation: step-in .28s ease; margin: 0; }
.wizard .step > label, .wizard .step > .label { font: 600 clamp(1.45rem, 3.6vw, 1.9rem)/1.25 var(--serif); color: var(--navy-800); margin-bottom: 1.1rem; }
.wizard .step .hint { font-size: .85rem; }
.wizard .consent .check { font-size: .92rem; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wizard .step.is-current { animation: none; } .progress__bar { transition: none; } }
.wizard-nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 2rem; }
.wizard-nav .btn--gold { margin-left: auto; }
.wizard-nav .btn[hidden] { display: none; }
@media (max-width: 480px) { .wizard-nav .btn { padding: .85rem 1.2rem; } }

.thanks { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 5vw, 48px); text-align: center; outline: none; }
.thanks__wheel { width: 56px; margin: 0 auto; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; text-align: left; max-width: 520px; margin: 1.5rem auto; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.thanks .btn--ghost { margin: 1.5rem .3rem 0; }

.pay-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; text-align: left; }
.thanks .pay-box { margin-top: 1rem; }
.pay-total { font: 600 1.35rem var(--serif); margin: 0 0 1rem; color: var(--navy-800); }
.pay-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0; }
.pay-list dt { color: var(--muted); font-size: .85rem; }
.pay-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 480px) { .pay-list { grid-template-columns: 1fr; gap: .1rem; } .pay-list dd { margin-bottom: .6rem; } }

.footer { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: #9aa6c0; text-align: center; padding: 72px 16px 40px; font-size: .85rem; }
.footer__wheel { width: 36px; margin: 0 auto .8rem; opacity: .8; }
.footer p { margin: 0; }
.footer__links { margin-top: .6rem !important; }
.footer--bare { padding: 0 16px 24px; }

/* attribution: fixed corner pill on wide screens, in the footer on phones so it never covers the form */
.powered { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; padding: .5rem .85rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: var(--navy-900); opacity: .85; text-decoration: none; transition: opacity .15s ease; }
.powered:hover, .powered:focus-visible { opacity: 1; }
.powered:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.powered span { font: 600 .62rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.powered img { height: 18px; width: auto; }
@media (min-width: 720px) {
  .powered { position: fixed; right: 16px; bottom: 16px; z-index: 90; margin: 0; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }
  .footer--bare { padding: 0; }
}
.footer__links a { color: var(--gold-soft); }

/* ---------- privacy notice ---------- */
.doc-head { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 120% at 50% 0%, var(--navy-700), var(--navy-800) 60%, var(--navy-900)); color: var(--ivory); padding: 40px 0 48px; }
.doc-back { color: var(--gold-soft); font-size: .88rem; text-decoration: none; }
.doc-back:hover { text-decoration: underline; }
.doc-head .eyebrow { margin: 1.6rem 0 .6rem; }
.doc-title { font: 600 clamp(1.9rem, 5vw, 2.8rem)/1.15 var(--serif); margin: 0; }
.doc-updated { color: #aeb8cf; font-size: .85rem; margin: .8rem 0 0; }
.doc { background: var(--ivory); padding: 48px 0 72px; }
.doc h2 { font: 600 1.6rem/1.25 var(--serif); color: var(--navy-800); margin: 2.4rem 0 .8rem; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .45rem; }
.doc a { color: var(--royal); }
.doc-lead { font: 500 1.2rem/1.6 var(--serif); }
.doc-dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 1rem; }
.doc-dl dt { color: var(--muted); font-size: .88rem; }
.doc-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.doc-table { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.doc-table th { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); background: #fbf8f1; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-back-bottom { margin-top: 2.4rem; text-align: center; }
@media (max-width: 480px) { .doc-dl { grid-template-columns: 1fr; gap: .1rem; } .doc-dl dd { margin-bottom: .5rem; } }
@media (max-width: 560px) {
  .doc-table table { min-width: 0; }
  .doc-table thead { display: none; }
  .doc-table tr { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .doc-table tr:last-child { border-bottom: 0; }
  .doc-table td { display: block; padding: 0; border: 0; }
  .doc-table td + td { margin-top: .3rem; color: var(--muted); font-size: .85rem; }
}
