body {
  padding: 0;
  margin: 0;
  font: 14px "Roboto", Helvetica, Arial, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-between;
}

a {
  color: #00B7FF;
}

h4 {
  margin-top: 0;
}

.RegistrationContainer {
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-size: 16px;
  line-height: 19px;
  background-color: #373e51;
  color: #9a9c9c;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 85vh;
  display: flex;
  justify-content: center;
  /*align-items: center;*/
}

.RegistrationFormWrapper {
  width: 850px;
  height: 100%;
  background-color: #ffffff;
  text-align: center;
  border: 2px solid #ebebeb;
  box-shadow: 2px 8px 15px rgba(201, 201, 201, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.RegistrationFormScrollable {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.RegistrationFormTitle {
  font-family: "Roboto", sans-serif;
  padding: 0 0 10px;
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /*margin-top: 5px;*/
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  width: 100%;
}
.RegistrationFormTitle h3 {
  margin: 0;
  padding: 0;
}


.RegistrationFormScrollable::-webkit-scrollbar {
  width: 8px;
}

.RegistrationFormScrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.RegistrationFormScrollable::-webkit-scrollbar-thumb {
  background: #434c63;
  border-radius: 4px;
}

.RegistrationFormScrollable::-webkit-scrollbar-thumb:hover {
  background: #373e51;
}

.form-row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.form-group {
  margin: 10px 0;
  flex: 1;
}

.form-label {
  color: #474747;
  display: block;
  margin-bottom: 5px;
  text-align: left;
}

.RegistrationForm {
  text-align: left;
  padding: 35px 50px;
}

.ErrorWrapper {
  display: flex;
  width: 100%;
  margin-bottom: 5px;
  opacity: 1;
  transition: 0.2s all linear;
  align-items: center;
}

.errorInput {
  background: #ffffff;
  border: 2px solid #ffb0a5 !important;
  color: #ffb0a5;
}

.RegistrationFormError {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #ff8484;
  padding-left: 10px;
  margin: 0;
}

.RegistrationFormInput {
  width: 100%;
  height: 55px;
  margin-bottom: 5px;
  padding-left: 20px;
  box-sizing: border-box;
  box-shadow: 2px 8px 15px rgba(201, 201, 201, 0.1);
  border: 2px solid #ebebeb;
  border-radius: 7px;
  font-size: 16px;
}

.DataProcessingSection {
  margin-bottom: 20px;
  padding: 25px;
  background: #f8f9fc;
  border-radius: 7px;
  border: 2px solid #ebebeb;
}

.DataProcessingTitle {
  font-family: "Roboto";
  font-size: 18px;
  color: #434c63;
  margin-bottom: 15px;
  font-weight: 500;
}

.DataProcessingText {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 2px;
}

.CheckboxGroup {
  display: flex;
  flex-direction: column;
  /*gap: 15px;*/
}

.CheckboxLabel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 5px 0;
}

.CheckboxInput {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.CheckboxText {
  font-size: 14px;
  color: #434c63;
  line-height: 1.4;
}

.PolicyLink {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #434c63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.PolicyLink:hover {
  color: #373e51;
  text-decoration: underline;
}

.RequiredStar {
  color: #ff4444;
  margin-left: 4px;
}

.LinkIcon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.PolicyLink:hover .LinkIcon {
  transform: translateX(2px);
}

.RegistrationFormSubmit {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  background: #434c63;
  box-shadow: 2px 8px 15px rgba(201, 201, 201, 0.1);
  border: none;
  border-radius: 7px;
  width: 100%;
  height: 52px;
  color: #ffffff;
  margin-top: 20px;
  transition: 0.2s all linear;
}

.RegistrationFormSubmit:disabled {
  color: #808080;
  background: #ededed;
  cursor: not-allowed;
}

.RegistrationFormSubmit:hover:not(:disabled) {
  box-shadow: 0px 17px 15px -11px rgba(67, 76, 99, 0.2);
  cursor: pointer;
  font-weight: 500;
  background: #373e51;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.inner {
  width: 8px;
  height: 8px;
  margin: 2px;
  background: #434c63;
  border-radius: 50%;
  animation: loader 0.8s ease infinite;
}

.inner.one {
  animation-delay: -0.4s;
}

.inner.two {
  animation-delay: -0.2s;
}

.inner.three {
  animation-delay: 0;
}

@keyframes loader {
  0%, 100% { transform: scale(0.5); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}

@media (max-width: 450px) {

  header img {
    display: none;
  }
}

@media (max-width: 750px) {

  body, .RegistrationFormWrapper, .RegistrationFormScrollable {
    overflow: auto;
    height: 100%;
    border-radius: 0;
  }

  header img {
    content:url("/images/vstu.svg");
  }

  .RegistrationFormTitle {
    font-size: 14px;
  }

  .RegistrationFormWrapper {
    /*width: 95%;*/
    /*height: 75vh;*/
  }

  .RegistrationFormScrollable {
    padding: 0 0;
  }

  .RegistrationContainer {
    height: 100%;
  }

  .RegistrationForm {
    /*padding: 25px 20px;*/
    padding: 14px 7px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .DataProcessingSection {
    padding: 20px 15px;
  }

  .CheckboxLabel {
    gap: 8px;
  }

  .CheckboxText {
    font-size: 13px;
  }
}

.footerWrapper {
  position: sticky;
  height: 8vh;
  bottom: 0;
  background: white;
  box-shadow: #00000024 0 -3px 6px 4px;
  display: flex;
  text-align: center;
  z-index: 1;
  flex-direction: column;
  align-content: flex-start;
  align-items: center;
  justify-content: center;
}

.footerTitle {
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #9a9a9a;
  /*margin: 38px 40px;*/
  padding: 10px;
}

.footerLink {
  text-decoration: none;
  color: #434c63;
}


header {
  background-color: #434c63;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
  position: relative;
  height: 10vh;
}

.header-logo {
  position: relative;
  z-index: 2; /* чтобы лого было над "теневой" областью */
  padding-right: 1rem;
  height: 9vh;
}

.header-logo img {
  height: 9vh;
}

.header-logo {
  flex: 0 0 auto;
}

textarea {
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  resize: block;
  line-height:30px;
}

textarea::placeholder {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

#captcha {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
}