/* Las páginas de cotización usan SweetAlert2 para confirmar el envío. */
body:has(form[action="/enviar_solicitud"]) .swal2-popup:has(.swal2-icon.swal2-success) {
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.75rem;
  color: #07111f;
}
body:has(form[action="/enviar_solicitud"]) .swal2-popup:has(.swal2-icon.swal2-success)::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  width: min(100%, 20rem);
  aspect-ratio: 5 / 1;
  margin: .15rem auto .5rem;
  background: #fff url("/assets/img/visualmnt-logo-3d.gif") center / contain no-repeat;
}
body:has(form[action="/enviar_solicitud"]) .swal2-popup .swal2-icon.swal2-success {
  display: none !important;
}
body:has(form[action="/enviar_solicitud"]) .swal2-popup:has(.swal2-icon.swal2-success) .swal2-title {
  padding-top: .3rem;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

/* Confirmación en la portada y las páginas con formulario directo. */
.vm-lead-modal {
  box-sizing: border-box;
  width: min(29rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: clamp(1.4rem, 5vw, 2.2rem);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #07111f;
  box-shadow: 0 24px 80px rgba(7, 17, 31, .25);
  text-align: center;
}
.vm-lead-modal::backdrop {
  background: rgba(7, 17, 31, .58);
}
.vm-lead-modal [hidden] {
  display: none !important;
}
.vm-lead-modal__logo {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  margin: 0 auto 1rem;
}
.vm-lead-modal h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  line-height: 1.18;
  color: #07111f;
}
.vm-lead-modal p {
  margin: .65rem 0 1.2rem;
  color: #475569;
  line-height: 1.55;
}
.vm-lead-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
}
.vm-lead-modal__actions button,
.vm-lead-modal__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid #07584d;
  border-radius: 999px;
  background: #07584d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.vm-lead-modal__actions button:focus-visible,
.vm-lead-modal__actions a:focus-visible {
  outline: 2px solid #07584d;
  outline-offset: 3px;
}
