/* ==========================================================================
   Quiz de Diagnóstico
   Telas de pergunta, aviso e navegação.
   ========================================================================== */

.ff-quiz-app {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
  color: #FAFAFA;
}

.ff-quiz-app > * {
  width: 100%;
  max-width: 640px;
}

.ff-quiz-progress {
  width: 100%;
  max-width: 640px;
  height: 4px;
  background: #505050;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ff-quiz-progress-bar {
  height: 100%;
  background: #445244;
  transition: width 0.2s ease;
}

.ff-quiz-progress-label {
  font-size: 13px;
  color: #D9D9D9;
  margin: 0 0 24px;
}

.ff-quiz-banner-gestante {
  width: 100%;
  max-width: 640px;
  background: #C8C8C8;
  color: #1C1C1C;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.ff-quiz-question-text {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 24px;
  color: #FAFAFA;
}

.ff-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.ff-quiz-option {
  text-align: left;
  padding: 14px 20px;
  border-radius: 4px;
  border: 1px solid #505050;
  background: transparent;
  color: #FAFAFA;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ff-quiz-option:hover {
  border-color: #88948A;
}

.ff-quiz-option.is-selected {
  background: #445244;
  border-color: #445244;
}

.ff-quiz-other-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #505050;
  background: transparent;
  color: #FAFAFA;
  font-size: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.ff-quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.ff-quiz-back {
  background: none;
  border: none;
  color: #88948A;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.ff-quiz-back:hover {
  text-decoration: underline;
}

.ff-quiz-next {
  margin-left: auto;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  background: #FAFAFA;
  color: #1F261F;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ff-quiz-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ff-quiz-next:not(:disabled):hover {
  opacity: 0.85;
}

@media (max-width: 781px) {
  .ff-quiz-question-text {
    font-size: 22px;
  }
}

/* Contact form
   ========================================================================== */

.ff-quiz-contact-intro {
  font-size: 16px;
  color: #D9D9D9;
  margin-bottom: 24px;
}

.ff-quiz-contact-field {
  margin-bottom: 16px;
}

.ff-quiz-contact-field label {
  display: block;
  font-size: 13px;
  color: #D9D9D9;
  margin-bottom: 6px;
}

.ff-quiz-contact-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #505050;
  background: transparent;
  color: #FAFAFA;
  font-size: 15px;
  box-sizing: border-box;
}

.ff-quiz-submit {
  width: 100%;
  padding: 16px 32px;
  border-radius: 4px;
  border: none;
  background: #FAFAFA;
  color: #1F261F;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ff-quiz-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ff-quiz-submit-error {
  color: #E9998C;
  font-size: 14px;
  margin-top: 12px;
}

/* Result screen
   ========================================================================== */

.ff-quiz-result-title {
  font-size: 32px;
  margin: 0 0 12px;
  color: #FAFAFA;
}

.ff-quiz-result-text {
  font-size: 16px;
  color: #D9D9D9;
  margin: 0 0 24px;
}

.ff-quiz-medical-alert {
  background: #C8C8C8;
  color: #1C1C1C;
  padding: 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ff-quiz-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ff-quiz-product-card {
  background: #E0E0D7;
  color: #1C1C1C;
  padding: 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.ff-quiz-product-card a {
  color: #1F261F;
  text-decoration: none;
}

.ff-quiz-product-card a:hover {
  text-decoration: underline;
}

.ff-quiz-result-notes {
  font-size: 13px;
  color: #C8C8C8;
  margin-bottom: 24px;
  line-height: 1.6;
}

.ff-quiz-result-cta {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 4px;
  background: #FAFAFA;
  color: #1F261F;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 781px) {
  .ff-quiz-product-list {
    grid-template-columns: 1fr;
  }
}
