/* Quiz card (inside .hero-card). */

.quiz {
  min-height: 360px;
  scroll-margin-top: 110px; /* clear the sticky header when scrolled into view */
}

.quiz svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  outline: none;
}

.q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin: -4px 0 14px;
}

.q-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.q-section i {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal-3);
  color: var(--on-dark-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.q-lead {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.q-opt-text {
  display: grid;
  flex: 1;
  gap: 2px;
}

.q-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
}

.q-emoji img {
  width: auto;
  max-width: 40px;
  height: auto;
  max-height: 40px;
}

.q-emoji:has(img) {
  flex-basis: 40px;
  height: 40px;
}

/* Wide pictures (the yeti portraits) */
.q-emoji-wide img {
  max-width: 64px;
  max-height: 48px;
}

.q-emoji-wide:has(img) {
  flex-basis: 64px;
  height: 48px;
}

.q-opt-text b {
  font-weight: 700;
}

.q-opt-text small {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.q-range-value {
  margin: 6px 0 18px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.q-range {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.q-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-dark) var(--fill, 50%), #ebe5da var(--fill, 50%));
}

.q-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-dark) var(--fill, 50%), #ebe5da var(--fill, 50%));
}

.q-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(22, 47, 57, 0.3);
  -webkit-appearance: none;
  appearance: none;
}

.q-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(22, 47, 57, 0.3);
}

.q-range:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 4px;
  border-radius: 8px;
}

.q-range-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.q-range-ends span:last-child {
  text-align: right;
}

.q-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 -6px;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.q-back:hover {
  color: var(--ink);
}

.q-progress {
  height: 6px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe5da;
}

.q-progress span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-dark), var(--mint));
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: q-grow 0.6s ease-out;
}

@keyframes q-grow {
  from {
    width: 0;
  }
}

.q-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.q-form {
  margin-top: 20px;
  animation: q-in 0.3s ease-out;
}

@keyframes q-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.q-options {
  display: grid;
  gap: 10px;
}

.q-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 1.5px solid #ddd6c9;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.q-option:hover {
  border-color: var(--ice);
  background: #f6f9fd;
}

.q-option:active {
  transform: scale(0.99);
}

.q-option.is-on {
  border-color: var(--ice-dark);
  background: var(--ice-soft);
}

.q-option > svg {
  color: var(--muted);
}

.q-check {
  justify-content: flex-start;
}

.q-box {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border: 1.5px solid #c9c1b2;
  border-radius: 6px;
  background: var(--white);
}

.q-box svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  color: var(--white);
  opacity: 0;
}

.q-check.is-on .q-box {
  border-color: var(--teal);
  background: var(--teal);
}

.q-check.is-on .q-box svg {
  opacity: 1;
}

.q-input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1.5px solid #ddd6c9;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.q-input::placeholder {
  color: #a49d90;
  font-weight: 500;
}

.q-input:focus {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 4px rgba(72, 223, 172, 0.2);
}

.q-input[aria-invalid="true"] {
  border-color: var(--danger);
}

.q-zip-state {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-top: 10px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
}

.q-zip-state svg {
  width: 16px;
  height: 16px;
  color: var(--mint-dark);
}

.q-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.q-error svg {
  margin-top: 1px;
}

.q-suggest {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff6dd;
  color: #6a5320;
  font-size: 14px;
}

.q-suggest-use {
  margin-top: 10px;
  padding: 8px 14px;
  border: 1.5px solid #e2c56d;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.q-next {
  margin-top: 18px;
}

.q-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(11, 15, 16, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: q-spin 0.7s linear infinite;
}

@keyframes q-spin {
  to {
    transform: rotate(360deg);
  }
}

.q-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.q-note svg {
  width: 15px;
  height: 15px;
}

.q-consent {
  margin-top: 12px;
  color: #7a7468;
  font-size: 11.5px;
  line-height: 1.5;
}

.q-ask {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--teal);
  color: var(--on-dark-muted);
  font-size: 15px;
}

.q-ask-title {
  margin-bottom: 4px;
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 700;
}

.q-ask-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.q-ask .btn {
  min-height: 46px;
  padding: 10px 20px;
  font-size: 15px;
  box-shadow: none;
}

.q-quiet {
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.q-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e7dfd2;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.q-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.q-trust svg {
  width: 15px;
  height: 15px;
  color: var(--mint-dark);
}

.q-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.q-eyebrow {
  margin-bottom: 8px;
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.q-exit,
.q-done {
  animation: q-in 0.3s ease-out;
}

.q-exit > p:not(.q-eyebrow),
.q-done > p:not(.q-eyebrow) {
  margin-top: 12px;
  color: var(--text);
}

.q-exit .btn {
  margin-top: 20px;
}

.q-call a {
  color: var(--ink);
  font-weight: 700;
}

.q-calendar {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
}

.q-calendar iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
}

/* ---------------------------------------------------- built-in calendar */

.q-cal h2 {
  font-size: clamp(26px, 3vw, 32px);
  text-wrap: balance;
}

.q-accent {
  display: block;
  color: var(--mint-dark);
}

.q-cal-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

.q-cal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.q-cal-head-times {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e7dfd2;
}

.q-days {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 4px;
  align-items: center;
}

.q-day-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.q-day-nav {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.q-day-nav:disabled {
  color: #cfc7b9;
  cursor: default;
}

.q-day {
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 0;
  padding: 8px 0;
  border: 1.5px solid #ddd6c9;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.q-day small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.q-day b {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.q-day:hover:not(:disabled) {
  border-color: var(--mint);
}

.q-day.is-on {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--on-dark);
}

.q-day.is-on small {
  color: var(--mint);
}

.q-day:disabled {
  border-style: dashed;
  background: transparent;
  color: #c9c1b2;
  cursor: default;
}

.q-day:disabled small {
  color: #c9c1b2;
}

.q-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 232px;
  overflow-y: auto;
  padding: 2px;
}

.q-time {
  min-height: 44px;
  padding: 8px 4px;
  border: 1.5px solid #ddd6c9;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.q-time:hover {
  border-color: var(--ice);
}

.q-time.is-on {
  border-color: var(--ice-dark);
  background: var(--ice-soft);
}

.q-cal-tz {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.q-cal-empty {
  padding: 22px 18px;
  border: 1.5px dashed #ddd6c9;
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.q-cal .q-next {
  margin-top: 16px;
}

.q-booked {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ice-soft);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
}

.q-booked svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--mint-dark);
  color: var(--white);
}

.q-cal-tip {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 420px) {
  .q-day-row {
    gap: 4px;
  }

  .q-day {
    padding: 7px 0;
    border-radius: 10px;
  }

  .q-day b {
    font-size: 16px;
  }

  .q-day small {
    font-size: 9.5px;
  }
}
