@import url("base.css");
@import url("components.css");

body { background: var(--surface-soft); position: relative; }
/* a slice of the poster's sunburst behind the form */
body::before { content: ""; position: absolute; z-index: 0; inset: 0 0 auto 0; height: 420px; overflow: hidden; pointer-events: none;
  background: repeating-conic-gradient(from -90deg at 50% 520px, var(--teal-100) 0 6deg, #fff 6deg 12deg);
  -webkit-mask-image: linear-gradient(#000 0, transparent 100%); mask-image: linear-gradient(#000 0, transparent 100%); opacity: .8; }
.topbar, .page { position: relative; z-index: 1; }
.topbar--solid { position: sticky; z-index: 30; }
.topbar__title { font: 900 1.05rem/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); }
.topbar__title .script { font: 400 1.6rem var(--font-script); color: var(--sun-500); letter-spacing: 0; text-transform: none; margin-right: .1em; }
.page { padding: 1.8rem 0 5rem; }
.small { font-size: .9rem; }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card + .card { margin-top: 1rem; }
#session-banner { position: sticky; top: 82px; z-index: 15; margin-bottom: 1.2rem; box-shadow: var(--shadow-soft); }

/* Stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 1.4rem; counter-reset: s; }
.stepper li { display: grid; justify-items: center; gap: .5rem; position: relative; font: 800 .68rem/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.stepper li::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 4px; border-radius: 4px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--teal-500); }
.stepper span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--line); background: #fff; font-size: 1rem; transition: all .3s var(--ease); }
.stepper em { font-style: normal; }
.stepper .is-current { color: var(--navy-900); }
.stepper .is-current span { border-color: var(--sun-500); background: var(--sun-500); color: #fff; box-shadow: 0 0 0 6px rgba(255, 122, 10, .2); transform: scale(1.06); }
.stepper .is-done span { border-color: var(--teal-500); background: var(--teal-500); color: #fff; }
@media (max-width: 480px) { .stepper em { font-size: .6rem; letter-spacing: .04em; } }

/* Steps */
.step { display: none; }
.step.is-active { display: block; animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.nav { display: flex; gap: .8rem; margin-top: 1.2rem; }
.nav .btn { flex: 1; }
.nav .btn:only-child { margin-left: auto; }

/* Quantity */
.qty { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.qty label { position: relative; }
.qty input { position: absolute; opacity: 0; inset: 0; }
.qty span { display: grid; place-items: center; height: 66px; border: 2.5px solid var(--line); border-radius: var(--radius-sm); font: 900 1.9rem var(--font-cond); color: var(--navy-900); cursor: pointer; transition: all .2s var(--ease); background: #fff; }
.qty label:hover span { border-color: var(--amber-500); }
.qty input:checked + span { background: var(--sun-500); border-color: var(--sun-500); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(255, 122, 10, .35); }
.qty input:focus-visible + span { outline: 3px solid var(--navy-900); outline-offset: 3px; }
.qty input:disabled + span { opacity: .3; cursor: not-allowed; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 0; padding-top: 1rem; border-top: 2px dashed var(--line); font: 800 .8rem var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.total-row strong { font-size: 1.7rem; color: var(--sun-500); letter-spacing: .01em; }

/* Attendees */
.attendee { padding: 1rem; margin-top: 1rem; border: 2px solid var(--line); border-left: 6px solid var(--teal-500); border-radius: var(--radius-sm); background: var(--surface-soft); }
.attendee:nth-child(4n+2) { border-left-color: var(--amber-500); }
.attendee:nth-child(4n+3) { border-left-color: var(--sun-500); }
.attendee:nth-child(4n+4) { border-left-color: var(--purple-600); }
.attendee .pill { margin-bottom: .8rem; }
.attendee .field:last-child { margin-bottom: 0; }

/* Bank */
.bank { display: grid; gap: .2rem; margin: 0 0 1.2rem; }
.bank > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 2px dashed var(--line); }
.bank dt { font: 800 .68rem var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); }
.bank dd { margin: 0; display: flex; align-items: center; gap: .6rem; font: 800 1.02rem var(--font-cond); letter-spacing: .03em; text-align: right; color: var(--navy-900); }
.copy { border: 2px solid var(--purple-600); background: transparent; color: var(--purple-600); border-radius: 999px; padding: .25rem .85rem; font: 800 .68rem var(--font-cond); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.copy:hover { background: var(--purple-600); color: #fff; }

/* Receipts */
.drop { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 2rem 1rem; border: 3px dashed var(--teal-500); border-radius: var(--radius); color: var(--teal-600); background: var(--teal-100); cursor: pointer; transition: all .2s; }
.drop strong { color: var(--navy-900); font-weight: 800; }
.drop:hover, .drop.is-over { background: #c4efea; border-color: var(--sun-500); color: var(--sun-500); transform: scale(1.01); }
.files { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.file { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.file__icon { font: 900 .68rem var(--font-cond); letter-spacing: .08em; padding: .4rem .55rem; border-radius: 8px; background: var(--sun-500); color: #fff; }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file__name small { display: block; color: var(--text-mute); }
.file__rm { border: 0; background: none; color: var(--text-soft); cursor: pointer; font-size: 1.1rem; padding: .3rem .5rem; }
.file__rm:hover { color: var(--danger); }
[data-note] { margin: .8rem 0 0; color: var(--ok); font-weight: 700; } [data-note].is-error { color: var(--danger); }
#form-error { margin-top: 1rem; }

/* Success */
.success { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-top: 1rem; }
.success h2 { font-size: 2rem; color: var(--navy-900); }
.success .ring { fill: rgba(64, 201, 192, .15); stroke: var(--teal-500); stroke-width: 2.5; stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .8s .1s var(--ease) forwards; }
.success .tick { fill: none; stroke: var(--sun-500); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.summary { width: min(100%, 380px); margin: .5rem 0; text-align: left; }
.summary div { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 2px dashed var(--line); } .summary div:last-child { border: 0; }
.summary dt { color: var(--text-soft); font-weight: 600; } .summary dd { margin: 0; font-weight: 800; color: var(--navy-900); }

/* Modal */
.modal { width: min(92vw, 460px); padding: 1.6rem; color: var(--text); background: #fff; border: 0; border-top: 8px solid var(--sun-500); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.modal[open] { animation: step-in .35s var(--ease); }
.modal::backdrop { background: rgba(46, 42, 107, .6); backdrop-filter: blur(4px); }
.modal h2 { font-size: 1.4rem; color: var(--navy-900); margin-bottom: .8rem; }
.confirm-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .4rem; }
.confirm-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--surface-soft); border-radius: var(--radius-sm); font-weight: 600; }
.confirm-list small { color: var(--sun-500); font-weight: 800; }
.shake { animation: shake .4s; } @keyframes shake { 25% { translate: -6px; } 75% { translate: 6px; } }
