* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.banner {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
}

.banner-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
  border-bottom: 3px solid #e0e0e0;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Secoes */
.section {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Campos de input */
.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.field label .required {
  color: #e53e3e;
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  background: #fafafa;
}

.field input:focus {
  outline: none;
  border-color: #555;
  background: #fff;
}

/* Perguntas do questionario */
.question {
  margin-bottom: 24px;
}

.question:last-child {
  margin-bottom: 0;
}

.question-label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.question-label .q-number {
  color: #888;
  font-weight: 600;
  margin-right: 4px;
}

/* Radio e checkbox options */
.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.option:hover {
  background: #f7f7f7;
}

.option input[type="radio"] {
  margin-right: 10px;
  accent-color: #555;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.option span {
  font-size: 14px;
  color: #444;
}

/* Campo "Outro" inline */
.option-outro {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  gap: 10px;
}

.option-outro input[type="radio"] {
  margin-right: 0;
  accent-color: #555;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.option-outro span {
  font-size: 14px;
  color: #444;
  flex-shrink: 0;
}

.option-outro input[type="text"] {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fafafa;
}

.option-outro input[type="text"]:focus {
  outline: none;
  border-color: #555;
  background: #fff;
}

/* Campo aberto para perguntas */
.question input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  background: #fafafa;
}

.question input[type="text"]:focus {
  outline: none;
  border-color: #555;
  background: #fff;
}

/* Botao de envio */
.submit-area {
  margin-top: 24px;
  text-align: center;
}

.btn-submit {
  display: inline-block;
  padding: 14px 48px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 400px;
}

.btn-submit:hover {
  background: #555;
}

.btn-submit:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Mensagens de feedback */
.msg {
  display: none;
  text-align: center;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.msg.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.msg.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Tela de sucesso */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.success-screen .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.success-screen h2 {
  font-size: 20px;
  color: #166534;
  margin-bottom: 8px;
}

.success-screen p {
  color: #666;
  font-size: 14px;
}

/* Validacao */
.field.invalid input,
.question.invalid input[type="text"] {
  border-color: #e53e3e;
}

.question.invalid .options {
  border: 1px solid #e53e3e;
  border-radius: 6px;
  padding: 4px;
}

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

.invalid .error-hint {
  display: block;
}

/* Responsivo */
@media (max-width: 480px) {
  .container {
    padding: 20px 12px 40px;
  }

  .section {
    padding: 18px 16px;
  }

  h1 {
    font-size: 19px;
  }

  .btn-submit {
    padding: 12px 32px;
  }
}
