/* Vivo — Class Registration · shared atoms
   Each direction sets --accent / --accent-deep / --accent-soft on :root */
@import url("./colors_and_type.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--vivo-ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --accent: var(--terracotta);
  --accent-deep: #b95e34;
  --accent-soft: var(--terracotta-soft);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 17px;
  border-radius: var(--r-pill); padding: 14px 30px; cursor: pointer;
  border: 1px solid transparent; line-height: 1.2; letter-spacing: .3px;
  text-decoration: none; transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { filter: brightness(.93); }
.btn--primary:active { transform: scale(.985); }
.btn--lg { padding: 17px 38px; font-size: 19px; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; color: var(--vivo-ink); border-color: var(--vivo-ink); }
.btn--outline:hover { background: rgba(65,83,100,.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}

/* ── Header ─────────────────────────────────────────── */
.v-header { position: relative; z-index: 20; }
.v-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.v-header__logo img { height: 40px; display: block; }
.v-header__nav { display: flex; gap: 30px; align-items: center; }
.v-header__nav a {
  color: var(--vivo-ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.v-header__nav a:not(.btn):hover { color: var(--accent); }
.v-header__phone { color: var(--vivo-ink); font-weight: 700; }

/* ── Form fields ─────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-size: 15px; font-weight: 600; color: var(--vivo-ink); letter-spacing: .2px;
}
.field .hint { font-size: 14px; color: var(--fg-2); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  font-family: var(--font-sans); font-size: 17px; padding: 15px 18px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-200);
  background: #fff; color: var(--vivo-ink); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input::placeholder { color: var(--ink-300); }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Waiver / agreement checkbox */
.agree {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1.5px solid var(--line-200); border-radius: var(--r-md);
  background: var(--cream-50); cursor: pointer;
}
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree__box {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px;
  border: 2px solid var(--ink-300); background: #fff; margin-top: 1px;
  display: grid; place-items: center; transition: all .15s ease;
}
.agree__box svg { width: 16px; height: 16px; stroke: #fff; opacity: 0; transition: opacity .12s ease; }
.agree input:checked + .agree__box { background: var(--accent); border-color: var(--accent); }
.agree input:checked + .agree__box svg { opacity: 1; }
.agree input:focus-visible + .agree__box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.agree__text { font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.agree__text a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Session picker (shared) ─────────────────────────── */
.session {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 1.5px solid var(--line-200); border-radius: var(--r-md);
  background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.session:hover { border-color: var(--accent-soft); }
.session input { position: absolute; opacity: 0; width: 0; height: 0; }
.session__box {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid var(--ink-300); background: #fff;
  display: grid; place-items: center; transition: all .15s ease;
}
.session__box svg { width: 17px; height: 17px; stroke: #fff; opacity: 0; transition: opacity .12s ease; }
.session input:checked ~ .session__box { background: var(--accent); border-color: var(--accent); }
.session input:checked ~ .session__box svg { opacity: 1; }
.session input:focus-visible ~ .session__box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.session:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.session__day { flex: 1; min-width: 0; }
.session__date { font-size: 17px; font-weight: 700; color: var(--vivo-ink); }
.session__meta { font-size: 14.5px; color: var(--fg-2); margin-top: 2px; }
.session__num {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  padding: 5px 11px; border-radius: var(--r-pill); letter-spacing: .03em;
}

/* Week group */
.weekgroup { border: 0; padding: 0; margin: 0; }
.weekgroup__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px; margin-bottom: 10px;
}
.weekgroup__title { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.weekgroup__pick {
  font-size: 13.5px; font-weight: 600; color: var(--accent); background: none;
  border: 0; cursor: pointer; padding: 4px 6px; border-radius: 6px; font-family: var(--font-sans);
}
.weekgroup__pick:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Footer */
.v-footer { background: var(--vivo-blue-ink); color: #fff; padding: 56px 40px 30px; margin-top: 0; }
.v-footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.v-footer__brand img { height: 38px; margin-bottom: 14px; display: block; }
.v-footer__brand p { font-size: 15px; color: rgba(255,255,255,.65); max-width: 320px; margin: 0; line-height: 1.55; }
.v-footer__contact { font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.9; }
.v-footer__contact a { color: #fff; text-decoration: none; }
.v-footer__legal {
  max-width: 1240px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* fact chips */
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--vivo-ink);
  background: #fff; border: 1.5px solid var(--line-200);
  padding: 9px 16px; border-radius: var(--r-pill);
}
.fact svg { width: 17px; height: 17px; stroke: var(--accent); }
