/* "Find remote tech talent" questionnaire on companies.html
 * (#talent-quiz, driven by companies-questionnaire.js).
 * Text colour, surface and muted colour come from the active theme
 * (site/themes/*.css) where it defines them; the purple is the companies accent
 * used elsewhere on the page.
 */
html.talent-quiz-open {
  overflow: hidden;
}

.talent-quiz[hidden],
.talent-quiz [hidden] {
  display: none !important;
}

.talent-quiz {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(29, 34, 51, .6);
}

.talent-quiz-panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  overflow-y: auto;
  padding: 30px 25px;
  background: var(--gr-surface, #fff);
  color: var(--gr-ink, #1d2233);
  border-radius: 25px;
  box-shadow: 0 3px 5px 3px rgba(97, 97, 97, .15);
}

#talent-quiz-title {
  text-align: center;
}

.talent-quiz-close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--gr-muted, #5a6274);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.talent-quiz-progress {
  margin: 10px 0 8px;
  color: var(--gr-muted, #5a6274);
  font-size: 14px;
}

.talent-quiz-bar {
  display: block;
  width: 100%;
  height: 6px;
  margin-bottom: 25px;
  accent-color: #8d227f;
}

#company-questionnaire {
  display: grid;
  gap: 20px;
}

.quiz-step {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step > legend {
  padding: 0;
  margin-bottom: 12px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border: 2px solid #e7e7e7;
  border-radius: 10px;
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: #c9a3c3;
}

.quiz-option input {
  flex-shrink: 0;
  margin-top: 5px;
  accent-color: #8d227f;
}

.quiz-option:has(input:checked) {
  border-color: #8d227f;
  background: #f8f0f7;
}

.quiz-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
}

.quiz-check input {
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: #8d227f;
}

.quiz-field {
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.quiz-field input[type="text"],
.quiz-field input[type="email"],
.quiz-field input[type="tel"],
.quiz-field textarea,
.quiz-field select {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.quiz-field textarea {
  min-height: 120px;
  resize: vertical;
}

.quiz-field input:focus,
.quiz-field textarea:focus,
.quiz-field select:focus {
  border-color: #8d227f;
  outline: none;
}

.quiz-field input[type="range"] {
  width: 100%;
  accent-color: #8d227f;
}

.quiz-field output {
  font-weight: 600;
  color: #8d227f;
}

.quiz-hint {
  margin: 0;
  color: var(--gr-muted, #5a6274);
  font-size: 14px;
}

.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.quiz-nav .gigs-btn {
  margin-left: auto;
}

.quiz-back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gr-muted, #5a6274);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.quiz-error,
.quiz-fallback {
  margin: 0;
  color: #b3261e;
}

.quiz-done {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 30px 0 10px;
  text-align: center;
}

@media only screen and (min-width: 1024px) {
  .talent-quiz-panel {
    padding: 50px 60px;
  }
}

/* The "Reach out" control in the No-fees heading is now a link to the contact
 * page (an <a> wrapping the button), not the bundle-driven <button> the vendored
 * companies CSS positions via "#companies-faq > .heading > button". Give the
 * wrapping anchor the same grid placement so the layout is unchanged. */
#companies-faq > .heading > a {
  grid-column: 1;
  justify-self: left;
}
