/* SRNA Formulário Guia — as cores vêm de variáveis CSS ajustáveis no Elementor. */
.sfg {
  --sfg-btn-bg: #2fc9a2;
  --sfg-btn-color: #0d0d0d;
  --sfg-input-bg: #ede9e5;
  --sfg-input-color: #1f1f1f;
  --sfg-text-color: #cfcfcf;
  --sfg-error-color: #ff6b5e;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
}

.sfg *,
.sfg *::before,
.sfg *::after {
  box-sizing: border-box;
}

.sfg__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.sfg__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .sfg__row {
    grid-template-columns: 1fr 1fr;
  }
}

.sfg__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Rótulos só para leitores de tela (o visual usa placeholder). */
.sfg__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sfg input[type="text"],
.sfg input[type="tel"],
.sfg input[type="email"],
.sfg select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: var(--sfg-input-bg);
  color: var(--sfg-input-color);
  font: inherit;
  font-size: 16px; /* evita zoom automático no iOS */
  line-height: 1.2;
  outline: none;
  box-shadow: none;
}

.sfg select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.sfg select:invalid {
  color: #6b6b6b;
}

.sfg select option {
  color: #1f1f1f;
}

.sfg input::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

.sfg input:focus,
.sfg select:focus {
  border-color: var(--sfg-btn-bg);
}

.sfg [aria-invalid="true"] {
  border-color: var(--sfg-error-color);
}

.sfg__error {
  min-height: 0;
  margin: 4px 0 0;
  color: var(--sfg-error-color);
  font-size: 12px;
  line-height: 1.3;
}

.sfg__error:empty {
  display: none;
}

.sfg__notice,
.sfg__consent label {
  margin: 0;
  color: var(--sfg-text-color);
  font-size: 12px;
  line-height: 1.4;
}

.sfg__notice a,
.sfg__consent a {
  color: inherit;
  text-decoration: underline;
}

.sfg__consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.sfg__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--sfg-btn-bg);
}

.sfg__button {
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--sfg-btn-bg);
  color: var(--sfg-btn-color);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sfg__button:hover:not(:disabled) {
  opacity: 0.9;
}

.sfg__button:focus-visible {
  outline: 3px solid var(--sfg-text-color);
  outline-offset: 2px;
}

.sfg__button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.sfg__status {
  min-height: 1.2em;
  margin: 0;
  color: var(--sfg-text-color);
  font-size: 13px;
  text-align: center;
}

.sfg__success {
  padding: 24px 16px;
  color: var(--sfg-text-color);
  font-size: 18px;
  text-align: center;
}

/* Honeypot: invisível para pessoas, visível para robôs. */
.sfg__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .sfg__button {
    transition: none;
  }
}
