/* Montserrat подключается через Google Fonts в style.css */

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

textarea,
input[type='text'],
input[type='button'],
input[type='submit'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='checkbox'] {
  -webkit-appearance: none !important;
  border-radius: 0;
}

button {
  cursor: pointer;
}

button {
  background: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited,
a:hover {
  text-decoration: none;
}


#loading,
#loading_bottom {
  display: none;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#loading img,
#loading_bottom img {
  width: 100%;
}

.custom-form {
  max-width: 500px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  /*box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 8px;*/
  border-radius: 18px !important;

  position: relative;
  width: 100%;
}
.custom-form__mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(20px);
  border-radius: 12px;
  transition: 0.3s ease backdrop-filter;
}

.custom-form__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  height: fit-content;
}

.custom-form__header img {
  max-width: 50px;
  min-height: 40px;
}
.custom-form__header h5 {
  color: #fff;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  font-size: 28px;
  margin: 0 auto;
  text-align: center;
}
.custom-form__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.custom-form form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* position: relative; */
  width: 100%;
}
.custom-form form input {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 4px;
  min-height: 55px !important;
  border-radius: 8px !important;
  padding: 14px;
  width: 100%;
  background: #fff;
  color: var(--brand-black);
  transition: 0.3s ease background-color, 0.3s ease box-shadow;
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
  border: none !important;
  box-sizing: border-box;
}
.custom-form form input::-moz-placeholder {
  color: var(--brand-black);
}
.custom-form form input::placeholder {
  color: var(--brand-black);
}
.custom-form form input.valid {
  background-color: rgba(199, 248, 206, 0.65);
  box-shadow: none;
}
.custom-form form input.invalid {
  background-color: rgba(248, 196, 192, 0.65);

  box-shadow: none;
}
.custom-form form .phone__input {
  display: flex;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  width: 100%;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px;
  border-radius: 8px !important;
  padding-left: 8px;
  transition: 0.3s ease background-color, 0.3s ease box-shadow;
  border: none;
}

.custom-form form .phone__input .flag-container {
  background: none !important;
}

.custom-form form .phone__input input {
  padding-left: 10px;
  background: none;
  box-shadow: none;
}
.custom-form form .phone__input .selected-flag {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}
.custom-form form .phone__input .flag-container {
  height: 100%;
  position: relative;
}
.custom-form form .phone__input .flag-container .iti-arrow {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--brand-accent);
}
.custom-form form .phone__input.valid {
  background-color: rgba(199, 248, 206, 0.65);
  box-shadow: none;
}
.custom-form form .phone__input.invalid {
  background-color: rgba(248, 196, 192, 0.65);
  box-shadow: none;
}
.custom-form form .form__btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  padding: 18px 26px;
  border-radius: 40px !important;
  border: none;
  background: #ec0000;

  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  min-height: 58px;
}
.custom-form form .form__btn:hover,
.custom-form form .form__btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(85, 152, 255, 0.45);
}
.custom-form form .active {

}
