* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.form-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.form-header {
  background: linear-gradient(135deg, #333 0%, #000 100%);
  color: #fff;
  padding: 30px;
  text-align: center;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 16px;
  opacity: 0.8;
}

.progress-container {
  padding: 30px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
  max-width: 100%;
}

.progress-bar::before {
  content: "";
  background-color: #e0e0e0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  z-index: 1;
}

.progress {
  background-color: #000;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  z-index: 2;
  transition: 0.4s ease;
}

.step {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 4px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #999;
  position: relative;
  z-index: 3;
  transition: 0.4s ease;
}

.step.active {
  border-color: #000;
  color: #000;
}

.step::before {
  content: attr(data-title);
  position: absolute;
  top: 45px;
  font-size: 12px;
  color: #777;
  width: 120px;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-40px);
}

.form-step {
  display: none;
  padding: 40px;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step.active {
  display: block;
}

.form-step h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #000;
}

.step-description {
  color: #777;
  margin-bottom: 30px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 25px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.required {
  color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

small {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 5px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #f1f1f1;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #000;
  border-color: #000;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-box {
  border: 2px dashed #ddd;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.file-upload-box:hover {
  background-color: #f1f1f1;
}

.file-upload-box i {
  font-size: 32px;
  color: #777;
  margin-bottom: 10px;
}

.file-upload-box p {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prev-btn {
  background-color: #f1f1f1;
  color: #333;
}

.prev-btn:hover {
  background-color: #e0e0e0;
}

.next-btn,
.submit-btn {
  background-color: #000;
  color: #fff;
}

.next-btn:hover,
.submit-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: #e74c3c;
}

/* Responsividade */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .step::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .form-step {
    padding: 30px 20px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
  }
}

/* Estilos para a mensagem de sucesso */
.success-message {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon {
  font-size: 60px;
  color: #4caf50;
  margin-bottom: 20px;
}

.success-message h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.success-message p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.result-category {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 20px 0;
  padding: 15px 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  display: inline-block;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: #25d366;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-button i {
  margin-right: 8px;
  font-size: 18px;
}

.restart-btn {
  background-color: #f1f1f1;
  color: #333;
  margin-top: 20px;
}

.restart-btn:hover {
  background-color: #e0e0e0;
}
