/* ── Volunteer Signup with Shifts — hi-vis clipboard ────────────────
   Kraft clipboard with metal clip, ruled white signup sheet,
   safety-orange stencil headline with reflective stripe, chunky
   marker-check shift rows, CREW arm-band badge. */

:root {
  --asphalt: #3d4247;
  --asphalt-deep: #2c3034;
  --kraft: #b98d5a;
  --kraft-deep: #9c7344;
  --paper: #fefdf9;
  --rule: rgba(61, 66, 71, 0.09);
  --safety: #f76b0f;
  --safety-deep: #d5560a;
  --reflect: #ffd23e;
  --ink: #2e3236;
  --ink-soft: #7d838a;
  --ok: #2f8f4e;
  --err: #cf3f2b;
  --stencil: 'Saira Stencil One', sans-serif;
  --sans: 'Rubik', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(45deg, transparent 0 26px, rgba(255, 210, 62, 0.05) 26px 52px),
    linear-gradient(180deg, var(--asphalt), var(--asphalt-deep));
  background-attachment: fixed;
  min-height: 100vh;
  padding: 40px 16px 0;
}

.yard { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 40px); }

/* ── Clipboard ────────────────────────────────────────────────────── */
.clipboard {
  position: relative;
  background: linear-gradient(160deg, var(--kraft), var(--kraft-deep));
  border-radius: 14px;
  padding: 44px 18px 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.clip {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 40px;
  background: linear-gradient(180deg, #d8dce0, #9aa1a8);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  z-index: 3;
}

.clip-bar {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  border-radius: 999px;
  background: #6d747b;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4);
}

.paper {
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, var(--rule) 30px 31px),
    var(--paper);
  border-radius: 6px;
  padding: 38px 30px 32px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 6px 0 rgba(255, 255, 255, 0.5);
}

/* ── Header ───────────────────────────────────────────────────────── */
.head { text-align: center; margin-bottom: 26px; }

.crew-badge {
  display: inline-block;
  font-family: var(--stencil);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #fff;
  background: var(--safety);
  border-radius: 999px;
  padding: 6px 20px 5px 24px;
  transform: rotate(-3deg);
  margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(247, 107, 15, 0.4);
}

.head h1 {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: clamp(1.9rem, 7.5vw, 3rem);
  line-height: 1.06;
  text-transform: uppercase;
  color: var(--safety);
}

.stripe {
  height: 10px;
  max-width: 300px;
  margin: 14px auto;
  background: repeating-linear-gradient(-45deg, var(--reflect) 0 12px, var(--asphalt) 12px 24px);
  border-radius: 2px;
}

.event-line { font-weight: 700; font-size: 1.02rem; }

.pitch { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; }

/* ── Shifts ───────────────────────────────────────────────────────── */
.sheet-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.shifts { display: grid; gap: 10px; margin-bottom: 24px; }

.shift-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e1dcd0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.14s ease;
  width: 100%;
}

.shift-row:hover { border-color: var(--safety); }

.shift-box {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: all 0.14s ease;
}

.shift-row.is-checked { border-color: var(--safety); background: #fff7f0; }

.shift-row.is-checked .shift-box { border-color: var(--safety); background: var(--safety); }

.shift-row.is-checked .shift-box::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* ── Fields ───────────────────────────────────────────────────────── */
.field { margin-bottom: 0; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink);
}

.opt { font-weight: 500; font-size: 0.66rem; text-transform: none; letter-spacing: 0.02em; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e1dcd0;
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232e3236' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

input:focus, select:focus { outline: none; border-color: var(--safety); }
input.error { border-color: var(--err); }
input::placeholder { color: #b6bcc2; }

/* ── Button ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--stencil);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--safety), var(--safety-deep));
  border: none;
  border-radius: 10px;
  padding: 16px 30px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.12s ease;
  box-shadow: 0 5px 0 rgba(160, 62, 5, 0.6);
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--reflect); outline-offset: 3px; }

.btn-block { width: 100%; }

.form-error { color: var(--err); font-weight: 700; text-align: center; margin-top: 14px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Confirmation ─────────────────────────────────────────────────── */
.confirmed { text-align: center; padding: 24px 0 8px; }

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(47, 143, 78, 0.4);
}

.confirmed h2 {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--ink);
}

.confirmed p { color: var(--ink-soft); margin-top: 8px; }

.confirm-shifts {
  list-style: none;
  max-width: 380px;
  margin: 18px auto 0;
  text-align: left;
  display: grid;
  gap: 8px;
}

.confirm-shifts li {
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff7f0;
  border: 2px solid var(--safety);
  border-radius: 8px;
  padding: 10px 14px;
}

.confirm-shifts li::before { content: '\2713 '; color: var(--safety); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 28px 20px 30px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-top: auto;
}

#wbx-powered-by-slot { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .field-grid { grid-template-columns: 1fr; }
  .paper { padding: 30px 20px 26px; }
}
