/* Modal de confirmación del formulario Contaplus */

.cp-contact-modal-open {
  overflow: hidden;
}

.cp-contact-form__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cp-contact-form__status.is-visible {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-top: 18px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

.cp-contact-modal[hidden] {
  display: none !important;
}

.cp-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.cp-contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cp-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 34, 54, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cp-contact-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 38px 40px 36px;
  color: #17242d;
  background: #fff;
  border: 1px solid rgba(0, 63, 99, 0.12);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0, 25, 40, 0.32);
  text-align: center;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  outline: none;
}

.cp-contact-modal.is-open .cp-contact-modal__dialog {
  transform: translateY(0) scale(1);
}

.cp-contact-modal__logo {
  display: block;
  width: min(250px, 74%);
  height: auto;
  margin: 0 auto 24px;
}

.cp-contact-modal__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
}

.cp-contact-modal__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-contact-modal__icon-success {
  display: none;
  stroke: #0a7a55;
}

.cp-contact-modal__icon-error {
  display: none;
  stroke: #b43a3a;
}

.cp-contact-modal.is-success .cp-contact-modal__icon-success,
.cp-contact-modal.is-error .cp-contact-modal__icon-error {
  display: block;
}

.cp-contact-modal__title {
  margin: 0 0 12px;
  color: #003f63;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cp-contact-modal__message {
  margin: 0 auto;
  max-width: 420px;
  color: #42545f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.cp-contact-modal__note {
  margin: 14px 0 0;
  color: #6c7d86;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.cp-contact-modal__button {
  min-width: 180px;
  margin-top: 26px;
  padding: 13px 22px;
  color: #fff;
  background: #00496b;
  border: 1px solid #00496b;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.cp-contact-modal__button:hover,
.cp-contact-modal__button:focus-visible {
  background: #003653;
  border-color: #003653;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 54, 83, 0.2);
}

.cp-contact-modal.is-error .cp-contact-modal__button {
  background: #003f63;
  border-color: #003f63;
}

@media (max-width: 600px) {
  .cp-contact-modal {
    padding: 16px;
  }

  .cp-contact-modal__dialog {
    width: 100%;
    padding: 32px 22px 26px;
    border-radius: 17px;
  }

  .cp-contact-modal__logo {
    width: min(220px, 76%);
    margin-bottom: 20px;
  }

  .cp-contact-modal__icon {
    width: 66px;
    height: 66px;
    margin-bottom: 17px;
  }

  .cp-contact-modal__message {
    font-size: 16px;
  }

  .cp-contact-modal__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-contact-modal,
  .cp-contact-modal__dialog,
  .cp-contact-modal__button {
    transition: none !important;
  }
}

.cp-contact-form__privacy a {
  color: #00496b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cp-contact-form__privacy a:hover,
.cp-contact-form__privacy a:focus-visible {
  color: #003653;
}
