.fst-quote-page {
  background: #fff;
  color: var(--fst-text, #343b47);
}

.fst-quote-shell {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 42px 0 84px;
}

.fst-quote-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 46px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--fst-border, #dce3e7);
}

.fst-quote-kicker {
  margin: 0 0 12px;
  color: var(--fst-green-dark, #3d8500);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.fst-quote-intro h1 {
  margin: 0;
  max-width: 720px;
  color: var(--fst-ink, #202633);
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: .99;
  letter-spacing: -.05em;
}

.fst-quote-intro__copy > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--fst-muted, #68717d);
  font-size: .96rem;
  line-height: 1.7;
}

.fst-quote-intro__visuals {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  grid-template-rows: 108px 108px;
  gap: 8px;
}

.fst-quote-intro__visuals figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--fst-border, #dce3e7);
  border-radius: 8px;
  background: #fff;
}

.fst-quote-intro__visuals figure:first-child {
  grid-row: 1 / 3;
}

.fst-quote-intro__visuals img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.fst-quote-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 26px;
  padding: 15px 18px;
  border-left: 3px solid var(--fst-blue-dark, #005a84);
  background: #f7fafb;
}

.fst-quote-notice strong {
  color: var(--fst-ink, #202633);
  font-size: .9rem;
}

.fst-quote-notice span {
  color: var(--fst-muted, #68717d);
  font-size: .82rem;
  line-height: 1.5;
}

.fst-quote-notice--success { border-left-color: var(--fst-green-dark, #3d8500); }
.fst-quote-notice--error { border-left-color: #b53030; }

.fst-quote-form {
  display: grid;
  gap: 0;
}

.fst-quote-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.fst-quote-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  padding: 34px 0;
  border-top: 1px solid var(--fst-border, #dce3e7);
}

.fst-quote-section:first-of-type {
  border-top: 0;
}

.fst-quote-section__heading {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-content: start;
}

.fst-quote-section__heading > span {
  color: var(--fst-green-dark, #3d8500);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.fst-quote-section__heading h2 {
  margin: 0;
  color: var(--fst-ink, #202633);
  font-size: 1.15rem;
  line-height: 1.2;
}

.fst-quote-section__heading p {
  margin: 8px 0 0;
  color: var(--fst-muted, #68717d);
  font-size: .78rem;
  line-height: 1.55;
}

.fst-quote-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fst-quote-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fst-quote-field > span,
.fst-quote-search-wrap > label,
.fst-quote-selected__item label > span {
  color: var(--fst-ink, #202633);
  font-size: .74rem;
  font-weight: 750;
}

.fst-quote-field em {
  color: #b53030;
  font-style: normal;
}

.fst-quote-field input,
.fst-quote-field select,
.fst-quote-field textarea,
.fst-quote-selected__item input,
.fst-quote-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--fst-border, #dce3e7) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--fst-text, #343b47) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: .84rem;
}

.fst-quote-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.fst-quote-field input:focus,
.fst-quote-field select:focus,
.fst-quote-field textarea:focus,
.fst-quote-selected__item input:focus,
.fst-quote-search input:focus {
  border-color: var(--fst-blue-dark, #005a84) !important;
  outline: 2px solid rgba(0, 90, 132, .10);
  outline-offset: 1px;
}

.fst-quote-field--full {
  min-width: 0;
}

.fst-quote-product-picker,
.fst-quote-field--full,
.fst-quote-upload,
.fst-quote-section > :last-child {
  min-width: 0;
}

.fst-quote-search-wrap {
  position: relative;
  max-width: 720px;
}

.fst-quote-search {
  position: relative;
  margin-top: 7px;
}

.fst-quote-search > svg {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--fst-muted, #68717d);
  stroke-width: 1.8;
  pointer-events: none;
}

.fst-quote-search input {
  padding-left: 42px !important;
}

.fst-quote-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #c8d5dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 35, 43, .12);
}

.fst-quote-search-results[hidden] { display: none !important; }

.fst-quote-search-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fst-quote-search-result:last-child { border-bottom: 0; }
.fst-quote-search-result:hover,
.fst-quote-search-result:focus { background: var(--fst-blue-soft, #eef7fa); }

.fst-quote-search-result img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.fst-quote-search-result strong,
.fst-quote-search-result span {
  display: block;
}

.fst-quote-search-result strong {
  color: var(--fst-ink, #202633);
  font-size: .78rem;
  line-height: 1.35;
}

.fst-quote-search-result span {
  margin-top: 3px;
  color: var(--fst-muted, #68717d);
  font-size: .68rem;
}

.fst-quote-search-result em {
  color: var(--fst-blue-dark, #005a84);
  font-size: .69rem;
  font-style: normal;
  font-weight: 800;
}

.fst-quote-search-empty {
  padding: 18px;
  color: var(--fst-muted, #68717d);
  font-size: .78rem;
}

.fst-quote-selected {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--fst-border, #dce3e7);
}

.fst-quote-selected:empty {
  display: none;
}

.fst-quote-selected__item {
  display: grid;
  grid-template-columns: 72px minmax(130px, 1fr) 76px minmax(150px, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--fst-border, #dce3e7);
}

.fst-quote-selected__item > img {
  width: 72px;
  height: 72px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid #edf1f3;
  border-radius: 6px;
}

.fst-quote-selected__main strong,
.fst-quote-selected__main span {
  display: block;
}

.fst-quote-selected__main strong {
  color: var(--fst-ink, #202633);
  font-size: .8rem;
  line-height: 1.4;
}

.fst-quote-selected__main span {
  margin-top: 5px;
  color: var(--fst-blue-dark, #005a84);
  font-size: .76rem;
  font-weight: 750;
}

.fst-quote-selected__item label {
  display: grid;
  gap: 5px;
}

.fst-quote-selected__item input {
  min-height: 40px;
  padding: 7px 9px;
}

.fst-quote-selected__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #7d8991 !important;
  box-shadow: none !important;
  font-size: 1.2rem;
  cursor: pointer;
}

.fst-quote-selected__remove:hover,
.fst-quote-selected__remove:focus {
  background: #f2f6f8 !important;
  color: var(--fst-blue-dark, #005a84) !important;
}

.fst-quote-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 132px;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #b8c7cf;
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
}

.fst-quote-upload__title {
  color: var(--fst-blue-dark, #005a84);
  font-size: .88rem;
  font-weight: 800;
}

.fst-quote-upload > span:not(.fst-quote-upload__title) {
  margin-top: 5px;
  color: var(--fst-muted, #68717d);
  font-size: .75rem;
  line-height: 1.5;
}

.fst-quote-upload input {
  margin-top: 14px;
  max-width: 100%;
  font-size: .76rem;
}

.fst-quote-file-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.fst-quote-file-list span {
  color: var(--fst-muted, #68717d);
  font-size: .72rem;
}

.fst-quote-submit {
  margin-top: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--fst-border, #dce3e7);
}

.fst-quote-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 760px;
  color: var(--fst-muted, #68717d);
  font-size: .75rem;
  line-height: 1.55;
}

.fst-quote-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.fst-quote-consent a {
  color: var(--fst-blue-dark, #005a84);
}

.fst-quote-submit__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.fst-quote-submit__row p {
  max-width: 680px;
  margin: 0;
  color: var(--fst-muted, #68717d);
  font-size: .72rem;
  line-height: 1.5;
}

.fst-quote-submit__button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 18px !important;
  border: 1px solid var(--fst-blue-dark, #005a84) !important;
  border-radius: 7px !important;
  background: var(--fst-blue-dark, #005a84) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.fst-quote-submit__button:hover,
.fst-quote-submit__button:focus {
  border-color: #004a6d !important;
  background: #004a6d !important;
}

.fst-quote-submit__button[disabled] {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 980px) {
  .fst-quote-intro { grid-template-columns: 1fr 330px; }
  .fst-quote-section { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .fst-quote-selected__item { grid-template-columns: 62px minmax(120px,1fr) 70px minmax(130px,1fr) 32px; }
  .fst-quote-selected__item > img { width: 62px; height: 62px; }
}

@media (max-width: 767px) {
  .fst-quote-shell { width: min(calc(100% - 28px), 1180px); padding: 30px 0 58px; }
  .fst-quote-intro { grid-template-columns: 1fr; gap: 24px; }
  .fst-quote-intro__visuals { grid-template-rows: 90px 90px; }
  .fst-quote-section { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .fst-quote-fields { grid-template-columns: 1fr; }
  .fst-quote-selected__item { grid-template-columns: 58px minmax(0, 1fr) 34px; align-items: start; }
  .fst-quote-selected__item > img { width: 58px; height: 58px; grid-row: 1 / 3; }
  .fst-quote-selected__main { min-width: 0; }
  .fst-quote-selected__item > label:not(.fst-quote-selected__notes) { grid-column: 2; }
  .fst-quote-selected__notes { grid-column: 2 / 4; }
  .fst-quote-selected__remove { grid-column: 3; grid-row: 1; }
  .fst-quote-submit__row { align-items: stretch; flex-direction: column; }
  .fst-quote-submit__button { width: 100%; }
}

/* v1.3.0 site visit request fields */
.fst-quote-visit-fields {
  grid-column: 2;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--fst-border, #dce3e7);
  border-radius: 8px;
  background: var(--fst-surface-alt, #f5f8f9);
}

.fst-quote-visit-fields[hidden] {
  display: none !important;
}

.fst-quote-visit-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.fst-quote-visit-intro strong {
  color: var(--fst-ink, #202633);
  font-size: .88rem;
}

.fst-quote-visit-intro span {
  color: var(--fst-muted, #68717d);
  font-size: .76rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .fst-quote-visit-fields {
    grid-column: 1;
    margin-top: 14px;
    padding: 16px;
  }
}
