/* Registration form under the ticket (js/register.js). Same paper as the ticket. */
.tk-what li.tk-fee { color: var(--ink-3); font-size: .88rem; }
.tk-what li.tk-fee::before { background: var(--ink-3); opacity: .5; }

.regbox[hidden] { display: none; }
.regbox { max-width: 920px; margin: 26px auto 0; color: var(--ink); background: linear-gradient(180deg, #fbf6ec, #f1e7d4); border-radius: 22px; box-shadow: 0 40px 60px -20px rgba(0,0,0,.5); padding: clamp(22px, 4vw, 44px); position: relative; overflow: hidden; animation: rg-in .6s var(--ease) both; }
.regbox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--ember) 0 18px, var(--amber) 18px 36px); opacity: .85; }
@keyframes rg-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .regbox, .rg-done { animation: none !important; } }

.rg-head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.rg-head p { color: var(--ink-2); margin-top: 8px; }
.rg-step { border: 0; margin: 0; padding: 26px 0 0; min-width: 0; }
.rg-step + .rg-step { margin-top: 26px; border-top: 1px solid var(--line); }
.rg-step legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 1.08rem/1.3 var(--sans); display: flex; align-items: center; gap: 12px; }
.rg-step legend i, .rg-f i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.rg-step legend + * { clear: both; }
.rg-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 .85rem/1 var(--sans); flex: none; }
.rg-sub { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.rg-sub a { color: var(--ember-d); }

.rg-count { display: flex; align-items: center; gap: 6px; }
.rg-pm { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 500 1.5rem/1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(30,26,23,.18); transition: box-shadow .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.rg-pm:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rg-pm:active:not(:disabled) { transform: scale(.94); }
.rg-pm:disabled { opacity: .35; cursor: default; }
.rg-count output { min-width: 56px; text-align: center; font: 400 2.6rem/1 var(--serif); }
.rg-each { margin-left: 10px; color: var(--ink-3); }

.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.rg-f { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.rg-f input, .rg-other input { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 12px; padding: 14px 15px; box-shadow: inset 0 0 0 1px rgba(30,26,23,.16); transition: box-shadow .2s; min-height: 50px; }
.rg-f input::placeholder, .rg-other input::placeholder { color: #a89c8f; }
.rg-f input:focus, .rg-other input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--amber); }
.rg-f input.bad { box-shadow: inset 0 0 0 2px #d8573c; }
.rg-others { display: grid; gap: 14px; margin-top: 14px; }
.rg-others:empty { display: none; }
.rg-person { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; animation: rg-in .4s var(--ease) both; }

.rg-gifts { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-gifts button { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: 600 .95rem/1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(30,26,23,.16); transition: background-color .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.rg-gifts button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rg-gifts button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.rg-other { display: flex; align-items: center; position: relative; width: 120px; }
.rg-other span { position: absolute; left: 14px; color: var(--ink-3); font-weight: 600; pointer-events: none; }
.rg-other input { padding-left: 28px; min-height: 46px; border-radius: 999px; }
.rg-other.on input { box-shadow: inset 0 0 0 2px var(--ink); }

.rg-total { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px var(--line); }
.rg-lines { display: grid; gap: 4px; color: var(--ink-2); font-size: .95rem; }
.rg-lines div { display: flex; justify-content: space-between; gap: 12px; }
.rg-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(30,26,23,.22); font-weight: 600; }
.rg-sum b { font: 500 2rem/1 var(--serif); transition: transform .3s var(--ease); }
.rg-sum b.bump { transform: scale(1.08); }

.rg-err { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fbe3dc; color: #8a2a14; font-size: .95rem; }
.rg-err[hidden] { display: none; }
.rg-pay { margin: 20px auto 0; max-width: 560px; min-height: 56px; position: relative; z-index: 0; }
.rg-wait { color: var(--ink-3); font-size: .95rem; text-align: center; padding: 16px 0; }
.rg-off { text-align: center; display: grid; gap: 12px; justify-items: center; color: var(--ink-2); font-size: .95rem; }
.rg-busy { opacity: .45; pointer-events: none; transition: opacity .2s; }
.rg-safe { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.rg-safe svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }

.rg-done[hidden] { display: none; }
.rg-done { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 10px 0; animation: rg-in .6s var(--ease) both; outline: none; }
.rg-done h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.rg-done > p { color: var(--ink-2); max-width: 46ch; }
.rg-seal svg { width: 84px; height: 84px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rg-seal circle { stroke: var(--amber); stroke-width: 3; fill: rgba(234,165,62,.14); stroke-dasharray: 190; stroke-dashoffset: 190; animation: rg-draw .8s var(--ease) .1s forwards; }
.rg-seal path { stroke: var(--ember); stroke-width: 4.5; stroke-dasharray: 50; stroke-dashoffset: 50; animation: rg-draw .5s var(--ease) .75s forwards; }
@keyframes rg-draw { to { stroke-dashoffset: 0; } }
.rg-recap { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; text-align: left; margin: 8px 0; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }
.rg-recap dt { color: var(--ink-3); }
.rg-recap dd { margin: 0; font-weight: 600; }
.rg-next { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

@media (max-width: 640px) {
  .rg-grid, .rg-person { grid-template-columns: 1fr; }
  .rg-person + .rg-person { padding-top: 14px; border-top: 1px dashed var(--line); }
  .rg-gifts button { flex: 1 1 auto; }
  .rg-other { flex: 1 1 100%; width: auto; }
  .rg-next .btn { flex: 1 1 100%; }
}
