/* Ajustes globais de responsividade — complementa Elementor */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  overflow-x: hidden;
}
img,
video,
svg,
iframe {
  max-width: 100%;
}
.elementor-widget-image img {
  height: auto;
}
.elementor-widget-google_maps .elementor-custom-embed,
.elementor-widget-google_maps iframe {
  max-width: 100%;
  width: 100% !important;
}
.elementor-section .elementor-container {
  max-width: 100%;
}
@media (max-width: 767px) {
  .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Botão flutuante WhatsApp */
.sn-whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sn-whatsapp-float:hover,
.sn-whatsapp-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.sn-whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sn-whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Formulário Fale conosco */
#sn-fale-conosco-form {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
#sn-fale-conosco-form .elementor-form-fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#sn-fale-conosco-form .elementor-field-group {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  min-width: 0;
  float: none !important;
}
#sn-fale-conosco-form .elementor-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#sn-fale-conosco-form #form-field-message {
  min-height: 120px;
  max-width: 100%;
  resize: vertical;
}
.sn-field-hint {
  min-height: 1.35em;
  margin-top: 4px;
}
.sn-field-error .elementor-field {
  border-color: #c0392b !important;
}
.sn-field-error-msg {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #c0392b;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sn-form-status {
  margin: 12px 0 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sn-form-status--error {
  color: #c0392b;
}
.sn-form-status--success {
  color: #1e7e34;
}
.sn-form-status--info {
  color: #555;
}

/* Card Fale conosco — carregamento */
.sn-fale-conosco-card {
  position: relative;
}
.sn-form-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sn-fale-conosco-card--loading .sn-form-loading {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sn-form-loading__panel {
  text-align: center;
  color: #fff;
  max-width: 220px;
}
.sn-form-loading__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #077088;
  border-right-color: #c9a227;
  animation: sn-form-spin 0.85s linear infinite;
}
.sn-form-loading__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
@keyframes sn-form-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal de agradecimento */
body.sn-modal-open {
  overflow: hidden;
}
.sn-thankyou-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sn-thankyou-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sn-thankyou-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sn-thankyou-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px 28px 28px;
  border-radius: 16px;
  background: linear-gradient(165deg, #1e222d 0%, #07080a 100%);
  color: #f5f5f5;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sn-thankyou-modal.is-open .sn-thankyou-modal__dialog {
  transform: translateY(0) scale(1);
}
.sn-thankyou-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sn-thankyou-modal__close:hover,
.sn-thankyou-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  outline: none;
}
.sn-thankyou-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #077088, #0a9bb8);
  box-shadow: 0 8px 24px rgba(7, 112, 136, 0.45);
}
.sn-thankyou-modal__icon::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 28px no-repeat;
}
.sn-thankyou-modal__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}
.sn-thankyou-modal__text {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.sn-thankyou-modal__btn {
  display: inline-block;
  min-width: 140px;
  padding: 12px 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sn-thankyou-modal__btn:hover,
.sn-thankyou-modal__btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
  outline: none;
}

.sn-thankyou-modal button.sn-thankyou-modal__close,
.sn-thankyou-modal button.sn-thankyou-modal__btn {
  background-color: transparent;
  background-image: none;
}

.elementor-element-126dfc0a .elementor-widget-container,
.elementor-element-126dfc0a {
  max-width: 100%;
  min-width: 0;
}
.elementor-element-5efc2761 > .elementor-element-populated,
.elementor-element-18767a81 > .elementor-element-populated {
  min-width: 0;
}
@media (max-width: 767px) {
  .elementor-element.elementor-element-2e8985ec .elementor-container {
    flex-wrap: wrap;
  }
  .elementor-element.elementor-element-2e8985ec .elementor-column {
    width: 100% !important;
  }
  #sn-fale-conosco-form #form-field-message {
    min-height: 100px;
  }
}

@media (max-width: 767px) {
  .sn-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .sn-whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
