[hidden] {
  display: none !important;
}

.form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8f2634;
  background: #fff0f2;
  font-size: 12px;
  font-weight: 700;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.success-signature {
  display: block;
  margin-top: 18px;
  color: #123f60;
  font-size: 15px;
  line-height: 1.45;
}

.paper-tag {
  isolation: isolate;
  transform-origin: center;
  animation: free-online-pulse 2.6s ease-in-out infinite;
}

.paper-tag::before {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 2px solid rgba(201, 255, 74, 0.7);
  border-radius: 18px;
  content: "";
  animation: free-online-ring 2.6s ease-out infinite;
}

@keyframes free-online-pulse {
  0%, 58%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(18, 63, 96, 0.2);
  }
  68% {
    transform: scale(1.07);
    box-shadow: 0 14px 34px rgba(127, 195, 34, 0.42);
  }
  78% {
    transform: scale(1.02);
  }
}

@keyframes free-online-ring {
  0%, 58% {
    opacity: 0;
    transform: scale(0.9);
  }
  68% {
    opacity: 0.75;
  }
  88%, 100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-tag,
  .paper-tag::before {
    animation: none;
  }
}

.modal-open {
  overflow: hidden;
}

.webinar-popup {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 30, 45, 0.76);
  backdrop-filter: blur(8px);
  cursor: default;
}

.popup-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  width: min(920px, 100%);
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 35px 100px rgba(0, 20, 35, 0.38);
  animation: popup-enter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.popup-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #123f60;
  background: rgba(255, 255, 255, 0.88);
  font-size: 25px;
  cursor: pointer;
}

.popup-message {
  position: relative;
  overflow: hidden;
  padding: 57px 45px;
  color: #ffffff;
  background: linear-gradient(145deg, #174e70, #0b293d);
}

.popup-message::after {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 310px;
  height: 310px;
  border: 55px solid rgba(201, 255, 74, 0.08);
  border-radius: 50%;
  content: "";
}

.popup-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #14283a;
  background: #c9ff4a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popup-message h2 {
  position: relative;
  z-index: 1;
  margin: 25px 0 18px;
  color: #ffffff;
  font-size: clamp(39px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.popup-message h2 em {
  color: #c9ff4a;
  font-style: normal;
}

.popup-message p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  color: #c7dae5;
  font-size: 14px;
  line-height: 1.6;
}

.popup-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.popup-points span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

#popup-form {
  align-self: center;
  padding: 42px 38px;
}

#popup-form > strong {
  display: block;
  margin-bottom: 18px;
  color: #14283a;
  font-size: 18px;
}

#popup-form .button {
  width: 100%;
  margin-top: 18px;
}

#popup-form > small {
  display: block;
  margin-top: 12px;
  color: #718994;
  font-size: 9px;
  text-align: center;
}

.popup-success {
  align-self: center;
  padding: 45px 38px;
}

.popup-success > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #14283a;
  background: #c9ff4a;
  font-size: 22px;
  font-weight: 900;
}

.popup-success h3 {
  margin: 20px 0 8px;
  color: #14283a;
  font-size: 30px;
}

.popup-success p {
  color: #567080;
  line-height: 1.55;
}

@keyframes popup-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popup-card {
    animation: none;
  }
}

@media (max-width: 620px) {
  header .brand div {
    display: none;
  }

  header .small {
    max-width: 190px;
    min-height: 44px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .hero-actions .button,
  .registration form .button {
    min-height: 56px;
    font-size: 13px;
  }

  .register-inner form {
    width: auto;
  }

  .form-success {
    min-height: 370px;
    height: auto;
  }

  input,
  select {
    font-size: 16px;
  }

  .webinar-popup {
    align-items: center;
    padding: 9px;
  }

  .popup-card {
    display: block;
    max-height: calc(100dvh - 18px);
    min-height: 0;
    overflow-y: auto;
    border-radius: 23px;
  }

  .popup-message {
    padding: 43px 23px 25px;
  }

  .popup-message h2 {
    margin: 18px 0 12px;
    padding-right: 22px;
    font-size: 36px;
  }

  .popup-message p {
    margin-bottom: 0;
    font-size: 12px;
  }

  .popup-points {
    margin-top: 17px;
  }

  #popup-form {
    padding: 24px 20px 21px;
  }

  #popup-form > strong {
    margin-bottom: 10px;
    font-size: 16px;
  }

  #popup-form label {
    margin-top: 10px;
  }

  #popup-form input {
    height: 49px;
  }

  #popup-form .button {
    min-height: 52px;
  }

  .popup-success {
    min-height: 280px;
    padding: 35px 24px;
  }
}
