:root {
  color-scheme: light;
  --red: #ef0606;
  --ink: #000;
  --muted: #6b7280;
  --line: #e2e5e9;
  --surface: #fff;
  --canvas: #efeee8;
  font-family: Archivo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.enrollment-header {
  min-height: 102px;
  padding: 18px max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #000;
  color: #efeee8;
}

.enrollment-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.enrollment-brand img {
  width: 52px;
  height: 52px;
}

.gym-details {
  display: grid;
  gap: 5px;
  color: #d3ccc7;
  font-size: .83rem;
  font-style: normal;
  text-align: right;
}

.gym-details strong {
  color: #efeee8;
  font-size: .9rem;
}

.gym-details a:hover,
.enrollment-footer a:hover {
  color: var(--red);
}

.enrollment-main {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 48px max(5vw, 24px) 72px;
}

.page-status {
  display: none;
  width: 100%;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid #d99090;
  border-radius: 10px;
  background: #fff;
  color: #750000;
  line-height: 1.5;
}

.page-status:not(:empty) {
  display: block;
}

.page-heading {
  margin-bottom: 26px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: #515967;
  font-size: .88rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--red);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.045em;
}

.page-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.enrollment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
}

.plan-options {
  display: grid;
  gap: 16px;
}

.enrollment-plan {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  min-height: 150px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.enrollment-plan:hover {
  border-color: #ff9a9a;
  box-shadow: 0 8px 24px rgb(20 30 50 / 7%);
}

.enrollment-plan.is-selected {
  border: 2px solid var(--red);
  padding: 21px 23px;
  background: #fff5f5;
  box-shadow: 0 8px 24px rgb(239 6 6 / 8%);
}

.enrollment-plan input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-mark {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #c8ced7;
  border-radius: 50%;
  background: #fff;
}

.enrollment-plan.is-selected .radio-mark {
  border: 6px solid var(--red);
}

.enrollment-plan input:focus-visible + .radio-mark {
  outline: 3px solid rgb(239 6 6 / 25%);
  outline-offset: 3px;
}

.plan-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.plan-copy > strong {
  font-size: 1.08rem;
  font-weight: 800;
}

.plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
}

.plan-facts > span {
  display: grid;
  gap: 4px;
}

.plan-facts > [hidden] {
  display: none !important;
}

.plan-facts small {
  color: var(--muted);
  font-size: .72rem;
}

.plan-facts b {
  font-size: .82rem;
}

.plan-more {
  color: #646d7c;
  font-size: .83rem;
}

.option-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.option-price b {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.option-price small {
  color: var(--muted);
  font-size: .72rem;
}

.enrollment-summary {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid #eceef1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(25 35 50 / 8%);
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.summary-title svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.summary-title h2 {
  margin: 0;
  font-size: 1rem;
}

.summary-count {
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8ebef;
  color: #5b6470;
  font-size: .72rem;
  font-weight: 800;
}

.summary-count.has-plan {
  background: var(--red);
  color: #fff;
}

.summary-content {
  min-height: 132px;
  padding: 16px 0;
}

.empty-summary {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  text-align: center;
}

.summary-plan {
  display: grid;
  gap: 9px;
}

.summary-plan strong {
  font-size: .9rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .82rem;
}

.summary-line.total-plan {
  color: var(--ink);
  font-weight: 700;
}

.personal-trainer-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.personal-trainer-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  flex: none;
}

.personal-trainer-copy {
  display: grid;
  gap: 4px;
}

.personal-trainer-copy strong {
  color: var(--ink);
  font-size: .86rem;
}

.personal-trainer-copy small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}


.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.summary-total strong {
  font-size: 1.05rem;
  color: var(--red);
}

.continue-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 800 .9rem Archivo, system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.continue-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #c90000;
}

.continue-button:disabled {
  background: #c5c8ce;
  cursor: not-allowed;
}

.summary-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

.clear-selection {
  display: block;
  margin-top: 14px;
  color: #687180;
  font-size: .8rem;
  text-align: center;
}

.clear-selection:hover {
  color: var(--red);
}

@media (max-width: 900px) {
  .enrollment-layout {
    grid-template-columns: 1fr;
  }

  .enrollment-summary {
    position: static;
  }

}

@media (max-width: 600px) {
  .enrollment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
  }

  .gym-details {
    text-align: left;
  }

  .enrollment-main {
    padding: 30px 16px 44px;
  }

  .back-link {
    margin-bottom: 22px;
  }

  .enrollment-plan {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 18px;
  }

  .enrollment-plan.is-selected {
    padding: 17px;
  }

  .option-price {
    grid-column: 2;
    grid-row: 2;
  }

  .plan-copy {
    gap: 13px;
  }

  .plan-facts {
    gap: 13px 20px;
  }

}
