/* WNY Quote widget. Everything is scoped under .gq so it can sit on any shop's site. */
.gq {
  --gq-accent: #1f6fd1;
  --gq-on-accent: #ffffff;
  --gq-ink: #1d2a2e;
  --gq-muted: #56625f;
  --gq-line: #d6d9d2;
  --gq-soft: #f2f3ef;
  --gq-surface: #ffffff;
  --gq-danger: #b3261e;

  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  color: var(--gq-ink);
  background: var(--gq-surface);
  border: 1px solid #cfd3ca;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(29, 42, 46, 0.06), 0 28px 56px -28px rgba(29, 42, 46, 0.55);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}
.gq *, .gq *::before, .gq *::after { box-sizing: inherit; }
.gq [hidden] { display: none !important; }

.gq-head {
  padding: 18px 22px 12px;
  border-top: 6px solid var(--gq-accent);
}
.gq-biz {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gq-muted);
}
.gq-title {
  margin: 2px 0 0;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.005em;
  outline: none;
}
.gq-summary {
  margin: 6px 0 0;
  color: var(--gq-muted);
  font-size: 0.9375rem;
}

.gq-body {
  display: grid;
  gap: 18px;
  padding: 6px 22px 22px;
}

.gq-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.gq-legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 650;
}
.gq-legend output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Service chips */
.gq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gq-chip { position: relative; }
.gq-chip input, .gq-seg input, .gq-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.gq-chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  border: 1.5px solid var(--gq-line);
  border-radius: 999px;
  background: var(--gq-surface);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.gq-chip span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid #9aa39f;
  border-radius: 5px;
  background: var(--gq-surface) center / 12px no-repeat;
}
.gq-chip input:checked + span {
  border-color: var(--gq-accent);
  background-color: color-mix(in srgb, var(--gq-accent) 9%, white);
}
.gq-chip input:checked + span::before {
  border-color: var(--gq-accent);
  background-color: var(--gq-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Focus rings */
.gq-chip input:focus-visible + span,
.gq-seg input:focus-visible + span,
.gq-check input:focus-visible + span,
.gq button:focus-visible,
.gq input:focus-visible,
.gq select:focus-visible,
.gq textarea:focus-visible,
.gq a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gq-accent) 55%, transparent);
  outline-offset: 2px;
}

/* Slider */
.gq-range {
  width: 100%;
  margin: 4px 0 0;
  accent-color: var(--gq-accent);
  height: 28px;
}

/* Segmented control */
.gq-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--gq-soft);
}
.gq-seg label { position: relative; }
.gq-seg span {
  display: block;
  padding: 8px 6px;
  border-radius: 9px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gq-muted);
  cursor: pointer;
  user-select: none;
}
.gq-seg input:checked + span {
  background: var(--gq-surface);
  color: var(--gq-ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(29, 42, 46, 0.14), 0 0 0 1px rgba(29, 42, 46, 0.06);
}

.gq-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

/* Window stepper */
.gq-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--gq-line);
  border-radius: 12px;
  overflow: hidden;
}
.gq-stepper button {
  width: 42px;
  border: 0;
  background: var(--gq-soft);
  color: var(--gq-ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.gq-stepper button:hover { background: #e6e8e2; }
.gq-stepper input {
  width: 56px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gq-ink);
  background: var(--gq-surface);
  -moz-appearance: textfield;
}
.gq-stepper input::-webkit-outer-spin-button,
.gq-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Checkbox rows */
.gq-check {
  position: relative;
  display: inline-flex;
  margin-top: 10px;
}
.gq-row .gq-check { margin-top: 0; }
.gq-check span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 550;
  cursor: pointer;
}
.gq-check span::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 1.5px solid #9aa39f;
  border-radius: 6px;
  background: var(--gq-surface) center / 14px no-repeat;
}
.gq-check input:checked + span::before {
  border-color: var(--gq-accent);
  background-color: var(--gq-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Price */
.gq-price {
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: var(--gq-soft);
}
.gq-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.gq-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gq-lines small, .gq-mail-lines small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--gq-muted);
}
.gq-discount { color: #2f6b3a; }
.gq-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--gq-line);
  font-weight: 650;
}
.gq-total strong {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.gq-empty {
  margin: 0;
  padding: 10px 0;
  color: var(--gq-muted);
  font-weight: 550;
}

/* Buttons */
.gq-btn {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--gq-accent);
  color: var(--gq-on-accent);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 750;
  cursor: pointer;
  transition: filter 0.15s;
}
.gq-btn:hover:not(:disabled) { filter: brightness(0.93); }
.gq-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.gq-btn-quiet {
  background: var(--gq-soft);
  color: var(--gq-ink);
}
.gq-back {
  display: inline-block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gq-accent);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gq-note, .gq-demo-note {
  margin: -6px 0 0;
  font-size: 0.8125rem;
  color: var(--gq-muted);
}
.gq-demo-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6d6;
  color: #5a4a12;
  font-size: 0.875rem;
}

/* Booking form */
.gq-field { display: grid; gap: 6px; }
.gq-field label { font-size: 0.9375rem; font-weight: 650; }
.gq-field label span { font-weight: 450; color: var(--gq-muted); }
.gq-field input, .gq-field select, .gq-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--gq-line);
  border-radius: 10px;
  background: var(--gq-surface);
  color: var(--gq-ink);
  font: inherit;
}
.gq-field textarea { resize: vertical; min-height: 64px; }
.gq-hp { position: absolute; left: -9999px; }
.gq-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbe9e7;
  color: var(--gq-danger);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Lead email preview (also used on the landing page) */
.gq-mail {
  border: 1px solid #d3d7cf;
  border-radius: 12px;
  background: #fff;
  color: var(--gq-ink, #1d2a2e);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.gq-mail-head {
  padding: 12px 16px;
  background: #f6f7f4;
  border-bottom: 1px solid #e1e4dd;
}
.gq-mail-head p { margin: 0; font-size: 0.875rem; color: #56625f; }
.gq-mail-head span { display: inline-block; min-width: 2.75em; font-weight: 650; color: #1d2a2e; }
.gq-mail-head .gq-mail-subject {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 750;
  color: #1d2a2e;
}
.gq-mail-body { padding: 14px 16px 16px; }
.gq-mail-lede { margin: 0 0 12px; font-weight: 650; }
.gq-mail-rows { margin: 0 0 12px; display: grid; gap: 4px; }
.gq-mail-rows div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.gq-mail-rows dt { color: #56625f; }
.gq-mail-rows dd { margin: 0; overflow-wrap: anywhere; }
.gq-mail-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gq-mail-lines td { padding: 7px 0; border-top: 1px solid #e6e8e2; vertical-align: top; }
.gq-mail-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.gq-mail-total td { font-weight: 800; }
.gq-mail-actions { display: flex; gap: 8px; margin: 14px 0 0; }
.gq-mail-actions a {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  background: #1d2a2e;
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}
.gq-mail-actions a + a { background: #e9ebe6; color: #1d2a2e; }

@media (max-width: 420px) {
  .gq-head { padding: 16px 16px 10px; }
  .gq-body { padding: 6px 16px 18px; }
  .gq-total strong { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gq * { transition: none !important; }
}
