.fq-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(850px, calc(100dvh - 40px));
  box-sizing: border-box;
  padding: 0;
  inset: 0;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper, #f8f8f3);
  color: #182520;
  border: 1px solid #a8adaf;
  border-radius: 7px;
  box-shadow: 0 24px 90px #10192335;
  font:
    400 15px/1.45 "Schibsted Grotesk",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color-scheme: light;
}
.fq-dialog::backdrop {
  background: rgb(14 24 33 / 52%);
}
html:has(.fq-dialog[open]) {
  overflow: hidden;
}
.fq-dialog [hidden] {
  display: none !important;
}
.fq-dialog *,
.fq-dialog *::before,
.fq-dialog *::after {
  box-sizing: border-box;
}
.fq-shell {
  padding: clamp(22px, 5vw, 40px);
}
.fq-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.fq-head h2,
.fq-result h3,
.fq-call-title {
  margin: 0;
  color: #182520;
  font-family: inherit;
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.fq-head h2 {
  font-size: clamp(32px, 5vw, 44px);
}
.fq-result h3,
.fq-call-title {
  font-size: clamp(24px, 5vw, 31px);
}
.fq-head h2:focus,
.fq-result h3:focus {
  outline: none;
}
.fq-dialog button,
.fq-dialog input,
.fq-dialog select,
.fq-dialog textarea {
  font: inherit;
}
.fq-dialog button {
  cursor: pointer;
}
.fq-dialog .fq-x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #182520;
  background: transparent;
  border: 1px solid #c1c5c7;
  border-radius: 50%;
}
.fq-x:hover {
  background: #eaedeb;
}
.fq-dialog .fq-intro,
.fq-result > p {
  margin: 14px 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: #44505a;
  letter-spacing: 0;
}
.fq-notice {
  background: #edf1e9;
  border-left: 2px solid #14503d;
  padding: 10px 13px;
  font-size: 13px;
  margin: 12px 0 22px;
}
.fq-group,
.fq-options {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.fq-group legend {
  line-height: 1.2;
  font-family: inherit;
  font-size: 18px;
  font-weight: 550;
  padding: 0;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
}
.fq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin-bottom: 14px;
}
.fq-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
.fq-group [data-brief] > .fq-field + .fq-field {
  margin-top: 14px;
}
.fq-field > span,
.fq-check span {
  font-size: 14px;
  font-weight: 550;
  color: #222c35;
}
.fq-field input,
.fq-field select,
.fq-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #9ba4a7;
  border-radius: 5px;
  color: #182520;
  background-color: #fff;
  padding: 9px 11px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}
.fq-field textarea {
  resize: vertical;
}
.fq-dialog :is(input, select, textarea, button, summary, a):focus-visible {
  outline: 3px solid #14503d;
  outline-offset: 2px;
}
.fq-dialog .fq-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  cursor: pointer;
}
.fq-check input {
  accent-color: #14503d;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.fq-dialog small,
.fq-help {
  font-size: 13px;
  color: #4c5760;
  font-weight: 400;
  line-height: 1.4;
}
.fq-help.fq-indented {
  margin: 2px 0 16px 26px;
}
.fq-extra {
  border-block: 1px solid #c2c8c8;
  margin: 21px 0 15px;
}
.fq-extra summary {
  display: flex;
  align-items: baseline;
  cursor: pointer;
  gap: 8px;
  list-style: none;
  padding: 15px 0;
}
.fq-extra summary::-webkit-details-marker {
  display: none;
}
.fq-extra summary > span {
  font-size: 15px;
  font-weight: 550;
}
.fq-extra summary > small {
  margin-left: auto;
}
.fq-extra summary i {
  align-self: center;
  width: 7px;
  height: 7px;
  border: solid #3a464f;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin: -4px 3px 0 5px;
}
.fq-extra[open] > summary i,
.fq-detail-group[open] > summary i {
  transform: rotate(225deg);
  margin-top: 3px;
}
.fq-options {
  padding-bottom: 16px;
}
.fq-detail-group {
  border-top: 1px solid #d0d6ce;
  padding-inline: 2px;
}
.fq-detail-group > summary {
  min-height: 44px;
  align-items: center;
  padding: 10px 0;
  color: #234338;
}
.fq-detail-group > summary i {
  margin-left: auto;
}
.fq-detail-group > summary span {
  font-size: 14px;
}
.fq-detail-group > .fq-grid {
  margin: 4px 0 20px;
}
.fq-wide,
.fq-node-estimate {
  grid-column: 1 / -1;
}
.fq-node-estimate {
  color: #14503d;
  font-size: 13px;
}
.fq-language {
  max-width: 250px;
}
.fq-dialog .fq-error {
  border-left: 2px solid #a13830;
  padding: 8px 12px;
  background: #f8ebea;
  color: #76251f;
  font-size: 14px;
}
.fq-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 0;
  background: transparent;
  color: inherit;
}
.fq-footer a {
  font-size: 13px;
  text-decoration: underline;
  color: #14503d;
}
.fq-dialog .fq-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #14503d;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  min-height: 44px;
}
.fq-submit:hover {
  background: #0b3627;
}
.fq-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.fq-footer .fq-submit {
  margin-left: auto;
}
.fq-result {
  margin-top: 28px;
}
.fq-result dl {
  margin: 0 0 24px;
  border-top: 1px solid #c2c8c8;
}
.fq-result dt {
  margin: 12px 0 1px;
  color: #4c5760;
  font-size: 13px;
}
.fq-result dd {
  margin: 0;
  color: #182520;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.fq-call {
  width: min(480px, calc(100% - 32px));
}
.fq-call.has-calendar {
  width: min(1130px, calc(100% - 16px));
  height: min(820px, calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  background: white;
}
.fq-call.has-calendar .fq-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}
.fq-call.has-calendar .fq-head {
  flex: none;
  align-items: center;
  padding: 8px clamp(12px, 2vw, 24px);
  border-bottom: 1px solid #dce1dd;
  background: var(--paper, #fbfcfb);
}
.fq-call.has-calendar h2 {
  font-size: clamp(18px, 3vw, 26px);
}
.fq-call .fq-external {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: #205139;
  text-underline-offset: .2em;
}
.fq-call.has-calendar .fq-takeaway {
  display: none;
}
.fq-call.has-calendar [data-calendar] {
  flex: 1;
  min-height: 0;
}
.fq-call iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.fq-call-title {
  margin-top: 28px;
  font-size: 23px;
}
.fq-call .fq-intro {
  margin-bottom: 0;
}
.fq-call [data-call-quote] {
  margin-top: 22px;
  text-decoration: none;
}
.fq-contact {
  color: #3f5147;
  font-size: 14px;
  line-height: 1.5;
  margin-block: 12px 16px;
}
.fq-email a,
.fq-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #14503d;
  overflow-wrap: anywhere;
  text-decoration: underline;
}
@media (max-width: 500px) {
  .fq-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .fq-shell {
    padding: 20px;
  }
  .fq-grid {
    grid-template-columns: 1fr;
  }
  .fq-extra summary {
    flex-wrap: wrap;
    row-gap: 3px;
  }
}

.fq-fee {
  margin: -0.4rem 0 1rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid #14503d;
  background: #edf1e9;
  color: #14503d;
  font-weight: 600;
}

/* What the free 20-minute call gives the buyer, stated before they choose a time. */
.fq-takeaway {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  color: #12201b;
}

/* A field the browser rejected stays marked until the buyer edits it. */
.fq-dialog [aria-invalid="true"] {
  border-color: #b5360f;
  box-shadow: 0 0 0 1px #b5360f;
}
