/**
 * Formulário de contato + modal estilo SweetAlert2 (sem dependências externas).
 * Cores: variáveis do tema (--mb-primary, etc.) definidas em functions.php.
 */

/* ——— Seção ——— */
.mb-cf-section {
  --mb-cf-radius: 8px;
  --mb-cf-border: 1.5px solid var(--mb-primary, #a71d21);
  --mb-cf-muted: rgba(0, 0, 0, 0.55);
  /*
   Teto 750px (Figma) + o mínimo entre: (1) min(1300px−6rem, 92% do contenedor) e (2) min(1300px, 92vw)−6rem.
   O 92% é relativo ao antepassado que define a largura; em meia coluna isso ainda é “% da coluna”, não da página.
  */
  --mb-cf-form-col-max: min(
    750px,
    min(min(calc(1300px - 6rem), 92%), calc(min(1300px, 92vw) - 6rem))
  );
}

.mb-cf-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mb-cf-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--mb-ink, #1a1a1a);
}

.mb-cf-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--mb-primary, #a71d21);
}

.mb-cf-contact-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mb-cf-contact-link:hover,
.mb-cf-contact-link:focus-visible {
  color: var(--mb-primary, #a71d21);
  border-bottom-color: color-mix(in srgb, var(--mb-primary, #a71d21) 45%, transparent);
}

.mb-cf-contact-nolink {
  color: inherit;
}

/* WhatsApp flutuante (canto do cartão do formulário) */
.mb-cf-form-wrap {
  position: relative;
}

.mb-cf-wa-float {
  position: absolute;
  top: -0.5rem;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mb-cf-wa-float:hover,
.mb-cf-wa-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  outline: none;
}

@media (min-width: 1024px) {
  .mb-cf-wa-float {
    right: -0.25rem;
  }
}

/* ——— Formulário (labels flutuantes) ——— */
.mb-cf-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.mb-cf-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .mb-cf-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.mb-cf-field--full {
  grid-column: 1 / -1;
}
.mb-cf-field--half {
  grid-column: span 1;
}

.mb-cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mb-cf-field,
.mb-cf-field--select {
  position: relative;
}

.mb-cf-fieldrow {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .mb-cf-fieldrow {
    grid-template-columns: 1fr 1fr;
  }
}

.mb-cf-input,
.mb-cf-textarea,
.mb-cf-select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 15px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mb-ink, #1a1a1a);
  background: var(--mb-surface, #fff);
  border: var(--mb-cf-border);
  border-radius: 10px;
  box-sizing: border-box;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mb-cf-input:hover,
.mb-cf-textarea:hover,
.mb-cf-select:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mb-primary, #a71d21) 20%, transparent);
}

.mb-cf-input:focus,
.mb-cf-textarea:focus,
.mb-cf-select:focus {
  outline: none;
  border-color: var(--mb-primary-hover, #8a181c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mb-primary, #a71d21) 22%, transparent);
}

.mb-cf-textarea {
  min-height: 140px;
  resize: vertical;
}

.mb-cf-select {
  padding-right: 2.75rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a71d21' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: var(--mb-surface, #fff);
}

.mb-cf-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #807f7f;
  pointer-events: none;
  transition:
    transform 0.18s ease,
    top 0.18s ease,
    font-size 0.18s ease,
    color 0.18s ease;
  transform-origin: left center;
}

.mb-cf-field--textarea .mb-cf-label {
  top: 1.35rem;
  transform: none;
}

.mb-cf-input:focus + .mb-cf-label,
.mb-cf-input:not(:placeholder-shown) + .mb-cf-label,
.mb-cf-textarea:focus + .mb-cf-label,
.mb-cf-textarea:not(:placeholder-shown) + .mb-cf-label {
  top: 0.45rem;
  transform: translateY(0) scale(0.78);
  color: var(--mb-primary, #a71d21);
}

.mb-cf-field--textarea .mb-cf-textarea:focus + .mb-cf-label,
.mb-cf-field--textarea .mb-cf-textarea:not(:placeholder-shown) + .mb-cf-label {
  top: 0.45rem;
  transform: scale(0.78);
}

.mb-cf-field--select .mb-cf-label--select {
  top: 0.45rem;
  transform: scale(0.78);
  color: var(--mb-primary, #a71d21);
}

.mb-cf-field--select .mb-cf-select:invalid + .mb-cf-label--select {
  top: 50%;
  transform: translateY(-50%) scale(1);
  color: var(--mb-cf-muted);
}

.mb-cf-field--select .mb-cf-select:focus + .mb-cf-label--select,
.mb-cf-field--select .mb-cf-select:valid + .mb-cf-label--select {
  top: 0.45rem;
  transform: scale(0.78);
  color: var(--mb-primary, #a71d21);
}

.mb-cf-submit {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  max-width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 15px 35px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mb-surface, #fff);
  background: var(--mb-primary, #a71d21);
  border: none;
  border-radius: var(--mb-cf-radius);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.mb-cf-submit:hover,
.mb-cf-submit:focus-visible {
  background: var(--mb-primary-hover, #8a181c);
  outline: none;
}

.mb-cf-submit:active {
  transform: scale(0.99);
}

.mb-cf-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ——— Modal (inspirado em SweetAlert2) ——— */
.mb-cf-modal[hidden] {
  display: none !important;
}

.mb-cf-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.mb-cf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  animation: mb-cf-fade-in 0.22s ease both;
}

.mb-cf-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--mb-surface, #fff);
  border-radius: 0.35rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.22);
  text-align: center;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  animation: mb-cf-pop 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.mb-cf-modal__icon-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

.mb-cf-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
}

.mb-cf-modal.is-loading .mb-cf-modal__icon {
  border-color: color-mix(in srgb, var(--mb-primary, #2778c4) 22%, transparent);
}

.mb-cf-modal.is-success .mb-cf-modal__icon {
  border-color: rgba(165, 220, 134, 0.55);
  color: #a5dc86;
}

.mb-cf-modal.is-error .mb-cf-modal__icon {
  border-color: rgba(240, 128, 128, 0.6);
  color: #f27474;
}

.mb-cf-modal__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid color-mix(in srgb, var(--mb-primary, #2778c4) 25%, #fff);
  border-top-color: var(--mb-primary, #2778c4);
  border-radius: 50%;
  animation: mb-cf-spin 0.75s linear infinite;
}

.mb-cf-modal__check,
.mb-cf-modal__cross {
  width: 2.5rem;
  height: 2.5rem;
}

.mb-cf-modal__title {
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: #595959;
  letter-spacing: -0.02em;
}

.mb-cf-modal__text {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #545454;
}

.mb-cf-modal__actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.mb-cf-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: fit-content;
  min-width: 7rem;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: var(--mb-primary, #7367f0);
  border: none;
  border-radius: 0.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.mb-cf-modal__btn:hover,
.mb-cf-modal__btn:focus-visible {
  background: var(--mb-primary-hover, #5a4fcf);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  outline: none;
}

.mb-cf-modal__btn:active {
  transform: translateY(1px);
}

.mb-cf-modal.is-success .mb-cf-modal__btn {
  background: #3085d6;
}

.mb-cf-modal.is-success .mb-cf-modal__btn:hover,
.mb-cf-modal.is-success .mb-cf-modal__btn:focus-visible {
  background: #2778c4;
}

.mb-cf-modal.is-error .mb-cf-modal__btn {
  background: #dd6b55;
}

.mb-cf-modal.is-error .mb-cf-modal__btn:hover,
.mb-cf-modal.is-error .mb-cf-modal__btn:focus-visible {
  background: #cf5a43;
}

.mb-cf-modal.is-loading .mb-cf-modal__btn {
  display: none;
}

@keyframes mb-cf-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mb-cf-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes mb-cf-spin {
  to {
    transform: rotate(360deg);
  }
}

body.mb-cf-modal-open {
  overflow: hidden;
}

/* Fundo tipo hero + cartão do formulário */
.mb-cf-section--hero-bg {
  overflow: hidden;
  min-height: 22rem;
}

.mb-cf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.mb-cf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mb-cf-support-icon__img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mb-cf-contact-list--on-hero .mb-cf-contact-item {
  color: rgba(255, 255, 255, 0.95);
}

.mb-cf-contact-list--on-hero .mb-cf-contact-icon {
  color: rgba(255, 255, 255, 0.9);
}

.mb-cf-contact-list--on-hero .mb-cf-contact-link:hover,
.mb-cf-contact-list--on-hero .mb-cf-contact-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.mb-cf-form-wrap--on-hero {
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--mb-surface, #fff);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.mb-cf-form-wrap--on-hero .mb-cf-form {
  color: var(--mb-ink, #1a1a1a);
}

.mb-cf-cta-on-hero.mb-btn-primary {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* ——— Variante: mapa + coluna escura ——— */
.mb-cf-section--map-layout {
  background: #f2f2f2;
  /*
   * Gutter alinhado ao cabeçalho/rodapé — aplicado só no conteúdo interno.
   * Padding no wrapper da grelha encolhia as colunas e mostrava o fundo branco da secção à volta.
   */
  --mb-cf-page-gutter-x: max(1rem, calc((100vw - min(1300px, 92vw)) / 2));
  /*
   * O --mb-cf-form-col-max global usa min(..., 92%); o pai aqui é só a meia-coluna (~50vw),
   * logo 92% ficava ínfimo e o painel do form encolhia no meio do cinza.
   */
  --mb-cf-form-col-max: 100%;
}
.mb-cf-map-split-shell {
  box-sizing: border-box;
}

.mb-cf-map-hero {
  min-height: 20rem;
}
.mb-cf-map-split {
  gap: 0 !important;
  align-items: center !important;
}
.mb-cf-map-form-col {
  background: #1e1e1e;
  padding: 0;
}
.mb-cf-map-form-panel {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 100%;
  justify-content: center;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  padding-left: max(1rem, var(--mb-cf-page-gutter-x, 1rem)) !important;
  padding-right: max(1rem, var(--mb-cf-page-gutter-x, 1rem)) !important;
}
@media (min-width: 1024px) {
  .mb-cf-map-form-col {
    min-height: 100%;
  }
  .mb-cf-map-form-col.flex.min-w-0.flex-col.self-stretch {
    min-height: 650px;
  }
  .mb-cf-map-form-panel {
    width: 100%;
    max-width: var(--mb-cf-form-col-max);
    margin-right: 0;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    padding-left: 3rem !important;
    padding-right: max(1rem, var(--mb-cf-page-gutter-x, 1rem)) !important;
  }
  .mb-cf-map-left__inner,
  .mb-cf-content-left {
    width: 100%;
    max-width: var(--mb-cf-form-col-max);
    margin-left: auto;
    margin-right: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: max(1rem, var(--mb-cf-page-gutter-x, 1rem));
    padding-right: 3rem;
  }
}
.mb-cf-map-hero--fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2a0e0e 0%, #1a1a1a 100%);
  pointer-events: none;
}
.mb-cf-form-wrap--dark,
.mb-cf-form-wrap--dark.mb-cf-form-wrap--on-hero {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.mb-cf-form-wrap--dark .mb-cf-input,
.mb-cf-form-wrap--dark .mb-cf-textarea,
.mb-cf-form-wrap--dark .mb-cf-select {
  color: #1a1a1a;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.mb-cf-form-wrap--dark .mb-cf-label {
  color: rgba(26, 26, 26, 0.55);
}
.mb-cf-map-embed-outer {
  min-height: 20rem;
}
.mb-cf-map-embed-frame {
  position: relative;
  min-height: 20rem;
  width: 100%;
}
.mb-cf-map-embed-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
@media (min-width: 768px) {
  .mb-cf-map-embed-outer,
  .mb-cf-map-embed-frame {
    min-height: 24rem;
  }
}
.mb-cf-map-embed {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(8%);
}
.mb-cf-map-card-wrap {
  pointer-events: none;
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: center;
  top: calc(50% - 50px);
  height: 100px;
  width: 250px;
  left: calc(50% - 125px);
  align-items: center;
}
.mb-cf-map-card {
  display: flex;
  max-width: 26rem;
  flex-wrap: nowrap;
  gap: 0.9rem 1rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 0.65rem;
  background: #fff;
  color: #121316;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  align-items: center;
  justify-content: center;
}
.mb-cf-map-card__pin {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  color: #121316;
}
.mb-cf-map-card p {
  margin: 0.15em 0 0;
}
.mb-cf-map-left__title {
  font-family: "Lato", sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-map-left {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mb-cf-map-left__inner {
  width: 100%;
  box-sizing: border-box;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  padding-left: max(1rem, var(--mb-cf-page-gutter-x, 1rem));
  padding-right: max(1rem, var(--mb-cf-page-gutter-x, 1rem));
}
.mb-cf-map-info__ic-img {
  width: 40px !important;
  height: 40px !important;
}
.mb-cf-map-info__row p {
  font-family: "Lato", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-map-info__row span {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-map-info__row a {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}
.mb-cf-map-info {
  margin-top: 3rem;
}
.mb-cf-map-info__row {
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0;
}
.mb-cf-map-info__row p {
  margin: 0 0 0.2rem;
}
.mb-cf-map-info__row .min-w-0 {
  line-height: 1.05;
}
.mb-cf-left-title--large {
  font-family: "Lato", sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-left-title--medium {
  font-family: "Lato", sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-left-title--small {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-section--content-style .mb-container > .grid {
  gap: 0 !important;
  align-items: center !important;
}
.mb-cf-content-left {
  max-width: 450px;
  margin: 0 0 0 auto;
  padding-right: 1.2rem;
}
.mb-cf-content-right {
  background: #1e1e1ee5;
  padding: 2rem 2.4rem;
}
.mb-cf-content-panel {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 100%;
  justify-content: center;
  padding: 0 !important;
}
.mb-cf-content-left .ball-ti-body__rich {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #fff;
}
.mb-cf-map-form-panel h3,
.mb-cf-content-panel h3 {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-privacy__text {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mb-cf-privacy {
  margin: 0.1rem 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}
.mb-cf-content-panel .mb-cf-privacy,
.mb-cf-form-wrap--dark .mb-cf-privacy {
  color: rgba(255, 255, 255, 0.88);
}
.mb-cf-privacy__input {
  margin: 0 0.55rem 0 0;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--mb-primary, #a71d21);
}
.mb-cf-privacy__label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.mb-cf-privacy__link {
  color: var(--mb-primary, #e85a1f);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.mb-cf-submit--icon {
  display: flex;
  width: 100%;
  align-self: stretch;
  max-width: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-transform: none;
}
.mb-cf-submit__plane {
  display: block;
  flex-shrink: 0;
}
.mb-cf-form-wrap--dark .mb-cf-submit--icon {
  margin-top: 0.4rem;
}
.mb-cf-section--content-style .mb-cf-privacy,
.mb-cf-content-panel {
  /* panel styles via Tailwind in template */
  color: inherit;
}
.mb-cf-section--content-style {
  --mb-cf-muted: rgba(255, 255, 255, 0.5);
}
