.form-line.error input,
.form-line.error select {
  border: 1.5px solid red !important;
}

#form form {
  /* display: none; */
}

.form-container .form-line input {
  width: 100%;
}

.checkbox-text a {
  color: var(--color-brand-1);
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --accent-blue: #3949b7;
  /* telegram-like */
  --accent-dark: #111111;
  /* x-like */
}

.thanks-wrap {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
}

.thanks-wrap.hidden {}

.card {
  width: 100%;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

h1 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

@media (min-width:900px) {
  h1 {
    font-size: 40px;
  }
}

.lead {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 32px;
  font-size: 16px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 18px 0 40px;
}

.social-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.06);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1), box-shadow .18s;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 26px rgba(10, 10, 10, 0.08);
}

.social-x {
  background: var(--accent-dark);
}

.social-tg {
  background: var(--accent-blue);
}

.social-btn svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: #ffffff;
}

.contact-title {
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 14px;
  font-size: 20px;
}

.contact-list {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.contact-list li {
  margin: 6px 0;
}

/* subtle small screens spacing */
@media (max-width:420px) {
  .social-btn {
    width: 56px;
    height: 56px;
  }

  .social-btn svg {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: 28px;
  }
}


.form-line .select2-container .select2-selection--single,
.form-line .select2-container--default .select2-selection--multiple {
  height: auto;
  border-radius: 16px;
  padding: 14px 14px;
}

.form-line .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 11px;
  padding: 14px 14px;
}

.iti--allow-dropdown {
  width: 100%;
}

/* thanks page */
.thanks-wrap {

  .container {
      max-width: 28rem;
      width: 100%;
      margin: 0 auto;
  }

  .logo-container {
      display: flex;
      justify-content: center;
      margin-bottom: 1.5rem;
  }

  .logo {
      height: 5rem;
      width: auto;
      opacity: 0.8;
  }

  .content {
      text-align: center;
      margin-bottom: 2rem;
      padding: 0 0.5rem;
  }

  .title {
      font-size: 1.875rem;
      font-weight: 700;
      color: #1f2937;
      margin-bottom: 1rem;
      animation: fadeIn 0.8s ease-out;
  }

  .subtitle {
      color: #4b5563;
      font-size: 1rem;
      line-height: 1.625;
      margin-bottom: 1.5rem;
  }

  .description {
      color: #6b7280;
      font-size: 0.875rem;
      line-height: 1.625;
      margin-bottom: 1.5rem;
  }

  .buttons-container {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-bottom: 2rem;
      padding: 0 0.5rem;
  }

  .messenger-button {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.75rem 1rem;
      border-radius: 9999px;
      font-weight: 500;
      text-align: center;
      text-decoration: none;
      color: white;
      transition: all 0.3s ease;
      transform: translateY(0);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      font-size: 0.875rem;
      animation: slideUp 0.6s ease-out both;
  }

  .messenger-button img {
      height: 1.25rem;
      width: auto;
  }

  .messenger-button:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .telegram {
      background-color: #3b82f6;
      animation-delay: 0.1s;
  }

  .telegram:hover {
      background-color: #2563eb;
  }

  .x-twitter {
      background-color: #000000;
      animation-delay: 0.2s;
  }

  .x-twitter:hover {
      background-color: #333333;
  }

  .x-twitter img {
      filter: brightness(0) invert(1); /* Apply filter only to X logo */
  }

  .home-button {
      display: block;
      text-align: center;
      color: #3b82f6;
      font-size: 0.875rem;
      text-decoration: none;
      padding: 0.5rem 1rem;
      margin: 0 auto 2rem;
      transition: color 0.3s ease;
  }

  .home-button:hover {
      color: #2563eb;
      text-decoration: underline;
  }

  .footer {
      text-align: center;
      color: #6b7280;
      font-size: 0.875rem;
      padding: 1rem 0;
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(-20px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes slideUp {
      from {
          opacity: 0;
          transform: translateY(30px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* Адаптивность для мобильных устройств */
  @media (min-width: 640px) {
      .logo {
          height: 6rem;
      }

      .logo-container {
          margin-bottom: 2rem;
      }

      .content {
          margin-bottom: 3rem;
      }

      .title {
          font-size: 2.25rem;
          margin-bottom: 1.5rem;
      }

      .subtitle {
          font-size: 1.125rem;
          margin-bottom: 2rem;
      }

      .description {
          font-size: 1rem;
          margin-bottom: 2rem;
      }

      .buttons-container {
          gap: 1rem;
          margin-bottom: 3rem;
      }

      .messenger-button {
          padding: 1rem 1.5rem;
          font-size: 1rem;
      }

      .messenger-button img {
          height: 1.5rem;
      }

      .home-button {
          font-size: 1rem;
          padding: 0.75rem 1.5rem;
      }
  }

}