/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #1C7C4E;
  --primary-green-dark: #155A38;
  --solar-yellow: #F4B400;
  --solar-orange: #FFB300;
  --neutral-light: #FAFAFA;
  --neutral-gray: #F5F5F5;
  --neutral-dark: #2D2D2D;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/*body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1C7C4E 0%, #22965E 50%, #F4B400 100%);
  min-height: 100vh;
  color: var(--neutral-dark);
  line-height: 1.6;
}*/
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: 
    linear-gradient(135deg, rgba(28, 124, 78, 0.85) 0%, rgba(34, 150, 94, 0.85) 50%, rgba(244, 180, 0, 0.85) 100%),
    url('../assets/images/bg.jpg') center center / cover no-repeat;
  min-height: 100vh;
  color: var(--neutral-dark);
  line-height: 1.6;
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--neutral-dark);
}

/* Container principal */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card do formulário */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 20px 0;
  animation: fadeIn 0.5s ease-in;
}

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

/* Header com logo */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--solar-yellow);
}

/* Progress Bar */
.progress-container {
  margin-bottom: 30px;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--neutral-gray);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--solar-yellow) 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Títulos */
.title {
  font-size: 28px;
  margin-bottom: 12px;
  text-align: center;
  color: var(--primary-green);
}

.subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--neutral-dark);
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(28, 124, 78, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Slider */
.slider-container {
  padding: 10px 0;
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: var(--neutral-gray);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 15px 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--primary-green-dark);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-green);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 10px;
}

/* Botões de opção (cards clicáveis) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.option-card {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.option-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.option-card.selected {
  border-color: var(--primary-green);
  background: rgba(28, 124, 78, 0.05);
}

.option-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.option-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.option-label {
  font-weight: 600;
  color: var(--neutral-dark);
  font-size: 14px;
}

/* Radio e Checkbox estilizados */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-item, .checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-item:hover, .checkbox-item:hover {
  border-color: var(--primary-green);
  background: rgba(28, 124, 78, 0.02);
}

.radio-item input, .checkbox-item input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Botões */
.btn {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(28, 124, 78, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 124, 78, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 0.8s linear infinite;
}

.btn.is-loading.btn-secondary::after {
  border-color: rgba(44, 62, 80, 0.25);
  border-top-color: rgba(44, 62, 80, 0.8);
}

.btn.is-loading span {
  opacity: 0.95;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-secondary {
  background: var(--solar-yellow);
  color: var(--neutral-dark);
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--solar-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 180, 0, 0.4);
}

/* Prova social */
.social-proof {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: rgba(28, 124, 78, 0.05);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--primary-green);
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  font-size: 12px;
  color: #999;
}

.footer a {
  color: var(--primary-green);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 29, 22, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.loading-overlay.active {
  display: flex;
}

.loading-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 36px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
  max-width: 360px;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(28, 124, 78, 0.18);
  border-top-color: rgba(28, 124, 78, 0.95);
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}

.loading-message {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-green);
  margin-bottom: 6px;
}

.loading-submessage {
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.4;
}

/* Página de obrigado */
.success-container {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--solar-yellow) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

.success-title {
  font-size: 32px;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.success-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Upload de arquivo */
.upload-area {
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--neutral-light);
}

.upload-area:hover {
  border-color: var(--primary-green);
  background: rgba(28, 124, 78, 0.02);
}

.upload-area.dragover {
  border-color: var(--primary-green);
  background: rgba(28, 124, 78, 0.05);
}

.upload-icon {
  font-size: 48px;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.upload-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: #999;
}

.file-preview {
  margin-top: 20px;
  padding: 16px;
  background: rgba(28, 124, 78, 0.05);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-remove {
  background: transparent;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
}

/* Responsivo */
@media (max-width: 640px) {
  .form-card {
    padding: 24px;
  }

  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 12px;
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid var(--neutral-gray);
  border-top: 3px solid var(--primary-green);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Estados de validação */
.form-input.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-input.error + .error-message {
  display: block;
}
