/* Base styles */
:root {
  --mc-black: #171717;
  --mc-charcoal: #2f2f2f;
  --mc-red: #e30613;
  --mc-blue: #0055b8;
  --mc-grey-050: #fafafa;
  --mc-grey-100: #f3f4f5;
  --mc-grey-200: #e7e7e7;
  --mc-grey-300: #d6d6d6;
  --mc-grey-600: #666666;
  --mc-white: #ffffff;
  --mc-radius: 16px;
  --mc-shadow: 0 16px 46px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { margin: 0; background: transparent; }

body {
  margin: 0;
  background: transparent;
  color: var(--mc-black);
  font-family: "Poppins", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.55;
}

.container {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 24px auto 48px;
  padding: 46px 50px 42px;
  overflow: hidden;
  background: var(--mc-white);
  border: 1px solid #e4e4e4;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

h1, h2, h3 {
  margin: 0;
  color: var(--mc-black);
  font-weight: 600;
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}

.screen-eyebrow,
.step[data-question] > h2::before {
  display: block;
  margin: 0 0 12px;
  color: var(--mc-blue);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.step[data-question] > h2::before {
  content: "Trolley Selector";
}

.screen-eyebrow { margin-top: 24px; }

.step-desc {
  max-width: 780px;
  margin: 14px 0 28px;
  color: var(--mc-grey-600);
  font-size: 1.04rem;
  line-height: 1.6;
}

.logo {
  margin-bottom: 26px;
  text-align: left;
}

.logo img {
  display: block;
  width: min(230px, 62vw);
  height: auto;
}

.journey-logo { margin-bottom: 24px; }

.progress-area {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 32px;
}

#stepText {
  flex: 0 0 auto;
  color: var(--mc-grey-600);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress {
  flex: 1 1 auto;
  height: 5px;
  overflow: hidden;
  background: var(--mc-grey-200);
  border-radius: 999px;
}

#progressBar {
  width: 0;
  height: 100%;
  background: var(--mc-blue);
  border-radius: inherit;
  transition: width 220ms ease;
}

.step { display: none; }

.step.active {
  display: block;
  animation: step-in 190ms ease-out both;
}

@media (min-width: 900px) {
  .step[data-question="control"]:has(.feature-education:not([hidden])).active,
  .step[data-question="gps"]:has(.feature-education:not([hidden])).active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    column-gap: 42px;
    align-items: start;
  }

  .step[data-question]:has(.feature-education:not([hidden])) > h2,
  .step[data-question]:has(.feature-education:not([hidden])) > .step-desc,
  .step[data-question]:has(.feature-education:not([hidden])) > label {
    grid-column: 1;
  }

  .step[data-question]:has(.feature-education:not([hidden])) > .feature-education {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: end;
    margin: 0;
  }
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin-bottom: 12px;
  padding: 16px 20px 16px 22px;
  background: var(--mc-white);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  color: var(--mc-black);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.step label:hover {
  background: var(--mc-grey-050);
  border-color: #8f8f8f;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

}

.step input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.step label::after {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: 20px;
  background: var(--mc-white);
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--mc-white);
  transition: all 160ms ease;
}

/* JavaScript applies these classes so selected and focus states do not depend on CSS :has(). */
.step label.is-selected {
  position: relative;
  background: #eeeeee;
  color: var(--mc-black);
  border-color: #666666;
  box-shadow: 0 0 0 1px #666666;
  font-weight: 600;
}

.step label.is-selected::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-black);
  border-color: var(--mc-black);
  box-shadow: none;
  color: var(--mc-white);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.step label.has-input-focus {
  outline: 3px solid #666666;
  outline-offset: 2px;
}

button, .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 27px;
  background: var(--mc-black);
  border: 1.5px solid var(--mc-black);
  border-radius: 999px;
  color: var(--mc-white);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover, .btn-link:hover {
  background: #000000;
  border-color: #000000;
  color: var(--mc-white);
  transform: translateY(-1px);
}

button:focus-visible, .btn-link:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.3);
  outline-offset: 3px;
}

#prev, #skip {
  background: var(--mc-white);
  border-color: var(--mc-black);
  color: var(--mc-black);
}

#prev:hover, #skip:hover {
  background: var(--mc-grey-100);
  color: var(--mc-black);
}

#next::after, #toSummaryBtn::after {
  content: "›";
  margin-left: 12px;
  font-size: 1.45em;
  font-weight: 300;
  line-height: 0;
}

.wizard-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

#next, #toSummaryBtn, #submitBtn { margin-left: auto; }

#restartBtn, #skip { display: none; }

.alert {
  margin: 22px 0 28px;
  padding: 17px 19px;
  background: #f7f7f7;
  border: 1px solid var(--mc-grey-300);
  border-left: 4px solid var(--mc-blue);
  border-radius: 12px;
  color: var(--mc-charcoal);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}

#resultsList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  background: var(--mc-white);
  border: 1px solid var(--mc-grey-300);
  border-radius: var(--mc-radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
  border-color: #a8a8a8;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card.top {
  display: grid;
  grid-column: 1 / -1;
  grid-template-areas: "image title" "image price" "image chips" "image desc" "image upgrade" "image bags" "image button";
  grid-template-columns: minmax(330px, 46%) minmax(0, 1fr);
  align-items: start;
  column-gap: 44px;
  min-height: 360px;
  padding: 34px 36px;
  background: var(--mc-grey-050);
  border: 2px solid var(--mc-black);
}

.product-img {
  display: block;
  width: 100%;
  height: 290px;
  margin-bottom: 8px;
  object-fit: contain;
}

.card.top .product-img {
  grid-area: image;
  align-self: center;
  height: 290px;
}


.card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card.top h2 { grid-area: title; font-size: clamp(2rem, 3vw, 2.7rem); }

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 14px;
}

.price {
  margin: 0;
  color: var(--mc-black);
  font-size: 1.2rem;
  font-weight: 600;
}

.card.top .price-line { grid-area: price; }
.card.top .price { font-size: 1.65rem; }

.saving, .compare-saving {
  display: inline-block;
  border-radius: 999px;
  background: #fcebec;
  color: var(--mc-red);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.saving { padding: 6px 10px; }
.compare-saving { margin-top: 5px; padding: 4px 8px; }

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.card.top .feature-chips { grid-area: chips; }

.feature-chips span {
  padding: 6px 12px;
  background: #ebebeb;
  border-radius: 999px;
  color: var(--mc-charcoal);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
}

.desc {
  margin: 0 0 16px;
  color: var(--mc-grey-600);
  font-size: 0.9rem;
  line-height: 1.55;
}

.card.top .desc { grid-area: desc; max-width: 520px; font-size: 0.96rem; }
.card .btn-link { margin-top: 4px; }
.card.top .btn-link { grid-area: button; justify-self: start; }

.upgrade-experience {
  grid-area: upgrade;
  margin: 2px 0 20px;
  padding: 18px 20px;
  background: var(--mc-white);
  border: 1px solid var(--mc-grey-300);
  border-radius: 12px;
}

.upgrade-experience h3 {
  margin: 0 0 11px;
  color: var(--mc-black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.golf-bags-link {
  grid-area: bags;
  margin: 0 0 20px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
}
.golf-bags-link a {
  color: var(--mc-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.golf-bags-link a:hover { color: var(--mc-black); }
.golf-bags-link a:focus-visible { outline: 2px solid var(--mc-black); outline-offset: 4px; }

.upgrade-experience ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upgrade-experience li {
  position: relative;
  padding-left: 18px;
  color: var(--mc-charcoal);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.upgrade-experience li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 6px;
  height: 6px;
  background: #000000;
  border-radius: 50%;
  content: "";
}

.upgrade-experience a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.upgrade-experience a:hover { color: var(--mc-black); }
.upgrade-experience a:focus-visible { outline: 2px solid var(--mc-black); outline-offset: 4px; }

.ribbon {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  padding: 9px 20px;
  background: var(--mc-black);
  color: var(--mc-white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ribbon:not(.right) { background: #c9a87c; color: #171717; }
.ribbon.right { right: 0; left: auto; background: var(--mc-blue); }
.ribbon.budget { background: #237341; color: #ffffff; }
.ribbon.reduced { background: #e8e8e8; color: #444444; }

@media (min-width: 761px) {
  .card.top { padding-top: 64px; }
  .card.top .ribbon { padding: 12px 26px; font-size: 0.9rem; }
}

#comparison {
  margin-top: 42px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#comparison h2 { margin-bottom: 20px; font-size: 1.75rem; }

.compare-table {
  width: 100%;
  min-width: 720px;
  overflow: hidden;
  border: 1px solid var(--mc-grey-300);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--mc-white);
  font-size: 0.86rem;
}

.compare-table th, .compare-table td {
  padding: 14px 13px;
  border-right: 1px solid var(--mc-grey-200);
  border-bottom: 1px solid var(--mc-grey-200);
  text-align: center;
  vertical-align: middle;
}

.compare-table th {
  background: var(--mc-black);
  color: var(--mc-white);
  font-weight: 600;
}

.compare-table td:first-child {
  background: #f7f7f7;
  color: var(--mc-charcoal);
  font-weight: 600;
  text-align: left;
}

.compare-table .highlight-col { background: #f3eadc; color: var(--mc-black); font-weight: 600; }
.compare-table th.highlight-col { background: #c9a87c; color: var(--mc-black); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }

.compare-table .btn-link {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.78rem;
}

#summaryContent ul { margin: 26px 0 10px; padding: 0; list-style: none; }

#summaryContent li {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
  padding: 16px 18px;
  background: var(--mc-grey-050);
  border: 1px solid var(--mc-grey-200);
  border-radius: 12px;
}

#summaryContent li a {
  color: var(--mc-black);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration-color: var(--mc-blue);
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  body { font-size: 15px; }

  .container {
    width: calc(100% - 28px);
    margin: 16px auto;
    padding: 28px 22px 26px;
    border-radius: 20px;
  }

  .logo { margin-bottom: 22px; }
  .logo img { width: min(180px, 62vw); }

  .progress-area { display: block; margin-bottom: 28px; }
  #stepText { display: block; margin-bottom: 11px; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.75rem; }
  .step-desc { margin-bottom: 24px; font-size: 0.96rem; }
  .step label { min-height: 62px; padding: 14px 16px 14px 19px; }
  .wizard-navigation { gap: 10px; }
  #prev { flex: 0 0 auto; }
  #next, #toSummaryBtn, #submitBtn { flex: 1 1 auto; }
  #restartBtn { width: 100%; margin-left: 0; }
  #resultsList { display: block; }
  .card { margin-bottom: 16px; padding: 20px; }

  .card.top {
    display: block;
    min-height: 0;
    padding: 28px 22px 22px;
  }

  .product-img, .card.top .product-img {
    height: 250px;
    margin: 24px 0 12px;
  }

  .card.top h2 { font-size: 1.75rem; }
  .card.top .price { font-size: 1.4rem; }
  .card.top .btn-link, .card .btn-link { width: 100%; }
  .upgrade-experience { margin-top: 4px; padding: 16px 17px; }

  #summaryContent ul { margin-top: 18px; }
  #summaryContent li {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  #summaryContent li strong { white-space: nowrap; }
  #summaryContent li span { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
  #summaryContent li a {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .container {
    width: calc(100% - 20px);
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.6rem; }
  button, .btn-link { padding-right: 20px; padding-left: 20px; }
}

/* M09 storefront integration and results refinements. */
.card:not(.top) { display: flex; flex-direction: column; }
.card:not(.top) .btn-link { margin-top: auto; align-self: flex-start; }
.card .desc { margin-bottom: 24px; }
.price-line { gap: 10px 14px; margin-bottom: 20px; }
.feature-chips { gap: 6px; margin-bottom: 18px; }
.feature-chips span { padding: 5px 10px; font-size: 0.72rem; }
.product-img, .card.top .product-img {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 18px;
  object-fit: contain;
  margin-top: 24px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
@supports (aspect-ratio: 4 / 3) {
  .product-img, .card.top .product-img { aspect-ratio: 4 / 3; height: auto; }
}
#comparison { overflow: visible; min-width: 0; }
.comparison-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-scroll:focus { outline: 2px solid var(--mc-blue); outline-offset: 3px; }
.comparison-hint { display: none; margin: 0 0 12px; color: var(--mc-grey-600); font-size: 0.8rem; }
@media (min-width: 761px) and (max-width: 980px) {
  .card.top { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); column-gap: 24px; padding: 28px 24px; }
}
@media (max-width: 760px) {
  .comparison-hint { display: block; }
}
@media (max-width: 600px) {
  .container {
    width: 100%; margin: 0; padding: 24px 16px 32px;
    border: 0; border-radius: 0; box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* M30: approved Best Match presentation. */
.card.top .price-line { flex-direction: column; align-items: flex-start; gap: 4px; }
.card.top .saving { padding: 0; background: transparent; color: var(--mc-red); border-radius: 0; font-size: 1.1rem; }
.card.top .upgrade-experience { border-color: #a8a8a8; }
@media (min-width: 981px) {
  .card.top {
    grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
    column-gap: 28px;
    padding: 60px 28px 30px;
    border-radius: 22px;
  }
  .card.top .product-img { height: 100%; min-height: 420px; max-height: 560px; margin: 0; }
  .card.top h2 { font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 700; line-height: 1.15; }
  .card.top .price { font-size: 2rem; font-weight: 700; }
  .card.top .saving { font-size: 1.3rem; }
  .card.top .feature-chips span { border-radius: 12px; }
  .card.top .desc { color: var(--mc-black); max-width: none; }
  .card.top .btn-link { width: 100%; max-width: 440px; text-align: center; }
}

/* Consistent ribbon corners, link typography and mobile savings. */
.card.top .golf-bags-link { font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 760px) {
  .card.top .price-line { flex-direction: row; align-items: center; gap: 8px 12px; }
  .card.top .saving {
    padding: 6px 10px; background: #fcebec; color: var(--mc-red);
    border-radius: 999px; font-size: 0.76rem; line-height: 1.2;
  }
  .card.top .ribbon {
    font-size: clamp(0.65rem, 3vw, 0.84rem); padding: 10.8px 8px;
    box-sizing: border-box; max-width: calc(50% - 2px);
    letter-spacing: 0.05em;
    white-space: nowrap; overflow-wrap: normal; line-height: 1.3;
  }
  .card.top { padding-top: 54px; }
}

/* M30: matching product buttons, accessory type and rounded ribbon corners. */
.card .ribbon:not(.right) { border-bottom-right-radius: 16px; }
.card .ribbon.right { border-bottom-left-radius: 16px; }
.card.top .upgrade-experience h3,
.card.top .upgrade-experience li,
.card.top .upgrade-experience a { font-size: 0.96rem; }

/* M30: tighter mobile image spacing and matching bag-link emphasis. */
.card.top .golf-bags-link a { font-weight: 600; }
@media (max-width: 760px) {
  .card.top .product-img { margin-top: 8px; margin-bottom: 8px; }
}


/* Education styles */
.feature-education[hidden] { display: none !important; }

.feature-education {
  margin: 26px 0 4px;
  padding: 25px 26px 24px 30px;
  background: #f8f8f8;
  border: 1px solid #dedede;
  border-left: 5px solid var(--mc-blue, #0055b8);
  border-radius: 15px;
  color: #181818;
}

.feature-education::before {
  content: "Feature guide";
  display: block;
  margin-bottom: 12px;
  color: var(--mc-blue, #0055b8);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.feature-education h3 {
  margin: 0 0 12px;
  font-family: "Poppins", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}

.feature-education-copy, .feature-education-list {
  color: var(--education-copy-color, #555555);
  font-family: var(--education-copy-font-family, inherit);
  font-size: var(--education-copy-font-size, 1rem);
  font-weight: var(--education-copy-font-weight, 300);
  line-height: var(--education-copy-line-height, 1.55);
}

.feature-education-copy { margin: 0 0 18px; }

.feature-education-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.feature-education-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 26px;
}

.feature-education-list li::before {
  content: "✓";
  position: absolute;
  top: 0.22em;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: var(--mc-blue, #0055b8);
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.feature-education-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.feature-education-actions button {
  margin: 0;
  padding: var(--education-button-padding, 13px 24px);
  background: #ffffff;
  border: 1.5px solid #171717;
  border-radius: var(--education-button-radius, 999px);
  color: #171717;
  font-family: var(--education-button-font-family, inherit);
  font-size: var(--education-button-font-size, 0.92rem);
  font-weight: var(--education-button-font-weight, 600);
  line-height: var(--education-button-line-height, 1.2);
}

.feature-education-actions button:hover,
.feature-education-actions button:active {
  background: var(--education-hover-background, #f0f0f0);
  border-color: #171717;
  color: var(--education-hover-color, #171717);
}

@media (max-width: 600px) {
  .feature-education { padding: 22px 18px 20px 22px; }
  .feature-education h3 { font-size: 1.35rem; }
  .feature-education-actions { justify-content: center; }
  .feature-education-actions button { width: 100%; margin: 0; }
}


/* Refinements and overrides */
/* M30: compact, image-led presentation built on M22. */
.container {padding:26px 30px 28px;margin:16px auto 24px;}
.logo {margin-bottom:18px;}
.progress-area {margin-bottom:20px;}
.editorial-panel {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;align-items:center;}
.editorial-image {display:block;min-width:0;overflow:hidden;border-radius:16px;background:#ececea;}
.editorial-image img {display:block;width:100%;height:100%;max-height:420px;object-fit:cover;}
.editorial-copy {min-width:0;}
.editorial-copy h1 {font-size:clamp(2rem,3.2vw,2.9rem);}
.editorial-copy h2 {font-size:clamp(1.6rem,2.5vw,2.2rem);}
.editorial-copy .screen-eyebrow {margin:0 0 10px;}
.editorial-copy .step-desc {margin:12px 0 18px;font-size:.96rem;}
.step[data-question].active {display:block!important;}
.step label {min-height:52px;padding:13px 16px;margin-bottom:8px;border-radius:9px;border-color:#ddd;background:#f7f7f6;}
@media (hover: hover) and (pointer: fine) {
.step label:hover {border-color:#666;background:#eee;transform:translateY(-1px);}
}
.step label.is-selected {color:#171717;background:#e4e5e4;border-color:#444;box-shadow:inset 3px 0 #444;}
.wizard-navigation {margin-top:20px!important;}
.feature-education {margin-top:16px;padding:18px;}
#summaryContent ul {margin-top:16px;}
#summaryContent li {padding:12px 14px;margin-bottom:7px;}
.card .desc {margin-bottom:16px;}
.price-line {margin-bottom:14px;}
.feature-chips {margin-bottom:14px;}
.step.active {animation:none;}
.step.active.step-enter {animation:editorial-enter 480ms cubic-bezier(.2,.7,.2,1) both;}
.step.active.step-enter .editorial-image {animation:editorial-image-enter 600ms ease-out both;}
.step.active.step-enter .editorial-copy {animation:editorial-enter 500ms 70ms ease-out both;}
@keyframes editorial-image-enter {from{opacity:0;transform:translateX(-18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes editorial-enter {from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.is-loading #wizard,.is-loading .progress-area {display:none;}
#matchLoading[hidden] {display:none;}
#matchLoading {min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:28px;padding:32px 12px;outline:none;}
#matchLoading h2 {font-size:clamp(1.1rem,2vw,1.65rem);letter-spacing:.07em;max-width:540px;}
.loading-orbit {position:relative;width:clamp(120px,12vw,144px);height:clamp(120px,12vw,144px);flex-shrink:0;animation:orbit-spin 2s linear infinite;}
.loading-orbit span {position:absolute;inset:0;border:3px solid #e4e4e4;border-top-color:var(--mc-blue);border-radius:50%;}
.loading-orbit span:nth-child(2) {inset:14%;transform:rotate(120deg);border-top-color:#333;}
.loading-orbit span:nth-child(3) {inset:28%;transform:rotate(240deg);}
.loading-track {width:180px;height:3px;background:#eee;overflow:hidden;border-radius:4px;}
.loading-track span {display:block;width:45%;height:100%;background:var(--mc-blue);animation:track-slide 1s ease-in-out infinite alternate;}
@keyframes orbit-spin {to{transform:rotate(360deg)}}
@keyframes track-slide {from{transform:translateX(-100%)}to{transform:translateX(225%)}}
@media(max-width:760px) {
 .container {padding:18px 10px 24px;margin:0;width:100%;}
 .logo {margin-bottom:14px;}
 .progress-area {margin-bottom:14px;}
 .editorial-panel {display:flex;flex-direction:column;gap:16px;align-items:stretch;}
 .editorial-image img {height:auto;aspect-ratio:800/260;max-height:160px;}
 .editorial-copy h1 {font-size:2rem;}
 .editorial-copy h2 {font-size:1.6rem;}
 .editorial-copy .step-desc {font-size:.92rem;margin:10px 0 14px;}
 [data-screen="summary"] .editorial-image img {max-height:95px;}
 .wizard-navigation {margin-top:16px!important;}
 #summaryContent li {padding:10px 12px;}
}
@media(prefers-reduced-motion:reduce) {
 .step.active,.step.active.step-enter .editorial-image,.step.active.step-enter .editorial-copy,.loading-orbit,.loading-track span {animation:none!important;}
 .step label {transition:none;transform:none;}
}

/* Answer tiles: retain native radio semantics without visible form controls. */
.step label { position: relative; }
.step label::after,
.step label.is-selected::after { content: none; display: none; }

/* Product video and accessory refinements. */
.ribbon.premium.right {background:var(--mc-red);color:#fff;}
.upgrade-experience li::before {content:"+";background:none;border-radius:0;width:14px;height:14px;top:.05em;left:0;color:#000;font-size:18px;font-weight:500;line-height:1;}
.card.top {grid-template-areas:"image title" "image price" "image chips" "image desc" "image upgrade" "image bags" "video button";}
.watch-video {grid-area:video;justify-self:center;align-self:start;display:inline-flex;gap:9px;align-items:center;background:transparent;color:#171717;border:1px solid #171717;padding:10px 18px;font-size:.85rem;margin:12px 0;}
.watch-video span {font-size:1.4rem;line-height:1;}
.watch-video:hover {background:#eee;color:#171717;}
.video-overlay {position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.8);padding:24px 16px;overflow:auto;}
.video-panel {max-width:850px;margin:0 auto;background:#111;padding:12px;border-radius:14px;color:#fff;}
.video-close {display:block;margin:0 0 12px auto;color:#fff;background:#333;padding:10px 16px;}
.video-frame {position:relative;height:0;padding-bottom:56.25%;}
.video-frame iframe {position:absolute;inset:0;width:100%;height:100%;border:0;}
.video-external {display:inline-block;color:#fff;margin:12px 0 0;font-size:.85rem;}
@media(max-width:760px){.card.top {display:flex;flex-direction:column;} .card.top .watch-video {align-self:flex-start;} .video-overlay {padding:12px 8px;}}

.card:not(.top) .watch-video {align-self:flex-start;grid-area:auto;}

/* Alternative model actions share a row and wrap when necessary. */
.card:not(.top) .result-actions {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:auto;}
.card:not(.top) .result-actions .btn-link,
.card:not(.top) .result-actions .watch-video {margin:0;align-self:auto;white-space:nowrap;padding:10px 14px;font-size:.8rem;min-height:44px;}

/* Desktop Best Match savings match the other product tiles. */
@media (min-width: 761px) {
  .card.top .price-line { flex-direction: row; align-items: center; gap: 10px 14px; }
  .card.top .saving { padding: 6px 10px; background: #fcebec; color: var(--mc-red); border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.2; }
}

/* Respect intro visibility and provide full-width mobile actions. */
.progress-area[hidden] { display: none !important; }
@media (max-width: 760px) {
  .card .watch-video { width: 100%; max-width: none; justify-content: center; }
  .card:not(.top) .result-actions { width: 100%; }
  .card:not(.top) .result-actions .watch-video,
  .card:not(.top) .result-actions .btn-link { width: 100%; flex: 0 0 100%; justify-content: center; }
}

/* More prominent EASILOCK category link on desktop. */
@media (min-width: 981px) {
  .card.top .golf-bags-link { font-size: 1.15rem; line-height: 1.5; }
}

/* Tighter image spacing on alternative desktop result tiles. */
@media (min-width: 981px) {
  .card:not(.top) .product-img { margin-top: 18px; }
}

/* Larger intro and summary labels on desktop. */
@media (min-width: 981px) {
  .step[data-screen="intro"] .screen-eyebrow,
  .step[data-screen="summary"] .screen-eyebrow { font-size: 1rem; }
}

/* Mobile video action precedes the description; desktop locations retained. */
.card .mobile-watch-video { display: none; }
@media (max-width: 760px) {
  .card .watch-video:not(.mobile-watch-video) { display: none; }
  .card .mobile-watch-video { display: inline-flex; width: 100%; margin: 0 0 16px; justify-content: center; }
}

/* Independent logo controls and mobile journey heading. */
.logo[hidden], #mobileSelectorTitle[hidden] { display: none !important; }
#mobileSelectorTitle { display: none; }
@media (min-width: 761px) {
  .logo[data-show-desktop="false"] { display: none !important; }
}
@media (max-width: 760px) {
  .logo[data-show-mobile="false"] { display: none !important; }
  #mobileSelectorTitle { display: block; font-size: 1rem; margin: 0 0 14px; padding-top: 10px; }
  .step[data-screen="intro"] .screen-eyebrow { font-size: 1rem; }
  .progress-area[data-screen="summary"] #stepText,
  .progress-area[data-screen="results"] #stepText { display: none !important; }
}
.is-loading #mobileSelectorTitle { display: none; }

/* M36 intro video: poster keeps the existing image geometry. */
.intro-media {position:relative;}
.intro-poster {display:block;}
.intro-background-video {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;opacity:0;pointer-events:none;}
.intro-media.is-playing .intro-background-video {opacity:1;}
.intro-watch,.intro-pause {position:absolute;bottom:14px;right:14px;border:1px solid #fff;border-radius:24px;padding:10px 16px;background:rgba(0,0,0,.78);color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer;}
.intro-watch span {margin-right:7px;}
.intro-media button[hidden] {display:none!important;}
.intro-watch:focus-visible,.intro-pause:focus-visible {outline:3px solid #0055b8;outline-offset:3px;}
.intro-film-dialog {box-sizing:border-box;width:calc(100% - 24px);max-width:960px;max-height:90vh;margin:16px auto auto;padding:14px;border:0;border-radius:12px;background:#111;color:white;}
.intro-film-dialog::backdrop {background:rgba(0,0,0,.8);}
.intro-film-dialog video {display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;}
.intro-film-close {display:block;margin:0 0 12px auto;padding:10px 14px;background:white;color:#111;border:0;border-radius:20px;cursor:pointer;}
.intro-background-video[hidden] {display:none!important;}
@media(prefers-reduced-motion:reduce){.intro-background-video{display:none;}}


/* M37: three-second technical brand reveal. */
@font-face {font-family:SelectorDisplay;src:url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");font-weight:800;font-style:normal;font-display:swap;}
.container {position:relative;}
.opening-reveal {position:absolute;inset:0;z-index:1000;overflow:hidden;border-radius:16px;background:#050a12;animation:none;}
.opening-reveal::before {content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 35%,rgba(0,85,184,.38),transparent 65%),linear-gradient(rgba(70,145,230,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(70,145,230,.07) 1px,transparent 1px);background-size:auto,40px 40px,40px 40px;animation:reveal-grid var(--reveal-duration,3000ms) ease both;}
.opening-reveal::after {content:"";position:absolute;top:25px;left:25px;right:25px;bottom:25px;border:1px solid rgba(89,155,237,.2);pointer-events:none;}
.opening-reveal-skip {position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100%;height:100%;min-height:360px;padding:48px 30px 28px;border:0;border-radius:inherit;background:transparent;color:#fff;cursor:pointer;font:inherit;}
.opening-reveal-skip:focus-visible {outline:3px solid #4e9dff;outline-offset:-5px;}
.opening-reveal-line {position:absolute;top:0;bottom:0;left:0;width:2px;background:linear-gradient(transparent,#4e9dff,transparent);box-shadow:0 0 36px 10px rgba(0,85,184,.5);animation:reveal-scan var(--reveal-duration,3000ms) ease both;}
.opening-reveal-brand {position:relative;flex-shrink:0;width:min(240px,65%);overflow:hidden;animation:reveal-brand var(--reveal-duration,3000ms) ease both;}
.opening-reveal-brand img {display:block;width:100%;height:auto;filter:brightness(0) invert(1);}
.opening-reveal-copy {position:relative;max-width:100%;white-space:pre-line;margin:38px 0 0;font-family:SelectorDisplay,"Arial Narrow",sans-serif;font-size:clamp(40px,6.3vw,76px);font-weight:800;line-height:.98;letter-spacing:-.015em;text-transform:uppercase;text-align:center;text-shadow:0 3px 24px rgba(0,85,184,.35);animation:reveal-copy-modern var(--reveal-duration,3000ms) cubic-bezier(.16,1,.3,1) both;}
.opening-reveal-copy::before {content:attr(data-text);position:absolute;inset:0;white-space:pre-line;color:transparent;background:linear-gradient(105deg,transparent 34%,rgba(96,174,255,.15) 42%,#fff 50%,rgba(0,85,184,.7) 58%,transparent 66%);background-size:240% 100%;background-position:140% 0;background-clip:text;-webkit-background-clip:text;pointer-events:none;animation:reveal-copy-sheen var(--reveal-duration,3000ms) ease-out both;}
.opening-reveal-copy::after {content:"";display:block;width:70px;height:4px;margin:24px auto 0;background:#0055b8;box-shadow:0 0 18px rgba(30,120,255,.7);}
.opening-reveal-hint {position:relative;margin-top:26px;color:#a5b3c8;font-size:10px;letter-spacing:.12em;text-transform:uppercase;animation:reveal-brand var(--reveal-duration,3000ms) ease both;}
@keyframes reveal-grid {0%{opacity:0;transform:scale(1.08)}30%,100%{opacity:1;transform:scale(1)}}
@keyframes reveal-scan {0%{left:0;opacity:0}8%{opacity:1}38%{left:100%;opacity:1}50%,100%{left:100%;opacity:0}}
@keyframes reveal-brand {0%,12%{opacity:0;transform:translateY(8px)}32%,100%{opacity:1;transform:none}}
@keyframes reveal-copy-modern {0%,15%{opacity:0;transform:translateY(24px) scaleY(.9);clip-path:inset(48% 0 48% 0);filter:blur(8px);letter-spacing:.08em}42%{opacity:1;transform:translateY(0) scaleY(1);clip-path:inset(0);filter:blur(0);letter-spacing:-.015em}55%{text-shadow:-2px 0 rgba(0,85,184,.55),2px 0 rgba(255,255,255,.16),0 3px 24px rgba(0,85,184,.55)}62%,100%{opacity:1;transform:none;clip-path:inset(0);filter:blur(0);letter-spacing:-.015em;text-shadow:0 3px 24px rgba(0,85,184,.35)}}
@keyframes reveal-copy-sheen {0%,34%{opacity:0;background-position:140% 0}42%{opacity:1}72%{opacity:.75;background-position:-40% 0}82%,100%{opacity:0;background-position:-40% 0}}
@keyframes reveal-out {0%,88%{opacity:1}100%{opacity:0}}
@media(max-width:760px){.opening-reveal{border-radius:0;}.opening-reveal-skip{padding:48px 26px 24px;}.opening-reveal-copy{font-size:clamp(36px,9.2vw,58px);margin-top:40px;}.opening-reveal::after{inset:14px;}.opening-reveal-brand{width:220px;}}
@media(prefers-reduced-motion:reduce){
 .opening-reveal,.opening-reveal *,.opening-reveal::before {animation:none!important;}
 .opening-reveal-line {display:none;}
}

/* M51: icon playback control and user-activated brand reveal. */
.intro-pause {box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:50%;padding:11px;display:flex;align-items:center;justify-content:center;}
.intro-pause svg {display:block;flex-shrink:0;}
.opening-reveal-hint {position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:176px;min-height:48px;margin-top:28px;padding:13px 44px 13px 27px;border:1.5px solid var(--mc-black);border-radius:999px;background:var(--mc-black);color:var(--mc-white);font-size:.92rem;font-weight:600;letter-spacing:.01em;line-height:1.2;box-shadow:0 4px 18px rgba(0,0,0,.35);animation:none;}
.opening-reveal-hint-label {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;text-align:center;}
.opening-reveal-hint-arrow {position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:1.45em;font-weight:300;line-height:0;}
.opening-reveal-skip:hover {background:transparent;color:#fff;border:0;transform:none;}

.intro-pause:hover {background:rgba(0,0,0,.78);color:#fff;border:0;transform:none;}

/* Photorealistic trolley pass after the opening content has resolved. */
.opening-reveal-trolley {
  position:absolute;
  z-index:2;
  left:0;
  bottom:-2.5%;
  width:clamp(250px,30%,390px);
  aspect-ratio:1/1;
  pointer-events:none;
  opacity:0;
  filter:drop-shadow(0 8px 8px rgba(0,0,0,.25));
  transform:translate3d(calc(100vw - 90%),0,0);
  animation:opening-trolley-drive var(--trolley-duration,2500ms) linear both;
  animation-delay:var(--trolley-delay,1860ms);
}
.opening-reveal-brand,
.opening-reveal-copy,
.opening-reveal-hint {z-index:3;}
.opening-reveal-trolley img {position:absolute;display:block;max-width:none;pointer-events:none;}
.opening-reveal-trolley::after {content:"";position:absolute;z-index:0;left:1%;bottom:5.5%;width:76%;height:7%;border-radius:50%;background:rgba(0,0,0,.32);filter:blur(8px);transform:skewX(-10deg);}
.opening-reveal-trolley-chassis {z-index:1;inset:0;width:100%;height:100%;object-fit:contain;filter:brightness(1.2) contrast(1.02) saturate(.88) drop-shadow(-1px -1px 1px rgba(88,157,236,.08));}
.opening-reveal-trolley-wheel {
  z-index:2;
  filter:brightness(1.2) contrast(1.02) saturate(.86) drop-shadow(-1px -1px 1px rgba(88,157,236,.06));
  animation:opening-trolley-wheel-spin var(--trolley-duration,2500ms) linear both;
  animation-delay:var(--trolley-delay,1860ms);
  transform-origin:50% 50%;
}
.opening-reveal-trolley-wheel-front {left:1.6%;top:74.7%;width:15.15%;}
.opening-reveal-trolley-wheel-rear {left:44.9%;top:64.5%;width:25.52%;}
@keyframes opening-trolley-drive {
  0% {opacity:0;transform:translate3d(calc(100vw - 90%),0,0);}
  5% {opacity:1;}
  92% {opacity:1;}
  100% {opacity:0;transform:translate3d(-112%,0,0);}
}
@keyframes opening-trolley-wheel-spin {
  from {transform:rotate(0deg);}
  to {transform:rotate(-1260deg);}
}
@media(max-width:760px) {
  .opening-reveal-trolley {bottom:0;width:clamp(235px,62%,300px);}
}
@media(prefers-reduced-motion:reduce) {
  .opening-reveal-trolley {display:none;}
}

/* Continue becomes available before the trolley enters. */
.opening-reveal-hint {background:#0055b8;border-color:#0055b8;visibility:hidden;opacity:0;}
.opening-reveal-ready .opening-reveal-hint {visibility:visible;opacity:1;}
.opening-reveal-skip:disabled {cursor:default;}

/* Compact opening panel independent of the hidden intro content. */
@media(max-width:760px) {
  .opening-reveal-active .container {height:420px;min-height:0;padding:0;border:0;}
  .opening-reveal-active .container > :not(.opening-reveal) {display:none!important;}
  .opening-reveal-skip {min-height:0;padding:26px 26px 18px;}
  .opening-reveal-brand {width:190px;}
  .opening-reveal-copy {margin-top:22px;font-size:clamp(32px,9.2vw,48px);}
  .opening-reveal-copy::after {margin-top:16px;}
  .opening-reveal-hint {margin-top:20px;flex-shrink:0;}
  .opening-reveal-trolley {width:clamp(220px,58%,265px);bottom:-6px;}
}

/* Replay is separate from the Continue control. */
.opening-reveal-replay {position:absolute;z-index:5;top:18px;right:18px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:#0055b8;color:#fff;transform:none;}
.opening-reveal-replay:hover,.opening-reveal-replay:active {background:#0055b8;color:#fff;border:0;transform:none;}
.opening-reveal-replay:focus-visible {outline:3px solid #fff;outline-offset:3px;}
.opening-reveal-replay svg {display:block;flex-shrink:0;}
.opening-reveal-restarting *, .opening-reveal-restarting::before, .opening-reveal-restarting *::before, .opening-reveal-restarting *::after {animation:none!important;}
@media(max-width:760px) {
 .opening-reveal-replay {top:10px;right:10px;}
 .opening-reveal-brand {max-width:calc(100% - 60px);}
}

/* Keep the introduction's static image free of a video-play overlay. */
.intro-media .intro-watch {display:none!important;}

/* Introduction-only build label, controlled in selector.html. */
.intro-version-label {
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #666;
  text-align: left;
}
.intro-version-label[hidden] { display: none !important; }

/* Keep the original placeholder framing regardless of poster/video dimensions. */
.intro-media .intro-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 650;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}
.intro-media .intro-background-video {
  object-fit: cover;
  object-position: center;
}
@media (max-width: 760px) {
  .intro-media .intro-poster img {
    aspect-ratio: 800 / 260;
    max-height: 160px;
  }
}

.result-route-heading { grid-column: 1 / -1; margin: 20px 0 4px; }
.result-route-heading h3 { margin: 0 0 8px; font-size: 1.35rem; }
.result-route-heading p { margin: 0 0 12px; }
.preference-compromise { display: block; margin-top: 12px; font-weight: 600; }

/* Budget-conflict alerts. */
.alert.budget-conflict-alert {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #dc2626;
  border-left: 4px solid #dc2626;
  font-weight: 600;
}
.preference-compromise {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b91c1c;
  font-weight: 600;
}
.compromise-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
}

#budgetOptions #budgetRecommendation { margin: 8px 0 12px; }

#budgetRecommendation::before { content: none; display: none; }

@media (max-width: 760px) {
  .intro-version-label { margin-top: 40px; padding-bottom: 12px; }
}

@media (max-width: 760px) {
  .mobile-auto-advance #next,
  .mobile-auto-advance #toSummaryBtn { display: none !important; }
}

.opening-reveal-skip-link {
  position: absolute; z-index: 6; right: 18px; bottom: 18px;
  min-width: 60px; min-height: 44px; padding: 10px 12px;
  background: #050a12; color: #fff; border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em;
}
.opening-reveal-skip-link:hover,
.opening-reveal-skip-link:active { background: #050a12; color: #fff; transform: none; }
.opening-reveal-skip-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .summary-screen-active .wizard-navigation {
    padding-bottom: 80px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}
