.modal {
  position: fixed;
  z-index: 11;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 15px;
  overflow-y: auto;
  display: none;
}
.modal__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  background-color: var(--bg-color);
  margin: auto;
  color: #000;
  cursor: default;
  border-radius: 20px;
  min-height: 571px;
}
.modal__title {
  margin: 0 0 10px 0;
  font-weight: 500;
  font-size: 24px;
  line-height: 125%;
  color: var(--dark-blue);
}
.modal__container {
  background-color: var(--bg-color);
  padding: calc(20px + (40 - 20) * ((100vw - 320px) / (1440 - 320)))
    calc(20px + (40 - 20) * ((100vw - 320px) / (1440 - 320)));
  margin: calc(8px + (16 - 8) * ((100vw - 320px) / (1440 - 320))) 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
}
.modal__main_response {
  max-width: 300px;
  min-height: 200px;
}
.modal__container_response {
  padding: 20px 20px;
}
.modal__title_response {
  font-size: 22px;
}
.modal__text_response a {
  color: var(--light-pink);
}
.modal__close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  position: absolute;
  top: 10px;
  right: 10px;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s ease-in-out;
  border-radius: 3px;
  padding: 0;
  text-align: center;
  display: block;
  width: 30px;
  height: 30px;
  transition: all 0.3s linear;
}
.modal__close:hover {
  transform: scale(1.1);
}
.modal__close:focus-visible {
  outline-color: var(--light-pink);
}
.form-agent__request {
  max-width: 470px;
  padding: 0 calc(0px + (30 - 0) * ((100vw - 320px) / (1440 - 320)))
    calc(20px + (30 - 20) * ((100vw - 320px) / (1440 - 320)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* gap: 20px; */
}
.form-agent__item {
  margin: 25px 0 0 0;
  display: inline-block;
  position: relative;
  width: 100%;
  vertical-align: top;
}
.form-agent__input,
.form-agent__select {
  width: 100%;
  height: 50px;
  padding: 12px 15px 0px;
  border: 1px solid #dcdcdc;
  outline: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s linear;
}
.form-agent__input:focus ~ .form-agent__label,
.form-agent__input:not(:focus):valid ~ .form-agent__label {
  top: -10px;
  left: 15px;
  font-size: 10px;
}

.form-agent__input:focus {
  box-shadow: 0px 0px 10px var(--light-pink);
}
.form-agent__select {
  position: relative;
  padding: 15px 15px 15px 15px;
  appearance: none;
  background: url(../img/arrow.svg) no-repeat;
  background-position: right 15px center;
  background-color: var(--white);
}
.form-agent__label {
  position: absolute;
  pointer-events: none;
  left: 15px;
  top: 5px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 40px;
  transition: 0.3s all linear;
}
.form-agent__label-error {
  color: tomato;
}
.form-agent__error {
  border: 1px solid tomato;
}
.error-message {
  color: tomato;
  font-size: 12px;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
}
.form-agent__submit {
  outline: none;
  border: none;
  width: 100%;
}
.valid_off {
  cursor: none;
  pointer-events: none;
  opacity: 0.2;
}
.form-agent__btn {
  padding: 12px 18px;
  display: inline-block;
  margin: 18px 0 0 0;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  background-color: var(--new-pink);
}
.form-agent__agreement {
  font-size: 12px;
  margin: 10px 0 0 0;
  text-align: left;
}
.form-agent__checkbox {
  margin: 5px 0 0 0;
  display: flex;
  gap: 5px;
}
.form-agent__agreement-link,
.modal__text_response a {
  color: var(--light-pink);
  transition: all 0.3s linear;
}
.form-agent__agreement-link:visited,
.modal__text_response a:visited {
  text-decoration: none;
  outline-color: var(--new-pink);
}

.form-agent__agreement-link:focus-visible,
.modal__text_response a:focus-visible {
  text-decoration: none;
  outline-color: var(--light-pink);
}

.form-agent__agreement-link:hover,
.modal__text_response a:hover {
  text-decoration: none;
  color: var(--light-blue);
}

.form-agent__agreement-link:active,
.modal__text_response a:active {
  color: var(--dark-blue);
}
