@import url(reset.css);

/*Стиль кнопки, вызывающее модальное окно*/
.linkButton{
  cursor: pointer;
}
/*Стиль фона заполняющего всю область экрана при открытии модального окна*/
.remodal-overlay{
  background: rgba(38, 49, 66, 0.8);
}
/*Область формы*/
.formArea {
  max-width: 350px;
  margin: 0 auto;
  padding: 40px 15px 40px 15px;
  text-align: center;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(2, 19, 48, 0.7);

}

/* Широкая форма для "Написать нам" */
.write-us-form-area {
  max-width: 600px !important;
  padding: 50px 40px !important;
}

@media (max-width: 640px) {
  .write-us-form-area {
    max-width: 100% !important;
    padding: 40px 20px !important;
  }
}

/* Выравнивание чекбоксов согласий по левому краю */
.write-us-form-area .row .agreement {
  text-align: left !important;
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Отступы между чекбоксами */
.write-us-form-area .row.agreement-row {
  margin-bottom: 15px !important;
}

.write-us-form-area .row.agreement-row:last-child {
  margin-bottom: 0 !important;
}

/* Отступ от поля загрузки файла */
.write-us-form-area .row.file-upload-row {
  margin-bottom: 15px !important;
}

/* Drag & Drop зона для файлов */
.file-upload-area {
  position: relative;
  width: 100%;
  min-height: 150px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.file-upload-area:hover {
  border-color: #653da5;
  background: #f5f5f5;
}

.file-upload-area.drag-over {
  border-color: #653da5;
  background: #f0e6ff;
  transform: scale(1.02);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  color: #999;
  margin-bottom: 10px;
}

.file-upload-area:hover .file-upload-icon,
.file-upload-area.drag-over .file-upload-icon {
  color: #653da5;
}

.file-upload-text {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.file-upload-link {
  color: #653da5;
  text-decoration: underline;
  cursor: pointer;
}

.file-upload-link:hover {
  color: #4a2d7a;
}

.file-upload-hint {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.file-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 4px;
  gap: 10px;
}

.file-name {
  flex: 1;
  font-size: 14px;
  color: #2e7d32;
  word-break: break-all;
}

.file-remove {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.file-remove:hover {
  background: #d32f2f;
}

.formTitle, .msgs{
  font-size: 1.125rem;
  color: #6c6d6f;
  margin-bottom: 15px;
}
.ui-input {
  position: relative;
  padding: 0;
  border: 0;
}
.ui-input input {
  border: 1;

  padding: 3px 0 3px 0;

  outline: 0;
  width: 100%;
  tap-highlight-color: transparent;
  touch-callout: none;
}
.ui-input input + label {
  position: relative;
  display: block;
  padding: 8px 0 8px 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: .0875em;
  font-weight: 500;
  text-align: left;
}
.ui-input input + label::before, .ui-input input + label::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
}
.ui-input input + label::before {
  background-color: rgba(255, 255, 255, 0.2);
}
.ui-input input + label::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
  background-color: #6EB1FF;
  height: 2px;
}
.ui-input input + label span {
  position: relative;
  color: rgba(255, 255, 255, 0.2);
  transition: color 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.ui-input input + label span::after {
  content: attr(data-text);
  position: absolute;
  overflow: hidden;
  left: 0;
  transform: scaleX(1);
  white-space: nowrap;
  color: #696969;
  background-image: linear-gradient(to right, #4A90E2 50%, rgba(255, 255, 255, 0) 0%);
  background-position: 100% 50%;
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #696969;
  backface-visibility: hidden;
  perspective: 1000;
  transform: translateZ(0);
  transition: background-position 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ui-input input:focus + label::after,
.ui-input input.error + label::after,
.ui-input input:invalid + label::after,
.ui-input input.filled + label::after {
  transform: scaleX(1);
  transform-origin: left;
}
.ui-input input:focus + label span::after,
.ui-input input.error + label span::after,
.ui-input input:invalid + label span::after,
.ui-input input.filled + label span::after {
  background-image: linear-gradient(to right, white 50%, rgba(255, 255, 255, 0) 0%);
  background-position: 0% 50%;
}

.ui-input input.filled {
  color: #000;
      font-size: 16px;
}
.ui-input input.filled + label::after {
  background-color: #b8c2d1;
}
.ui-input input.filled + label span::after {
  background-image: linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 0%);
  background-position: 0% 50%;
}

.ui-input input:focus {
  color: #000;
}
.ui-input input:focus + label::after {
  background-color: #6EB1FF;
}
.ui-input input:focus + label span::after {
  background-image: linear-gradient(to right, #6EB1FF 50%, rgba(255, 255, 255, 0) 0%);
  background-position: 0% 50%;
}

.ui-input input.error,
.ui-input input:invalid {
  color: #E66161;
}
.ui-input input.error + label::after,
.ui-input input:invalid + label::after {
  background-color: #E66161;
}
.ui-input input.error + label span::after,
.ui-input input:invalid + label span::after {

}
.g-recaptcha{
  margin-top: 30px;
}
.form-footer{
  margin-top: 40px;
}
.formBtn {
  border: 0;
  cursor: pointer;
  background-color: #653da5;
  color: #fff;

  width: 100%;
  padding: 20px 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .0875em;
  font-weight: 500;
  border-radius: 4px;
  outline: 0;
  box-shadow: 0 0 5px rgba(5, 19, 41, 0.5);
  transition: background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), color 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.formBtn:hover {
  box-shadow: 0 5px 10px rgba(5, 19, 41, 0.94);
  transition: .2s;
  zoom:1.005;
}

.formCreator{
  text-align: center;
  margin-top: 10px;
}
.formCreator a{
  font-size: .8rem;
  color: #4e596a;
  text-decoration: none;
}

.btn:focus, .btn:active,
.btn:hover {
  background-color: #6EB1FF;
  color: white;
}

.__first, .__second, .__third, .__fourth {
  animation-name: fadeIn;
  animation-duration: 180ms;
  animation-fill-mode: both;
  animation-iteration-count: 1;
}

.__first {
  animation-delay: 300;
}

.__second {
  animation-delay: 500ms;
}

.__third {
  animation-delay: 600ms;
}

.__fourth {
  animation-delay: 700ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, -25%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* Large Devices, Wide Screens */
@media only screen and (max-width : 1199px) {}
/* Medium Devices, Desktops */
@media only screen and (max-width : 991px) {}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 486px) {}
