body {
  min-height: 100vh;
}

a {
  text-underline-offset: 0.16em;
}

.wp-site-blocks {
  min-height: 100vh;
}

.arq-shell {
  padding-left: var(--wp--preset--spacing--40);
  padding-right: var(--wp--preset--spacing--40);
}

.arq-card {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 18%, transparent);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgb(17 24 39 / 8%);
}

.arq-muted {
  color: var(--wp--preset--color--muted);
}

/* Arq Live Edit compatibility guard. Keep layout spacing inactive until edit mode is triggered. */
body.arq-live-edit-compatible {
  --arq-live-edit-toolbar-space: 0px;
}

body.arq-le-active {
  --arq-live-edit-toolbar-space: 5.5rem;
}

/* /trial-booked/: cards overlap the hero. Specific enough to beat WP's
   .wp-container-* > * { margin-block-start:0 } layout reset. */
.section.booked-body {
  display: flow-root;
}
.section.booked-body .wrap > .booked-layout,
.section.booked-body .wrap > .booked-picker {
  margin-top: calc(clamp(70px, 8vw, 100px) * -1);
}
.booked-survey .arq-contact-form button[type="submit"] {
  justify-content: center;
}

/* /trial-booked/: class card lives in the sidebar. The sidebar can be taller
   than the viewport now, so it scrolls normally instead of sticking. */
.booked-layout .booked-aside {
  position: static;
}
@media (min-width: 961px) {
  .booked-layout .booked-aside .booked-venues > .booked-venue:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
  .booked-layout .booked-aside .booked-venues > .booked-venue:first-child {
    border-top: 0;
  }
}
/* Single column: class card first, then the survey, then the rest. */
@media (max-width: 960px) {
  .booked-layout .booked-main,
  .booked-layout .booked-aside {
    display: contents;
  }
  .booked-layout .booked-class {
    order: -1;
  }
}

/* /trial-booked/ with no class in the URL: "one more step" class picker.
   JS adds body.booked-picking. Without JS the normal confirmation shows. */
body:not(.booked-picking) .picking-only,
body.booked-picking .booked-only {
  display: none !important;
}

/* M.A.C.E. is not a Krav Maga class: swap copy when it is the booked class.
   main.js marks the booked venue with .is-booked, so no extra JS is needed. */
body:not(:has(.booked-venue.is-booked[data-arq-venue="mace"])) .mace-only,
body:has(.booked-venue.is-booked[data-arq-venue="mace"]) .krav-only {
  display: none !important;
}

/* About M.A.C.E. callout (booked state) */
.booked-mace {
  border-top: 4px solid var(--flare);
}
.booked-mace .eyebrow {
  margin: 0;
}
.booked-mace__title {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  color: var(--ink);
}
.booked-mace__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.booked-mace__grid > div {
  background: #FAFAF7;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 16px 18px;
}
.booked-mace__grid h3 {
  margin: 0 0 6px;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1rem;
  color: var(--flare);
}
.booked-mace__grid p {
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(13, 16, 21, .78);
}

.booked-progress {
  max-width: 560px;
  margin: 0 0 clamp(18px, 3vw, 26px);
}
.booked-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: var(--chalk);
}
.booked-progress__meta span:last-child {
  color: var(--flare);
}
.booked-progress__bar {
  height: 14px;
  border-radius: 99px;
  background: rgba(239, 237, 230, .14);
  overflow: hidden;
}
.booked-progress__bar > span {
  display: block;
  height: 100%;
  width: 90%;
  border-radius: inherit;
  background-color: var(--flare);
  background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%);
  background-size: 22px 22px;
  animation: booked-stripes 1s linear infinite;
}
@keyframes booked-stripes {
  to { background-position: 22px 0; }
}

.booked-picker {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.booked-picker__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(22px, 3vw, 30px) !important;
}
.booked-picker__head .eyebrow {
  margin: 0;
}
.booked-picker__title {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  color: var(--ink);
}
.booked-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.8vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.booked-picks li {
  margin: 0;
  padding: 0;
}
.booked-picks li::before {
  content: none;
}
.booked-pick {
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: clamp(18px, 2.4vw, 22px);
  background: #FAFAF7;
  color: var(--ink);
  border: 2px solid rgba(13, 16, 21, .12);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.booked-pick:hover,
.booked-pick:focus-visible,
.booked-pick-alt:hover,
.booked-pick-alt:focus-visible {
  border-color: var(--flare);
  border-style: solid;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -22px rgba(13, 16, 21, .45);
}
.booked-pick:focus-visible,
.booked-pick-alt:focus-visible {
  outline: 3px solid var(--flare-hot);
  outline-offset: 3px;
}
.booked-pick__day {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
  line-height: 1.15;
}
.booked-pick__day small {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: rgba(13, 16, 21, .72);
}
.booked-pick .booked-row {
  gap: 10px;
}
.booked-pick .booked-row > .bk-ico {
  width: 18px;
  height: 18px;
  color: var(--flare);
}
.booked-pick__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--flare);
}
.booked-pick__cta .arr,
.booked-pick-alt__cta .arr {
  transition: transform .18s ease;
}
.booked-pick:hover .booked-pick__cta .arr,
.booked-pick-alt:hover .booked-pick-alt__cta .arr {
  transform: translateX(4px);
}

/* M.A.C.E.: secondary option under the Krav classes */
.booked-picker__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(22px, 3vw, 30px) 0 14px !important;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  color: rgba(13, 16, 21, .55);
}
.booked-picker__or::before,
.booked-picker__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}
.booked-pick-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: clamp(16px, 2.4vw, 22px);
  background: #fff;
  color: var(--ink);
  border: 2px dashed rgba(13, 16, 21, .2);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.booked-pick-alt__text {
  flex: 1 1 420px;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.booked-pick-alt__tag {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(13, 16, 21, .07);
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  color: rgba(13, 16, 21, .7);
}
.booked-pick-alt__title {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.2;
}
.booked-pick-alt__title small {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  color: rgba(13, 16, 21, .72);
}
.booked-pick-alt__desc {
  font-size: .94rem;
  line-height: 1.55;
  color: rgba(13, 16, 21, .68);
}
.booked-pick-alt__desc b {
  color: var(--ink);
}
.booked-pick-alt__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--flare);
}

.booked-picker__foot {
  margin: clamp(20px, 3vw, 26px) 0 0 !important;
  text-align: center;
  font-size: .95rem;
  color: rgba(13, 16, 21, .66);
}
.booked-picker__foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--flare);
  text-underline-offset: 4px;
}

/* Survey: required mobile number comes first; the two questions follow
   under an "Optional" divider (best practice: essential field first). */
.booked-survey .arq-contact-field-phone > label {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.15rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 4px;
}
.booked-survey .arq-contact-field-phone + .arq-contact-field-radio {
  position: relative;
  margin-top: 12px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.booked-survey .arq-contact-field-phone + .arq-contact-field-radio::before {
  content: "Optional · help us improve (2 quick taps)";
  position: absolute;
  top: -.75em;
  left: 0;
  padding-right: 12px;
  background: #fff;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  line-height: 1.5;
  color: rgba(13, 16, 21, .55);
}
.booked-survey .arq-contact-field-phone input[type="tel"] {
  font-size: 1.1rem;
  padding: 16px 18px;
  letter-spacing: .02em;
}
.booked-survey .arq-contact-field-phone .arq-contact-field-help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 0;
  padding: 12px 14px;
  background: rgba(232, 64, 28, .06);
  border: 1px solid rgba(232, 64, 28, .22);
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(13, 16, 21, .75);
}
.booked-survey .arq-contact-field-phone .arq-contact-field-help::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--flare);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* After the survey is submitted (or skipped): drop the survey card and centre
   the remaining panels in one column. main.js adds .is-done / .is-skipped. */
.booked-saved {
  display: none;
}
.booked-layout:has(.booked-survey.is-done) .booked-saved {
  display: flex;
}
.booked-layout:has(.booked-survey.is-done, .booked-survey.is-skipped) {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.booked-layout:has(.booked-survey.is-done, .booked-survey.is-skipped) .booked-main,
.booked-layout:has(.booked-survey.is-done, .booked-survey.is-skipped) .booked-aside {
  display: contents;
}
.booked-layout:has(.booked-survey.is-done, .booked-survey.is-skipped) .booked-survey {
  display: none;
}
.booked-layout:has(.booked-survey.is-done, .booked-survey.is-skipped) .booked-class {
  order: -1;
}
.booked-layout .booked-saved {
  order: -2;
  gap: 14px;
  align-items: flex-start;
  padding: clamp(18px, 2.6vw, 24px);
  border-left: 4px solid var(--flare);
}
.booked-saved__badge {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--flare);
  color: #fff;
  display: grid;
  place-items: center;
}
.booked-saved__badge .bk-ico {
  width: 20px;
  height: 20px;
}
.booked-saved__title {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.25;
  color: var(--ink);
}
.booked-saved__text {
  margin-top: 4px !important;
  font-size: .96rem;
  line-height: 1.55;
  color: rgba(13, 16, 21, .72);
}
