:root {
  --tch-fq-ink: #222725;
  --tch-fq-muted: #5e6864;
  --tch-fq-line: #d7dfda;
  --tch-fq-soft: #f7faf8;
  --tch-fq-paper: #ffffff;
  --tch-fq-accent: #f5d547;
  --tch-fq-accent-dark: #171915;
  --tch-fq-focus: #2b7bb9;
  --tch-fq-error: #a33b33;
  --tch-fq-ok: #2f6f4e;
}

.tch-fast-quote {
  color: var(--tch-fq-ink);
  font-family: inherit;
}

.tch-fast-quote__panel {
  position: fixed;
  z-index: 900;
  right: clamp(18px, 4vw, 64px);
  top: auto;
  bottom: 72px;
  transform: none;
  width: min(315px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--tch-fq-paper);
  border: 1px solid rgba(34, 39, 37, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(22, 26, 24, 0.2);
}

.tch-fast-quote--preview .tch-fast-quote__panel {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  margin: 24px auto;
}

.tch-fast-quote[data-tch-position="top-right"] .tch-fast-quote__panel {
  top: 104px;
  bottom: auto;
  transform: none;
}

.tch-fast-quote[data-tch-position="center-right"] .tch-fast-quote__panel {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.tch-fast-quote[data-tch-position="bottom-right"] .tch-fast-quote__panel {
  top: auto;
  bottom: 72px;
  transform: none;
}

.tch-fast-quote__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--tch-fq-line);
}

.tch-fast-quote__eyebrow {
  margin: 0 0 4px;
  color: var(--tch-fq-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tch-fast-quote h2,
.tch-fast-quote h3,
.tch-fast-quote p {
  margin-top: 0;
}

.tch-fast-quote h2 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.15;
}

.tch-fast-quote h3 {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.25;
}

.tch-fast-quote__header p:last-child {
  margin-bottom: 0;
  color: var(--tch-fq-muted);
  font-size: 12px;
  line-height: 1.4;
}

.tch-fast-quote__collapse,
.tch-fast-quote__close,
.tch-fast-quote__collapsed,
.tch-fast-quote__mobile-trigger,
.tch-fast-quote button {
  font: inherit;
}

.tch-fast-quote__collapse,
.tch-fast-quote__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--tch-fq-line);
  border-radius: 6px;
  background: var(--tch-fq-soft);
  color: var(--tch-fq-ink);
  cursor: pointer;
}

.tch-fast-quote__close {
  display: none;
}

.tch-fast-quote__collapsed {
  display: none;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: var(--tch-fq-accent);
  color: var(--tch-fq-accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.tch-fast-quote.is-collapsed .tch-fast-quote__header,
.tch-fast-quote.is-collapsed .tch-fast-quote__form,
.tch-fast-quote.is-collapsed .tch-fast-quote__trust,
.tch-fast-quote.is-collapsed .tch-fast-quote__clients {
  display: none;
}

.tch-fast-quote.is-collapsed .tch-fast-quote__collapsed {
  display: block;
}

.tch-fast-quote__form {
  padding: 12px 14px 10px;
}

.tch-fast-quote__progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.tch-fast-quote__progress span {
  height: 4px;
  border-radius: 999px;
  background: #e6ebe8;
}

.tch-fast-quote__progress span.is-active,
.tch-fast-quote__progress span.is-complete {
  background: var(--tch-fq-accent);
}

.tch-fast-quote__notice {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #eadf9e;
  border-radius: 6px;
  background: #fff9d8;
  color: #5c4c10;
  font-size: 12px;
  line-height: 1.35;
}

.tch-fast-quote__step {
  display: none;
}

.tch-fast-quote__step.is-active {
  display: block;
}

.tch-fast-quote label {
  display: block;
  margin-bottom: 9px;
  color: var(--tch-fq-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.tch-fast-quote label:not(.tch-fast-quote__checkbox) > span {
  color: var(--tch-fq-error);
}

.tch-fast-quote input,
.tch-fast-quote select,
.tch-fast-quote textarea {
  display: block;
  width: 100%;
  min-height: 34px;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid var(--tch-fq-line);
  border-radius: 6px;
  background: #fff;
  color: var(--tch-fq-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
}

.tch-fast-quote textarea {
  resize: vertical;
}

.tch-fast-quote input:focus,
.tch-fast-quote select:focus,
.tch-fast-quote textarea:focus,
.tch-fast-quote button:focus {
  outline: 3px solid rgba(43, 123, 185, 0.28);
  outline-offset: 2px;
}

.tch-fast-quote [aria-invalid="true"] {
  border-color: var(--tch-fq-error);
}

.tch-fast-quote__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tch-fast-quote__actions {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.tch-fast-quote__actions button,
.tch-fast-quote__primary {
  min-height: 38px;
  border: 1px solid var(--tch-fq-line);
  border-radius: 6px;
  background: var(--tch-fq-soft);
  color: var(--tch-fq-ink);
  font-weight: 800;
  cursor: pointer;
}

.tch-fast-quote__primary {
  width: 100%;
  border-color: var(--tch-fq-accent);
  background: var(--tch-fq-accent);
  color: var(--tch-fq-accent-dark);
}

.tch-fast-quote__checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-weight: 500;
}

.tch-fast-quote__checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.tch-fast-quote__checkbox span {
  color: var(--tch-fq-ink);
}

.tch-fast-quote__reassurance {
  margin-bottom: 10px;
  color: var(--tch-fq-muted);
  font-size: 12px;
}

.tch-fast-quote__message {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #edf7f0;
  color: var(--tch-fq-ok);
  font-size: 12px;
  line-height: 1.4;
}

.tch-fast-quote__message.is-error {
  background: #fff0ef;
  color: var(--tch-fq-error);
}

.tch-fast-quote__trust {
  padding: 9px 14px;
  border-top: 1px solid var(--tch-fq-line);
  color: var(--tch-fq-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tch-fast-quote__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 14px 12px;
  font-size: 12px;
}

.tch-fast-quote__clients span {
  width: 100%;
  color: var(--tch-fq-muted);
  font-weight: 800;
}

.tch-fast-quote__clients a {
  color: var(--tch-fq-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tch-fast-quote__mobile-trigger {
  display: none;
}

.tch-fast-quote__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 767px) {
  .tch-fast-quote__mobile-trigger {
    display: block;
    position: fixed;
    z-index: 900;
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--tch-fq-accent);
    color: var(--tch-fq-accent-dark);
    font-weight: 900;
    box-shadow: 0 12px 32px rgba(22, 26, 24, 0.24);
    cursor: pointer;
  }

  .tch-fast-quote__panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: min(86vh, 720px);
    border-radius: 12px 12px 0 0;
    transform: translateY(104%);
    transition: transform 180ms ease;
  }

  .tch-fast-quote.is-open .tch-fast-quote__panel,
  .tch-fast-quote--preview .tch-fast-quote__panel {
    transform: translateY(0);
  }

  .tch-fast-quote__close {
    display: inline-block;
  }

  .tch-fast-quote__collapse {
    display: none;
  }

  .tch-fast-quote__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tch-fast-quote__actions {
    grid-template-columns: 1fr 1.3fr;
  }
}
