/* High Fives — the order page and the thank-you page (app.highfives.team),
   in the same "Sunny" style as the website (site/assets/site.css). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
}

:root {
  --ink: #1d1a33;
  --coral: #d93a20;
  --coral-dark: #b02a12;
  --yellow: #ffc531;
  --blue: #2a5bd7;
  --green: #1b7a43;
  --soft-yellow: #fff1c9;
  --soft-blue: #dcebff;
  --soft-coral: #ffe1d9;
  --muted: #575370;
  --accent-ink: #b02a12; /* used by order.js for "not available" hints */
  --display: 'Bricolage Grotesque', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: #ffffff; color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 17px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { color: var(--coral); }
input, button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- header and footer (as on the website) ---------- */
.site-header { max-width: 1120px; width: 100%; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 20px; }
.site-header > a:first-of-type, .footer-inner > span:first-child { flex-shrink: 0; white-space: nowrap; }
.back-link { margin-left: auto; font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.back-link:hover { background: var(--soft-yellow); color: var(--ink); }
.site-footer { background: var(--ink); color: #ffffff; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #ffffff; }
.footer-nav a:hover { color: var(--yellow); }
.footer-note { color: #c9c6dc; font-size: 15px; margin: 0; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* ---------- the page ---------- */
.order-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 24px 72px; }
.panel { background: var(--soft-yellow); border-radius: 40px; padding: 56px 48px; }
.panel h3 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.08; letter-spacing: -1px;
}
.panel .sub { margin: 0 0 32px; font-size: 19px; max-width: 680px; }
.eyebrow { display: block; font-size: 15px; font-weight: 700; color: var(--coral-dark); margin: 0 0 6px; }
.hint { margin: 0; font-size: 15px; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

/* test-mode notice */
.warnbar {
  background: #ffffff; border: 2px dashed var(--coral); border-radius: 20px; padding: 14px 18px; margin: 0 0 20px;
  font-size: 15px;
}
.panel .warnbar { margin: 24px 0 0; }

/* plan cards: like the pricing section on the website */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 32px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  background: #ffffff; border: 3px solid transparent; border-radius: 28px; padding: 28px 26px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan:hover { border-color: #e9dcb5; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan.chosen { border-color: var(--ink); box-shadow: 0 16px 40px rgba(29, 26, 51, 0.14); }
.plan:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.plan-title { font-weight: 700; font-size: 20px; padding-right: 34px; }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.1; }
.plan-price small { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 16px; color: var(--muted); }
.plan-text { font-size: 15px; }
.plan-ribbon {
  position: absolute; top: -14px; right: 22px; background: var(--yellow); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
/* the round check in the corner */
.plan::after {
  content: ''; position: absolute; top: 26px; right: 24px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #c9c3b5; background: #ffffff;
}
.plan.chosen::after {
  border-color: var(--green); background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* form */
form[data-form="order"] { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: flex; gap: 16px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.grow { flex: 1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .suffix-input {
  padding: 13px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #ffffff; color: var(--ink); width: 100%;
}
.suffix-input { display: flex; align-items: center; padding: 0; overflow: hidden; }
.suffix-input input { border: 0; border-radius: 0; flex: 1; min-width: 0; padding: 13px 14px; font-weight: 700; color: var(--coral-dark); }
.suffix-input input:focus-visible { outline: none; }
.suffix-input:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
/* the fixed part of the address: grey, so it's clear only the name can be typed */
.suffix-input span {
  align-self: stretch; display: flex; align-items: center; padding: 0 14px; white-space: nowrap;
  background: #efebe3; color: var(--muted); font-weight: 600; border-left: 2px solid #d8d1c2;
}
.form-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--coral); color: #ffffff; font-weight: 700; font-size: 18px; padding: 16px 30px; border-radius: 999px;
}
.btn:hover { background: #c2321a; color: #ffffff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.note { margin: 0; font-weight: 700; color: var(--coral-dark); }
.note:empty { display: none; }
.payment-note { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

/* thank-you page: the board's details */
.creds { background: #ffffff; border-radius: 24px; padding: 8px 24px; margin: 0 0 4px; }
.creds > div {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid #f0e8d4;
}
.creds > div:last-child { border-bottom: 0; }
.creds span { font-size: 14px; font-weight: 700; color: var(--muted); }
.creds b, .creds a { font-family: var(--display); font-weight: 800; font-size: 22px; overflow-wrap: anywhere; }
.creds em { grid-column: 2 / 4; font-style: normal; font-size: 14px; color: var(--muted); }
.linklike {
  background: var(--soft-yellow); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px;
  cursor: pointer; color: var(--ink);
}
.linklike:hover { background: var(--yellow); }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.steps-list li { padding-left: 4px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .panel { padding: 40px 24px; border-radius: 32px; }
  .panel h3 { font-size: clamp(30px, 7vw, 46px); }
}
@media (max-width: 560px) {
  .site-header { padding: 18px 16px; }
  .back-link { display: none; } /* the logo links to the website too */
  .order-main { padding: 4px 8px 48px; }
  .panel { padding: 32px 16px; }
  .creds { padding: 4px 16px; }
  .creds > div { grid-template-columns: minmax(0, 1fr) auto; }
  .creds span { grid-column: 1 / 3; }
  .creds em { grid-column: 1 / 3; }
}
