/* Brandon Rescue sponsor card — reservation page.
   The two cards keep the printed 1176x888 proportions; everything inside them
   is positioned as a percentage and sized in cqw so the whole card scales
   cleanly from phone to desktop. */

:root {
  --navy: #0b1a6b;
  --navy-deep: #060d3a;
  --blue: #0b3d91;
  --ink: #14181f;
  --muted: #5b6474;
  --line: #dfe3ea;
  --ok: #1e7d34;
  --bg: #eef1f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: 96px;
}

.masthead {
  background: linear-gradient(160deg, #0b3d91, #071d52);
  color: #fff;
  padding: 30px 20px 26px;
  text-align: center;
}
.masthead h1 { margin: 0 0 8px; font-size: clamp(21px, 4.4vw, 32px); letter-spacing: .01em; }
.lede { margin: 0 auto 16px; max-width: 620px; font-size: clamp(14px, 2.6vw, 16px); color: #d6e0f5; }
.avail { margin: 0 0 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 6px 15px; font-size: 14px;
}
.pill strong { font-size: 16px; }
.pill.gone { background: rgba(220,80,80,.25); border-color: rgba(255,170,170,.5); }
.deadline { margin: 0; font-size: 13px; color: #b9c8e8; }

.alert {
  max-width: 900px; margin: 18px auto 0; background: #fde8e6; border: 1px solid #f5b3ad;
  color: #8c1d18; padding: 13px 16px; border-radius: 9px; font-size: 15px;
}

main { max-width: 1000px; margin: 0 auto; padding: 22px 16px 0; }

.side { margin-bottom: 34px; }
.side h2 { font-size: clamp(17px, 3.2vw, 22px); margin: 0 0 4px; color: var(--blue); }
.side h2 .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hint { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- cards */

.card {
  position: relative;
  width: 100%;
  aspect-ratio: 1176 / 888;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
  container-type: inline-size;
  box-shadow: 0 3px 14px rgba(10, 25, 70, .18);
}
.card-a { background: linear-gradient(135deg, #2c2ccc 0%, #1a1aa8 35%, #0d0d5c 100%); }
.card-b { background: linear-gradient(180deg, #23239b 0%, #14146e 45%, #05052a 100%); }

.info-panel {
  position: absolute; left: 2.38%; top: 4.05%; width: 61.4%; height: 91.9%;
  object-fit: fill; border-radius: 2.2cqw; display: block;
}
.header-strip {
  position: absolute; left: 2.55%; top: .9%; width: 95.1%; height: 9.8%;
  object-fit: fill; border-radius: 1cqw; display: block;
}

/* ---------------------------------------------------------------- slots */

.slot {
  position: absolute;
  border: 0.35cqw solid transparent;
  border-radius: 2cqw;
  background: linear-gradient(180deg, #a9c6f2 0%, #d9e6fb 45%, #ffffff 100%);
  cursor: pointer;
  padding: 1cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4cqw;
  font-family: inherit;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  overflow: hidden;
}
.slot:hover:not(:disabled) { transform: translateY(-.35cqw); box-shadow: 0 1.2cqw 2.4cqw rgba(0,0,0,.3); }
.slot:focus-visible { outline: .5cqw solid #ffd23f; outline-offset: .2cqw; }

.logo-dot {
  background: #10131c; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; line-height: 1.05;
}
.biz   { font-weight: 800; color: #10131c; line-height: 1.1; }
.addr  { color: #3d4450; }
.dims  { color: #5b6474; }
.ticket {
  background: #0b3d91; color: #fff; font-weight: 800;
  border-radius: .9cqw; box-shadow: inset 0 0 0 .28cqw rgba(255,255,255,.55);
}
.choose { color: #0b3d91; font-weight: 700; opacity: .85; }

/* Featured spaces, main side */
.slot-featured { left: 65.3%; width: 32.3%; }
.pos-a1 { top: 4.28%; height: 45.05%; }
.pos-a2 { top: 50.9%;  height: 44.8%; }
.slot-featured .logo-dot { width: 9cqw; height: 9cqw; font-size: 1.55cqw; }
.slot-featured .biz    { font-size: 3.1cqw; }
.slot-featured .addr   { font-size: 1.5cqw; }
.slot-featured .dims   { font-size: 1.25cqw; margin-top: .3cqw; }
.slot-featured .ticket { font-size: 4.4cqw; padding: .5cqw 2.6cqw; margin-top: .6cqw; }
.slot-featured .choose { font-size: 1.3cqw; }

/* Standard spaces, reverse side */
.slot-standard { width: 17.6%; height: 39.8%; }
.pos-b1, .pos-b2, .pos-b3, .pos-b4, .pos-b5  { top: 12.7%; }
.pos-b6, .pos-b7, .pos-b8, .pos-b9, .pos-b10 { top: 54.05%; }
.pos-b1, .pos-b6  { left: 2.81%; }
.pos-b2, .pos-b7  { left: 21.94%; }
.pos-b3, .pos-b8  { left: 41.07%; }
.pos-b4, .pos-b9  { left: 60.2%; }
.pos-b5, .pos-b10 { left: 79.34%; }
.slot-standard .logo-dot { width: 6.4cqw; height: 6.4cqw; font-size: 1.1cqw; }
.slot-standard .biz    { font-size: 1.75cqw; }
.slot-standard .addr   { font-size: 1.1cqw; }
.slot-standard .dims   { font-size: 1cqw; }
.slot-standard .ticket { font-size: 3.4cqw; padding: .3cqw 1.5cqw; margin-top: .4cqw; }
.slot-standard .choose { font-size: 1cqw; }

/* States */
.slot.selected {
  border-color: #1e7d34;
  background: linear-gradient(180deg, #bdf0c8 0%, #e2f8e7 50%, #ffffff 100%);
  box-shadow: 0 0 0 .5cqw rgba(30,125,52,.35), 0 1cqw 2cqw rgba(0,0,0,.28);
}
.slot.selected .choose { color: #1e7d34; }
.slot.selected .choose::before { content: "✓ "; }

.slot.taken {
  background: linear-gradient(180deg, #9aa3b4 0%, #b9c0cc 100%);
  cursor: not-allowed;
  border-color: rgba(255,255,255,.25);
}
.stamp {
  color: #7d1d17; font-weight: 900; letter-spacing: .12em;
  border: .5cqw solid #7d1d17; border-radius: .8cqw;
  padding: .4cqw 1.2cqw; transform: rotate(-11deg); opacity: .85;
}
.slot-featured .stamp { font-size: 3.4cqw; }
.slot-standard .stamp { font-size: 1.65cqw; }

/* ---------------------------------------------------------------- form */

.reserve-form {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-top: 14px;
}
.chosen {
  background: #eef7f0; border: 1px solid #c6e5cf; border-radius: 9px;
  padding: 12px 14px; margin-bottom: 18px; font-size: 15px;
}
.chosen ul { margin: 6px 0 0; padding-left: 20px; }
.chosen .total { font-weight: 800; font-size: 17px; color: var(--ok); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; margin-top: 5px; padding: 11px 12px; font-size: 16px;
  font-family: inherit; border: 1px solid #c8cedb; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.smallprint { font-size: 13px; color: var(--muted); }
.submit {
  width: 100%; background: var(--ok); color: #fff; border: 0; border-radius: 9px;
  padding: 16px; font-size: 17px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.submit:hover { background: #17692b; }
.submit:disabled { opacity: .6; cursor: default; }

/* ---------------------------------------------------------------- tray */

.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(11, 26, 107, .97);
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
}
.tray-inner {
  max-width: 1000px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; color: #fff;
}
#trayText { font-size: 15px; font-weight: 600; }
.tray-btn {
  background: #ffd23f; color: #16213e; border: 0; border-radius: 8px;
  padding: 12px 22px; font-size: 15px; font-weight: 800; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.tray-btn:hover { background: #ffc400; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 30px; }
footer p { margin: 4px 0; }
.tiny { font-size: 12px; }
