.newform form {
  max-width: 560px;
}

.form-typed-text {
  color: #0173ff;
}

.newform.form h2 {
  max-width: 50%;
}

.newform.form h2 b {
  font-weight: 400;
}

.newform .form-group {
  position: relative;
  border-bottom: 1px solid #8a8c99;
  padding-top: 26px;
  padding-bottom: 15px;
  transition: border-color 0.2s;
}

.newform .form-group:hover {
  border-color: #12131a;
}

.newform .form-group label {
  position: absolute;
  left: 0;
  top: 26px;
  margin-bottom: 0;
  font-size: 24px;
  line-height: 28px;
  color: #8a8c99;
  pointer-events: none;
  transition: 0.2s ease;
}

.newform .form-group .form-control {
  width: 100%;
  height: auto;
  border: none;
  font-size: 24px;
  line-height: 28px;
  color: #12131a;
  background: transparent;
}

.newform .form-group .required-label {
  position: absolute;
  right: 0;
  bottom: 16px;
  font-size: 16px;
  line-height: 21px;
  color: #8a8c99;
  transition: 0.2s;
}

.newform .form-group:focus-within {
  border-color: #0173ff;
}

.newform .form-group:focus-within label,
.newform .form-group .form-control:not(:placeholder-shown) + label {
  top: 0;
  line-height: 21px;
  font-size: 16px;
}

.newform .form-group:focus-within .required-label,
.newform .form-group .form-control:not(:placeholder-shown) ~ .required-label {
  opacity: 0;
  pointer-events: none;
}

.newform .tel-dropdown-toggle {
  position: absolute;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  line-height: 21px;
  color: #12131a;
  transition: 0.2s;
  cursor: pointer;
}

.newform .tel-dropdown-toggle:hover,
.newform .tel-dropdown-toggle.active {
  color: #0173ff;
}

.newform .tel-dropdown-toggle svg {
  transition: 0.2s;
}

.newform .tel-dropdown-toggle.active svg {
  transform: rotate(-180deg);
}

.newform .tel-dropdown-toggle svg path {
  stroke: #12131a;
  transition: 0.2s;
}

.newform .tel-dropdown-toggle:hover svg path,
.newform .tel-dropdown-toggle.active svg path {
  stroke: #0173ff;
}

.newform .tel-dropdown-list {
  position: absolute;
  top: 65px;
  right: -78px;
  display: none;
  flex-direction: column;
  gap: 5px;
  max-width: 180px;
  width: 100%;
  padding: 15px;
  border-radius: 3px;
  font-size: 16px;
  line-height: 21px;
  background-color: #ffffff;
  box-shadow: 0px 2px 10px 0px #00000026;
  z-index: 2;
}

.newform .tel-dropdown-list.active {
  display: flex;
}
.newform .dropdown_list-triangle {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 7px solid #ffffff;
}

.newform .dropdown_list-title {
  margin-bottom: 5px;
  color: #8a8c99;
}

.newform .dropdown_list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.newform .dropdown_list-item svg {
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}

.newform .dropdown_list-item:hover svg {
  visibility: visible;
  opacity: 1;
}

.newform .dropdown_list-item:hover svg path {
  stroke: #8a8c99;
}

.newform .dropdown_list-item.active svg {
  visibility: visible;
  opacity: 1;
}

.newform .dropdown_list-item.active svg path {
  stroke: #0173ff;
}

.newform.form .form-control.form-area {
  height: auto;
  field-sizing: content;
  resize: none;
}

.newform .form-group.attach-group {
  margin: 0;
  padding: 0;
  border-bottom: none;
  cursor: pointer;
}

.newform .jcf-file {
  position: absolute;
  inset: 0;
  margin-bottom: 0;
  cursor: pointer;
}

.newform .jcf-file .jcf-upload-button {
  display: none;
}

.newform .jcf-file .jcf-fake-input {
  height: 24px;
  border: none;
  font-size: 16px;
  line-height: 21px;
}

.newform .jcf-file input[type="file"] {
  inset: 0;
  height: auto;
}

.newform .form-group.attach-group .attach-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  line-height: 21px;
  color: #8a8c99;
}

.newform .form-group.attach-group .attach-hint span {
  color: #12131a;
  transition: 0.2s;
}

.form-group.attach-group:hover .attach-hint_text span {
  color: #0173ff;
  cursor: pointer;
}

.newform .form-group.attach-group .attach-hint svg path {
  stroke: #12131a;
  transition: 0.2s;
}

.newform .form-group.attach-group:hover .attach-hint svg path {
  stroke: #0173ff;
}

.newform .form_agreement-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  user-select: none;
  cursor: pointer;
  color: #8a8c99;
}

.newform .form_agreement-block .form-note {
  font-size: 14px;
  line-height: 20px;
}

.newform .agreement-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3%20.5h14A2.5%202.5%200%200%201%2019.5%203v14a2.5%202.5%200%200%201-2.5%202.5H3A2.5%202.5%200%200%201%20.5%2017V3A2.5%202.5%200%200%201%203%20.5Z%22%20stroke%3D%22%230173ff%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  transition: 0.2s;
}

.newform .agreement-checkbox:checked {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%223%22%20fill%3D%22%230173ff%22%2F%3E%3Cpath%20d%3D%22M5%2010.727%208.385%2014%2015%206%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.newform .agreement-checkbox:hover:not(:checked) {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3%20.5h14A2.5%202.5%200%200%201%2019.5%203v14a2.5%202.5%200%200%201-2.5%202.5H3A2.5%202.5%200%200%201%20.5%2017V3A2.5%202.5%200%200%201%203%20.5%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M3%20.5h14A2.5%202.5%200%200%201%2019.5%203v14a2.5%202.5%200%200%201-2.5%202.5H3A2.5%202.5%200%200%201%20.5%2017V3A2.5%202.5%200%200%201%203%20.5Z%22%20stroke%3D%22%230173ff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%2216%22%20height%3D%2216%22%20rx%3D%221%22%20fill%3D%22%230173ff%22%20fill-opacity%3D%22.2%22%2F%3E%3Cpath%20d%3D%22M5%2010.727%208.385%2014%2015%206%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.newform .agreement-link {
  color: #8a8c99;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: 0.2s;
}

.newform .agreement-link:hover {
  color: #12131a;
}

.newform .form__btns {
  margin-top: 60px;
}

.newform .form__btns .btn {
  max-width: 180px;
  min-width: 180px;
  max-height: 60px;
  height: auto;
  padding: 16px 30px;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  z-index: 3;
}

.newform .form-box {
  position: relative;
}

.newform .form-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.5);
}

.newform .form-overlay.open {
  display: block;
}

.form__btns .btn.loading > span {
    display: none;
}

.form__btns .loading-dots {
    display: none;
}

.form__btns .btn.loading .loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.form__btns .loading-dots span {
  width: 3px;
  height: 20px;
  background: #ffffff;
  border-radius: 0%;
  animation: bounce 0.6s infinite alternate;
}

.form__btns .loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.form__btns .loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  100% {
    transform: translateY(-4px);
  }
}



@media (max-width: 1400px) {
  .tel-dropdown-list {
    right: 0;
  }
}

@media (max-width: 1240px) {
  .newform__row {
    justify-content: space-between;
  }

  .newform.form h2 {
    max-width: 440px;
  }

  .newform .form-box {
    max-width: 440px;
  }

  .newform .form__btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .newform .form__btns .btn {
    max-width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 989px) {
  .newform .form__btns .btn {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .newform__row {
    gap: 40px;
  }

  .newform form,
  .newform.form h2,
  .newform .form-box {
    max-width: 100%;
  }

  .newform .form-group .form-control,
  .newform .form-group label,
  .newform .form__btns .btn {
    font-size: 20px;
    line-height: 24px;
  }

  .newform .form-group .required-label,
  .tel-dropdown-toggle,
  .tel-dropdown-list,
  .newform .form-group.attach-group .attach-hint,
  .newform .form_agreement-block .form-note {
    font-size: 13px;
    line-height: 17px;
  }
}

.modal-dialog {
  max-width: 840px;
  min-height: 100dvh;
  height: 100%;
  margin-top: 0;
}

.modal-content {
  min-height: 100%;
  height: 100%;
  padding: 40px 60px 60px 60px;
}

.modal-title {
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -2px;
}

.modal-title.mobile-title {
  display: none;
}

.modal-title a {
  color: #8a8c99;
  transition: 0.2s;
}

.modal-title a:hover {
  color: #0173ff;
  text-decoration: none;
}

.modal .close {
  top: 10px;
  right: 10px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.modal-content::before {
  display: none;
}

.modal-content::after {
  display: none;
}

.new-form-row {
  display: flex;
  flex-direction: column;
}

.new-form-row > div {
  max-width: 100%;
  flex: auto;
}

.modal form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal .form__btns {
  justify-content: space-between;
  margin-top: auto;
}

.modal .form__btns .btn {
  max-width: unset;
  width: auto;
  padding: 16px 60px;
}

@media (max-width: 991px) {
  .modal .form__btns {
    flex-direction: row;
  }
}

@media (max-width: 840px) {
  .modal-dialog {
    max-width: 100%;
    margin: 0;
    min-width: 375px;
  }

  .modal .form__btns {
    flex-direction: column;
  }

  .modal .form__btns .btn {
    max-width: 100%;
    width: 100%;
  }

  .modal .modal-title {
    padding-right: 88px;
    font-size: 30px;
    line-height: 35px;
    letter-spacing: normal;
  }

  .modal .modal-title br {
    display: none;
  }

  .modal-content {
    padding: 30px 40px 40px 40px;
  }
}

@media (max-width: 767px) {
  .modal-content {
    padding: 20px;
  }

  .modal .modal-title {
    padding-right: 48px;
  }

  .modal form {
    gap: 60px;
  }
}

@media (max-width: 540px) {
  .modal-title {
    display: none;
  }

  .modal-title.mobile-title {
    display: block;
    margin-bottom: 30px;
  }
}
