/* ========================================
   FORMULÁRIO - LEGIBILIDADE MÁXIMA
   Otimização Completa de Contraste e Layout
   ======================================== */

/* ========== SEÇÃO DO FORMULÁRIO ========== */
.section-form {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
  min-height: auto;
}

.form-intro {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.form-intro .section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* TEXTO "RESPONDA COM SINCERIDADE" - CONTRASTE MÁXIMO */
.form-intro .section-text {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ========== FORMULÁRIO PROGRESSIVO ========== */
.form-progressive {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

/* ========== PROGRESS BAR ========== */
.form-progress {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-progress-bar {
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.form-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #D4AF8F 0%, #B8956F 100%);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 2px;
}

.form-progress-text {
  text-align: center;
  font-size: 0.8125rem;
  color: #4a4a4a;
  font-weight: 600;
}

/* ========== STEP (ETAPA) ========== */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
  min-height: auto;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TÍTULO DA ETAPA */
.form-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* TEXTO INTRODUTÓRIO DA ETAPA */
.form-step-intro {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-align: center;
}

.form-step-intro strong {
  color: #D4AF8F;
  font-weight: 700;
}

/* ========== OPÇÕES DE RESPOSTA ========== */
.form-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fafaf8;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
}

.form-option:hover {
  border-color: #D4AF8F;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(212, 175, 143, 0.15);
}

.form-option input[type="radio"],
.form-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* ESTADO SELECIONADO - CONTRASTE MÁXIMO */
.form-option:has(input:checked) {
  background: linear-gradient(135deg, #D4AF8F 0%, #B8956F 100%);
  border-color: #B8956F;
  box-shadow: 0 4px 15px rgba(212, 175, 143, 0.3);
}

.form-option:has(input:checked) .form-option-text {
  color: #ffffff;
  font-weight: 700;
}

.form-option:has(input:checked)::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
}

/* TEXTO DA OPÇÃO */
.form-option-text {
  position: relative;
  padding-left: 2.25rem;
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.4;
  transition: all 0.3s ease;
  margin: 0;
}

/* ========== CHECKBOXES ========== */
.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fafaf8;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
}

.form-checkbox:hover {
  border-color: #D4AF8F;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(212, 175, 143, 0.15);
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* ESTADO SELECIONADO - CHECKBOX */
.form-checkbox:has(input:checked) {
  background: linear-gradient(135deg, #8FA88F 0%, #7A8F7A 100%);
  border-color: #7A8F7A;
  box-shadow: 0 4px 15px rgba(143, 168, 143, 0.3);
}

.form-checkbox:has(input:checked) .form-checkbox-text {
  color: #ffffff;
  font-weight: 700;
}

.form-checkbox:has(input:checked)::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
}

/* TEXTO DO CHECKBOX */
.form-checkbox-text {
  position: relative;
  padding-left: 2.25rem;
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.4;
  transition: all 0.3s ease;
  margin: 0;
}

/* ========== INPUTS DE TEXTO ========== */
.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.375rem;
  letter-spacing: 0.3px;
}

.form-input {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: #1a1a1a;
  background: #fafaf8;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.form-input::placeholder {
  color: #999999;
  opacity: 0.8;
}

.form-input:focus {
  outline: none;
  border-color: #D4AF8F;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 143, 0.15);
}

/* ========== NAVEGAÇÃO ========== */
.form-navigation {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.form-navigation .btn {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
}

.form-navigation .btn-primary {
  background: linear-gradient(135deg, #D4AF8F 0%, #B8956F 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(212, 175, 143, 0.25);
}

.form-navigation .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 143, 0.35);
}

.form-navigation .btn-secondary {
  background: #8FA88F;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(143, 168, 143, 0.25);
}

.form-navigation .btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 168, 143, 0.35);
}

.form-navigation .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========== TELA FINAL ========== */
.section-final {
  padding: 2.5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
}

.final-content {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.final-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
}

.final-title {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  color: #1a1a1a;
  margin-bottom: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.final-text {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ========== TELA DE DESQUALIFICAÇÃO ========== */
.section-disqualification {
  padding: 2.5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
  min-height: auto;
}

.disqualification-content {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.disqualification-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
}

.disqualification-title {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  color: #1a1a1a;
  margin-bottom: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.disqualification-text {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.disqualification-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.disqualification-options .btn {
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  .section-form {
    padding: 1.5rem 0;
  }

  .form-progressive {
    padding: 1.5rem;
    border-radius: 0.875rem;
    margin: 0 0.75rem;
  }

  .form-intro .section-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .form-intro .section-text {
    font-size: 0.9375rem;
  }

  .form-step-title {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
  }

  .form-step-intro {
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
  }

  .form-option,
  .form-checkbox {
    padding: 0.875rem 1rem;
    min-height: 48px;
  }

  .form-option-text,
  .form-checkbox-text {
    font-size: 0.95rem;
    padding-left: 2rem;
  }

  .form-option:has(input:checked)::before,
  .form-checkbox:has(input:checked)::before {
    left: 0.875rem;
    font-size: 1rem;
  }

  .form-options,
  .form-checkboxes {
    gap: 0.625rem;
    margin-bottom: 1.25rem;
  }

  .form-inputs {
    gap: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.3125rem;
  }

  .form-input {
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1.25rem;
  }

  .form-navigation .btn {
    max-width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
  }

  .form-progress {
    margin-bottom: 1.25rem;
  }

  .section-final,
  .section-disqualification {
    padding: 1.5rem 0;
  }

  .final-content,
  .disqualification-content {
    padding: 1.75rem 1.5rem;
    margin: 0 0.75rem;
  }

  .final-icon,
  .disqualification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .final-title,
  .disqualification-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .final-text,
  .disqualification-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-form {
    padding: 1rem 0;
  }

  .form-progressive {
    padding: 1.25rem;
    margin: 0 0.5rem;
  }

  .form-intro .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
  }

  .form-intro .section-text {
    font-size: 0.875rem;
  }

  .form-step-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .form-step-intro {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .form-option,
  .form-checkbox {
    padding: 0.75rem 0.875rem;
    min-height: 46px;
  }

  .form-option-text,
  .form-checkbox-text {
    font-size: 0.9rem;
    padding-left: 1.875rem;
  }

  .form-option:has(input:checked)::before,
  .form-checkbox:has(input:checked)::before {
    left: 0.75rem;
    font-size: 1rem;
  }

  .form-options,
  .form-checkboxes {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .form-inputs {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }

  .form-input {
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .form-navigation .btn {
    max-width: 100%;
    min-height: 46px;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .form-progress {
    margin-bottom: 1rem;
  }

  .form-progress-text {
    font-size: 0.75rem;
  }

  .section-final,
  .section-disqualification {
    padding: 1rem 0;
  }

  .final-content,
  .disqualification-content {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  .final-icon,
  .disqualification-icon {
    font-size: 2.5rem;
    margin-bottom: 0.875rem;
  }

  .final-title,
  .disqualification-title {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
  }

  .final-text,
  .disqualification-text {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

/* ========== ACESSIBILIDADE ========== */
.form-option:focus-within,
.form-checkbox:focus-within {
  outline: 2px solid #D4AF8F;
  outline-offset: 2px;
}

.form-input:focus-visible {
  outline: 2px solid #D4AF8F;
  outline-offset: 2px;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #D4AF8F;
}

/* ========== ANIMAÇÕES ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}
