#multi-step-form {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #222;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 0 auto;
}


#multi-step-form p {
  margin-bottom: 10px;
}

#multi-step-form input,
#multi-step-form select,
#multi-step-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#multi-step-form input:focus,
#multi-step-form select:focus,
#multi-step-form textarea:focus {
  outline: none;
  border-color: #00796b;
  background: #fff;
}

#multi-step-form textarea {
  min-height: 100px;
  resize: vertical;
}

#multi-step-form button {
  background: #00796b;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#multi-step-form button:hover {
  background: #005f57;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 171, 209, 0.3); /* cor da marca */
}

#multi-step-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#multi-step-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
#multi-step-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f9f9f9;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 50px 12px 15px;
  font-size: 15px;
  line-height: 1.4;
  height: auto;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' stroke='%23999' stroke-width='15' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

#multi-step-form select:focus {
  outline: none !important;
  border-color: #00796b !important; /* ou a cor que quiseres */
  box-shadow: none !important;
  background-color: #fff;
}

#multi-step-form.animate-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeFormIn 0.8s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeFormIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  position: absolute;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
}

.form-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
  z-index: 1;
}

/* Só aplica animação no primeiro load */
.form-step[data-step="1"].initial-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInFromBottom 0.6s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-wrapper {
  overflow: hidden; /* impede que os passos invisíveis criem scroll extra */
}

.fade-container {
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.fade-out {
  opacity: 0;
  transform: translateY(20px);
}
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.form-error {
  color: #e53935;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}
.form-toast-error {
  background: #DF5C4F;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-progress-steps {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 40px auto 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
}

/* Linha ligando este step ao próximo */
.step-indicator::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #ccc;
  z-index: 0;
}

/* Último step não precisa de linha */
.step-indicator:last-child::after {
  display: none;
}

/* Linha entre steps já percorridos */
.step-indicator.completed::after {
  background-color: #00ABD1;
}

/* Linha do step atual (opcional) */
.step-indicator.active::after {
  background-color: #007fa0;
}

.step-indicator .circle {
  background-color: #ccc;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 14px;
  margin-bottom: 6px;
  transition: background-color 0.3s;
}

.step-indicator .label {
  font-size: 13px;
  color: #333;
  max-width: 100px;
  font-weight: 500;
}

.step-indicator.active .circle,
.step-indicator.completed .circle {
  background-color: #00ABD1;
}

.step-indicator.completed .circle {
  background-color: #00ABD1; /* opcional: verde para indicar concluído */
}

.step-indicator.active .label {
  font-weight: 600;
  color: #00ABD1;
}
.form-step p:last-of-type {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#multi-step-form .btn-next,
#multi-step-form button[type="submit"] {
  background-color: #00ABD1;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#multi-step-form .btn-next:hover,
#multi-step-form button[type="submit"]:hover {
  background-color: #0093b3; /* azul um pouco mais escuro para hover */
}

#multi-step-form .btn-prev {
  background-color: transparent;
  color: #00ABD1;
  border: 2px solid #00ABD1;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#multi-step-form .btn-prev:hover {
  background-color: #e6faff;
}

#multi-step-form input:focus,
#multi-step-form select:focus,
#multi-step-form textarea:focus {
  outline: none;
  border: 2px solid #00ABD1;
  box-shadow: 0 0 0 2px rgba(0, 171, 209, 0.25);
}

#multi-step-form select {
  border: 2px solid #ccc;
  background-color: #fff;
  color: #333;
  padding: 8px;
  border-radius: 4px;
  appearance: none; /* remove estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#multi-step-form select:hover {
  border-color: #00ABD1;
}

#multi-step-form select:focus {
  border: 2px solid #00ABD1 !important;
  box-shadow: 0 0 0 2px rgba(0, 171, 209, 0.25);
  outline: none;
}

#multi-step-form select:active {
  border-color: #00ABD1 !important;
}

/* Aplica a todos os H1 de páginas onde haja o formulário */
body.page-id-9 .elementor-heading-title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* E se quiseres que o subtítulo (p) também tenha o mesmo comportamento */
body.page-id-9 .elementor-widget-text-editor p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}