.qsq-wrap {
  --qsq-border: #d8dde6;
  --qsq-text: #162033;
  --qsq-muted: #667085;
  --qsq-accent: #ffaa17;
  --qsq-accent-dark: #ffaa17;
  --qsq-focus: rgba(255, 170, 23, .18);
  color: var(--qsq-text);
  max-width: 900px;
  margin: 0 auto;
}

.qsq-form {
  margin: 0;
}

.qsq-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.qsq-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--qsq-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qsq-header h2 {
  margin: 0;
  color: var(--qsq-text);
  font-size: 30px;
  line-height: 1.18;
}

.qsq-count {
  flex: 0 0 auto;
  color: var(--qsq-muted);
  text-align: right;
}

.qsq-count strong,
.qsq-count span {
  display: block;
}

.qsq-count strong {
  color: var(--qsq-accent-dark);
  font-size: 28px;
  line-height: 1;
}

.qsq-count span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.qsq-fields {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--qsq-border);
}

.qsq-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--qsq-border);
}

.qsq-field.is-complete::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--qsq-accent);
}

.qsq-field label {
  display: flex;
  align-items: flex-start;
  margin: 0;
  color: var(--qsq-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.42;
}

.qsq-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  background: #fff2d3;
  background: rgba(255, 170, 23, .18);
  color: #7a4b00;
  font-size: 13px;
  font-weight: 800;
}

.qsq-select-wrap {
  min-width: 0;
}

.qsq-field select {
  width: 100%;
  max-width: 100%;
}

.qsq-field.has-error select {
  border-color: #b42318;
}

.qsq-company-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  /* border-top: 1px solid var(--qsq-border); */
  padding-top: 24px;
}

.qsq-company-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--qsq-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.qsq-company-field input {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}

.qsq-company-field.has-error input {
  border-color: #b42318;
}

.qsq-field-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
}

.qsq-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.qsq-actions > div {
  flex: 0 1 auto;
  text-align: right;
}

.qsq-actions strong,
.qsq-actions span {
  display: block;
}

.qsq-actions strong {
  color: var(--qsq-text);
}

.qsq-actions span {
  margin-top: 3px;
  color: var(--qsq-muted);
  font-size: 14px;
}

.qsq-actions button {
  min-height: 48px;
  border: 0;
  padding: 12px 22px;
  background: #179bff;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.qsq-actions button:hover {
  background-color: #2191e7;
  transform: translateY(-1px);
}

.qsq-actions button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.qsq-error {
  flex-basis: 100%;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.qsq-modal[hidden] {
  display: none;
}

.qsq-modal {
  --qsq-result-color: var(--qsq-accent);
  --qsq-result-text: #7a4b00;
  --qsq-result-soft: rgba(255, 170, 23, .16);
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qsq-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .68);
  backdrop-filter: blur(4px);
}

.qsq-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(780px, 88vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border-top: 5px solid var(--qsq-result-color);
  padding: 34px;
  box-shadow: 0 28px 90px rgba(16, 24, 40, .28);
}

.qsq-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--qsq-border);
  border-radius: 50%;
  background: #fff;
  color: var(--qsq-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qsq-result-score {
  display: inline-flex;
  margin: 0 46px 12px 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff2d3;
  background: var(--qsq-result-soft);
  color: var(--qsq-result-text);
  font-weight: 800;
}

.qsq-modal-dialog h3 {
  margin: 0 46px 18px 0;
  color: var(--qsq-result-text);
  font-size: 26px;
  line-height: 1.25;
}

.qsq-result-message p {
  margin: 0 0 14px;
  color: #344054;
  line-height: 1.65;
}

.qsq-result-message strong,
.qsq-result-message b {
  color: var(--qsq-text);
  font-weight: 800;
}

.qsq-result-message ul,
.qsq-result-message ol {
  margin: 0 0 14px 22px;
  color: #344054;
  line-height: 1.65;
}

.qsq-result-message a {
  color: var(--qsq-result-text);
  font-weight: 700;
  text-decoration: underline;
}

.qsq-result-note {
  margin-top: 20px;
  border-top: 1px solid var(--qsq-border);
  padding-top: 16px;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

.qsq-result-note strong {
  color: var(--qsq-text);
}

.qsq-apply-cta {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid var(--qsq-border);
  padding-top: 18px;
}

.qsq-apply-cta[hidden] {
  display: none;
}

.qsq-terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
}

.qsq-terms-check input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.qsq-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.qsq-apply-button {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 46px;
  border-radius: 6px;
  padding: 11px 18px;
  background: #2ba860;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .18s ease, transform .18s ease;
}

.qsq-intro-button {
  background: #179bff;
}

.qsq-apply-button:hover {
  color: #fff;
  transform: translateY(-1px);
}

.qsq-apply-button.is-disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.qsq-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .qsq-header {
    display: block;
  }

  .qsq-count {
    margin-top: 14px;
    text-align: left;
  }

  .qsq-field {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .qsq-company-fields {
    grid-template-columns: 1fr;
  }

  .qsq-actions button {
    flex: 0 0 auto;
  }

  .qsq-error {
    margin-top: 12px;
  }
}

@media (max-width: 460px) {
  .qsq-actions {
    display: block;
  }

  .qsq-actions > div {
    text-align: right;
  }

  .qsq-actions button {
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 540px) {
  .qsq-header h2 {
    font-size: 24px;
  }

  .qsq-field label {
    font-size: 15px;
  }

  .qsq-modal-dialog {
    padding: 28px 20px;
  }

  .qsq-apply-cta {
    display: grid;
    align-items: stretch;
  }

  .qsq-cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .qsq-apply-button {
    box-sizing: border-box;
    width: 100%;
  }
}
