/* Pieces added for the HTML build: native details / dialog / range controls,
   the six calculators, the booking slot picker, toasts and the booking page. */

.fcx-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.fcx-skip:focus {
  top: 1rem;
}

.fcx-btn--primary {
  color: var(--on-grad);
}

/* Lists whose length is editable */
@media (min-width: 820px) {
  .fcx-merge__lines { height: calc(var(--row) * var(--rows, 7)); }
}

.fcx-journey {
  height: calc(100vh + var(--steps, 9) * 34vh);
}

.fcx-tl__ruler {
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / var(--steps, 9))) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, rgba(128, 128, 128, 0.25) 0 1px, transparent 1px calc(100% / (var(--steps, 9) * 5))) 0 100% / 100% 45% no-repeat;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 55%, transparent) 0 1px, transparent 1px calc(100% / var(--steps, 9))) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 28%, transparent) 0 1px, transparent 1px calc(100% / (var(--steps, 9) * 5))) 0 100% / 100% 45% no-repeat;
}

.fcx-journey__name.is-swap,
.fcx-journey__stageline.is-swap,
.fcx-orbit__core b.is-swap {
  animation: none;
}

.fcx-nav__progress {
  transform: scaleX(0);
}

.fcx-footer__parent {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   FAQ: native <details>, one open at a time
   -------------------------------------------------------------------------- */

.fcx-faq__list details {
  border-bottom: 1px solid var(--line);
}

.fcx-faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.15rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
  transition: color 0.2s;
}

.fcx-faq__list summary::-webkit-details-marker {
  display: none;
}

.fcx-faq__list summary:hover {
  color: var(--hi);
}

.fcx-faq__list summary svg {
  flex: none;
  transition: transform 0.2s;
}

.fcx-faq__list details[open] summary svg {
  transform: rotate(180deg);
}

.fcx-faq__list details > div {
  max-width: 42em;
  padding-bottom: 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

/* --------------------------------------------------------------------------
   Range inputs and the calculators
   -------------------------------------------------------------------------- */

.fcx-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  background: none;
  cursor: grab;
  --p: 50%;
}

.fcx-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hi2) var(--p), var(--line-2) var(--p));
}

.fcx-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hi2) var(--p), var(--line-2) var(--p));
}

.fcx-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: calc(3px - 0.625rem);
  border-radius: 50%;
  border: 2px solid var(--hi2);
  background: var(--bg);
}

.fcx-range::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--hi2);
  background: var(--bg);
}

.fcx-range:focus-visible {
  outline: 2px solid var(--hi2);
  outline-offset: 4px;
  border-radius: 4px;
}

.fcx-calc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.fcx-calc__tabs button {
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.fcx-calc__tabs button:hover {
  border-color: var(--ink);
}

.fcx-calc__tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.fcx-roi__panels {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.fcx-roi__panels .fcx-btn {
  justify-self: start;
}

.fcx-roi .fcx-roi__out {
  padding-left: 0;
  border-left: 0;
}

@media (min-width: 900px) {
  .fcx-roi__panels {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Booking form: optional details and the slot picker
   -------------------------------------------------------------------------- */

.fcx-form__more {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.fcx-form__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.fcx-form__more summary::-webkit-details-marker {
  display: none;
}

.fcx-form__more[open] summary svg {
  transform: rotate(180deg);
}

.fcx-form__more > .fcx-form__grid {
  margin-top: 1rem;
}

.fcx-slots {
  margin: 1.25rem 0 0;
  padding: 0.9rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.fcx-slots legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.fcx-slots .fcx-form__note {
  margin: 0.2rem 0 0.8rem;
  font-size: 0.85rem;
}

.fcx-slots__days {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.fcx-slots__days button {
  flex: none;
  display: grid;
  justify-items: center;
  min-width: 3.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.25;
}

.fcx-slots__days button b {
  font-size: 1.05rem;
}

.fcx-slots__days button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.fcx-slots__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 8.2rem;
  overflow-y: auto;
  margin-top: 0.4rem;
}

.fcx-slot {
  position: relative;
  cursor: pointer;
}

.fcx-slot input {
  position: absolute;
  opacity: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  cursor: pointer;
}

.fcx-slot span {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.fcx-slot input:checked + span {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-grad);
  font-weight: 600;
}

.fcx-slot input:focus-visible + span {
  outline: 2px solid var(--hi);
  outline-offset: 2px;
}

.fcx-slots__none,
.fcx-form__estimate label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--dim);
  cursor: pointer;
}

.fcx-form__estimate {
  margin: 0;
}

.fcx-slots__none input,
.fcx-form__estimate input {
  accent-color: var(--hi2);
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Native dialog (exit offer)
   -------------------------------------------------------------------------- */

dialog.fcx-modal {
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  left: 0;
  top: 0;
  transform: none;
  margin: auto;
  height: fit-content;
}

dialog.fcx-modal:not([open]) {
  display: none;
}

dialog.fcx-modal::backdrop {
  background: rgba(2, 3, 8, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Assistant extras: voice controls, jump links, lead capture
   -------------------------------------------------------------------------- */

.fcx-chat .fcx-icon-btn[aria-pressed="true"] {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-grad);
}

.fcx-chat__go {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hi2);
  background: none;
  color: var(--hi2);
  font-size: 0.82rem;
  cursor: pointer;
}

.fcx-chat__lead {
  align-self: stretch;
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.fcx-chat .fcx-chat__lead {
  display: grid;
  border-top: 1px solid var(--line-2);
}

.fcx-chat__lead input {
  min-height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.fcx-chat__lead small {
  color: var(--rec);
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.fcx-toasts {
  position: fixed;
  top: 6.4rem;
  left: 50%;
  z-index: 96;
  transform: translateX(-50%);
  display: grid;
  gap: 0.5rem;
  width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}

.fcx-toast {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0a0d18;
  color: #e9ecf5;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.8);
  font-size: 0.95rem;
  animation: fcx-rise 0.25s ease-out both;
}

.fcx-toast b {
  display: block;
}

.fcx-toast span {
  color: #8f97b3;
}

/* --------------------------------------------------------------------------
   Booking page (/booking/:token): reschedule or cancel
   -------------------------------------------------------------------------- */

.fcx-manage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: radial-gradient(70% 60% at 80% 10%, rgba(128, 128, 128, 0.23), transparent 62%), var(--bg);
  background: radial-gradient(70% 60% at 80% 10%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 62%), var(--bg);
}

.fcx-manage__card {
  width: min(34rem, 100%);
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.fcx-manage h1 {
  margin: 0.75rem 0 0.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1;
}

.fcx-manage p {
  margin: 0 0 1rem;
  color: var(--ink);
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

.fcx-manage__when {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--hi);
}

.fcx-manage .fcx-form__actions {
  margin-top: 1.25rem;
}

.fcx-manage .fcx-slots {
  border-top: 1px solid var(--line);
}

/* The day picker scrolls sideways; do not let it widen the page on phones. */
.fcx-final__grid {
  grid-template-columns: minmax(0, 1fr);
}

.fcx-final__grid > *,
.fcx-form,
.fcx-form form {
  min-width: 0;
}

@media (min-width: 980px) {
  .fcx-final__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

/* On tall phone screens keep the bright core of the hero film in frame. */
@media (max-width: 760px) {
  .fcx-hero__video {
    object-position: 60% 50%;
  }
}
