.cta__container {
  max-width: 1005px;
}

.cta__panel {
  display: grid;
  grid-template-columns: 1fr 480px;
  column-gap: 20px;
  align-items: start;
  box-sizing: border-box;
  min-height: 284px;
  padding: 51px 49px 20px 51px;
  border-radius: 24px;
  background: linear-gradient(90deg, #1c3363, #34538b);
  box-shadow:
    0 12px 40px rgba(71, 118, 230, 0.55),
    0 24px 90px rgba(71, 118, 230, 0.4);
  animation: cta-glow 3.5s ease-in-out infinite;
  color: #fff;
}

.cta__title-accent {
  display: block;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow:
      0 12px 40px rgba(71, 118, 230, 0.45),
      0 24px 90px rgba(71, 118, 230, 0.3);
  }

  50% {
    box-shadow:
      0 14px 50px rgba(95, 145, 255, 0.75),
      0 28px 110px rgba(95, 145, 255, 0.55);
  }
}

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

.cta__title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
  white-space: pre-line;
}

.cta__text {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 18px;
  opacity: 0.85;
}

.cta__form {
  display: flex;
  flex-direction: column;
}

.cta__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.cta__fields input,
.cta__fields select {
  box-sizing: border-box;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background-color: #fff;
  font: 400 14px var(--font-main);
  color: #222;
}

.cta__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cta__field input,
.cta__field select {
  width: 100%;
}

.cta__fields [aria-invalid='true'] {
  outline: 2px solid #ff9a9a;
}

.cta__error {
  margin: 6px 4px 0;
  font-size: 12px;
  line-height: 14px;
  color: #ffc9c9;
}

.cta__fields input::placeholder {
  color: #8a8a8a;
}

.cta__fields input:focus,
.cta__fields select:focus {
  outline: 2px solid #7195db;
}

.cta__fields select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M.75.75l4.25 4.25L9.25.75' stroke='%231E1E1E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.cta__fields select:invalid {
  color: #8a8a8a;
}

.cta__button {
  box-sizing: border-box;
  height: 48.5px;
  margin-top: 17px;
  border: 1.5px solid #fff;
  border-radius: 7.25px;
  background: rgba(255, 255, 255, 0.08);
  font: 500 16px var(--font-main);
  color: #fff;
  cursor: pointer;
}

.cta__agreement-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.cta__agreement-link:hover {
  opacity: 0.75;
}

.cta__agreement {
  margin: 10px auto 0;
  max-width: 361px;
  font-size: 11px;
  line-height: 11px;
  text-align: center;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .cta__panel {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding: 32px 24px 28px;
  }

  .cta__title {
    font-size: 26px;
    line-height: 1.25;
  }

  .cta__agreement {
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .cta__fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cta {
    padding: 0 0 60px;
  }

  .cta__panel {
    min-height: 0;
    padding: 24px 16px 20px;
    border-radius: 16px;
    row-gap: 20px;
  }

  .cta__title {
    font-size: 24px;
    line-height: 29px;
    font-weight: 700;
  }

  .cta__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 21px;
  }

  .cta__fields {
    gap: 10px;
  }

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

  .cta__button {
    height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #1b2d6e;
    font-size: 15px;
    font-weight: 500;
  }

  .cta__agreement {
    margin-top: 12px;
    font-size: 11px;
    line-height: 14px;
  }
}
