/* PUCK team bags: the request page. A list of configured bags on the left, a short form on the
   right. Quiet on purpose: this is where the visitor does the one thing the site is for. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 17px/1.5 var(--font);
  color: var(--ink);
  background: var(--ice);
}

.rq { min-height: 70vh; }
.rq :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.puck-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.5em;
}

.rq-head {
  padding: clamp(36px, 5vw, 72px) var(--edge) clamp(24px, 3vw, 40px);
}
.rq-head h1,
.rq-done h1 {
  margin: 0;
  font: 800 clamp(40px, 6.1vw, 100px) / 0.9 var(--font);
  letter-spacing: -0.038em;
  text-transform: uppercase;
}
.rq-head p {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 18px;
}

.rq-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: 0 var(--edge) clamp(64px, 9vw, 130px);
}
.rq-grid h2 {
  margin: 0;
  padding-bottom: 12px;
  font: 700 22px/1.2 var(--font);
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--ink);
}

/* ------------------------------------------------------------------ the bags */

.rq-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rq-item {
  display: grid;
  grid-template-columns: clamp(120px, 15vw, 210px) minmax(0, 1fr);
  gap: 8px clamp(16px, 2vw, 28px);
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.rq-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--hall);
}
.rq-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.rq-item h3 {
  margin: 0;
  font: 800 26px/1 var(--font);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.rq-chips { display: inline-flex; }
.rq-chips i {
  width: 16px;
  height: 22px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.28);
}
.rq-chips i + i { margin-left: -1px; }
.rq-specs {
  margin: 12px 0 0;
  font-size: 15px;
}
.rq-specs > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 10px;
  padding: 3px 0;
}
.rq-specs dt { color: var(--ink-soft); }
.rq-specs dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rq-item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
}
.rq-qty label {
  display: block;
  margin-bottom: 6px;
  font: 500 15px/1.2 var(--font);
}
.rq-qty input {
  width: 7.5rem;
  padding: 10px 12px;
  font: 600 18px/1.2 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
}
.rq-qty .f-err { margin-top: 6px; }
.rq-item-links { display: flex; gap: 18px; }
.rq-link {
  padding: 6px 0;
  font: 500 15px/1.2 var(--font);
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rq-link:hover { text-decoration-thickness: 2px; }

.rq-empty {
  margin: 0;
  padding: 22px 0;
  max-width: 32em;
  border-bottom: 1px solid var(--rule);
}
.rq-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

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

.rq-form {
  position: sticky;
  top: 24px;
}
.f { margin-top: 18px; }
.f label {
  display: block;
  margin-bottom: 6px;
  font: 500 15px/1.2 var(--font);
}
.f-opt {
  margin-left: 6px;
  font-weight: 400;
  color: var(--ink-soft);
}
.f input[type="text"],
.f input[type="email"],
.f input[type="tel"],
.f input[type="date"],
.f textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: 400 17px/1.35 var(--font);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
}
.f input:hover,
.f textarea:hover { border-color: var(--ink); }
.f textarea { resize: vertical; min-height: 6.5em; }
.f input[type="file"] {
  display: block;
  width: 100%;
  font: 400 15px/1.4 var(--font);
}
.f input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  font: 500 15px/1 var(--font);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}
.f-help {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.f-err {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
}
.f[data-invalid] input,
.f[data-invalid] textarea,
.rq-qty[data-invalid] input { border-color: var(--red); }
.f-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.rq-send {
  width: 100%;
  margin-top: 26px;
}
.rq-send[disabled] { opacity: 0.6; cursor: progress; }
.rq-small {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ sent */

.rq-done {
  padding: clamp(48px, 8vw, 120px) var(--edge) clamp(72px, 10vw, 150px);
  outline: none;
}
.rq-done-lead {
  margin: 24px 0 0;
  max-width: 32em;
  font-size: 20px;
  line-height: 1.4;
}
.rq-demo {
  margin: 24px 0 0;
  max-width: 38em;
  padding: 14px 16px;
  font-size: 15px;
  background: #fff;
  border-left: 6px solid var(--red);
}

/* arriving: the page starts under the cover and its three blocks rise as the cover lifts */
.is-arriving .rq-head,
.is-arriving .rq-bags,
.is-arriving .rq-form { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .is-in .rq-head,
  .is-in .rq-bags,
  .is-in .rq-form { animation: rq-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both; }
  .is-in .rq-bags { animation-delay: 0.34s; }
  .is-in .rq-form { animation-delay: 0.42s; }
}
@keyframes rq-rise {
  from { opacity: 0; transform: translateY(28px); }
}

@media (max-width: 860px) {
  .rq-grid { grid-template-columns: minmax(0, 1fr); }
  .rq-form { position: static; }
}
@media (max-width: 520px) {
  .rq-item { grid-template-columns: minmax(0, 1fr); }
  .rq-thumb { max-width: 240px; }
  .f-pair { grid-template-columns: minmax(0, 1fr); }
  .rq-specs > div { grid-template-columns: 7rem minmax(0, 1fr); }
}
