/* form */
.data-window {
  position: fixed;
  display: none;
  flex-direction: column;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  backdrop-filter: blur(5px);
}
.form-success-message {
  padding: 15px;
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  margin-top: 15px;
  text-align: center;
}
.form__success-message {
  padding: 15px;
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  margin-top: 15px;
  text-align: center;
  display: none;
}
.data-window__wrap {
  margin: auto;
  padding: 60px;
  flex-direction: column;
  align-items: center;
  row-gap: 25px;
  background-color: #3a5656;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 50%;
  box-shadow: 0px 0px 26px #071111;
}

.data-window__button {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.data-window__close {
  color: #888;
  transition: color 0.3s ease;
}

.data-window__close:hover {
  color: #555;
}

.data-window__close svg {
  width: 24px;
  height: 24px;
}

.form {
  flex-direction: column;
  align-items: center;
  row-gap: 25px;
  width: 100%;
}

.form__bottom {
  flex-direction: column;
  width: 100%;
  row-gap: 20px;
}
.form__success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4caf50;
  color: white;
  padding: 20px;
  border-radius: 5px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.form__data {
  position: relative;
  flex-direction: column;
  row-gap: 8px;
  color: #555;
}

.form__tip {
  font-size: 12px;
  color: #999;
  margin-left: 15px;
}

.form__input,
.form__textaria {
  padding: 16px 20px;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #ffffff;
  background-color: #0a2e31;
  caret-color: #4a90e2;
  outline: none;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form__input:focus,
.form__textaria:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form__file {
  color: #ffffff;
}

input.form__file::file-selector-button {
  margin-right: 15px;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background-color: #f0f0f0;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

input.form__file::file-selector-button:hover {
  background-color: #e0e0e0;
}

.form__confirm {
  flex-direction: column;
  row-gap: 20px;
  align-self: center;
  width: 100%;
}

.just-validate-error-label {
  position: absolute;
  font-size: 12px;
  top: -18px;
  left: 15px;
  font-weight: 400;
  line-height: normal;
  color: #e74c3c;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  border: 1px solid #e0e0e0;
  -webkit-text-fill-color: #333;
  -webkit-box-shadow: 0 0 0px 1000px #f9f9f9 inset;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

.form__label {
  margin: 0;
  align-self: flex-start;
  justify-content: flex-start;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  outline: none;
  color: #ffffff;
  cursor: pointer;
  gap: 8px;
}

.form__check {
  position: fixed;
  transform: scale(0);
}

.form__check:focus + span {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.form__span {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form__error-checkbox {
  position: relative;
  align-self: flex-start;
}

.form__check + .form__span::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form__check:checked + .form__span {
  border-color: #ffffff;
}

.form__check:checked + .form__span::before {
  opacity: 1;
}

.just-validate-error-field {
  border-color: #e74c3c;
}

.just-validate-error-field:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form__btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: white;
  background-color: #1a2628;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form__btn:hover {
  background-color: #ffffff;
}

.measurement-btn {
  padding: 14px 20px;
  font-size: 14px;
  background-color: #f0f0f0;
  color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.measurement-btn:hover {
  background-color: #e0e0e0;
}

.data-window.is-opened {
  display: flex;
  animation-name: window-open;
  transform-origin: center;
}

.data-window.is-closed {
  animation-name: window-close;
  transform-origin: center;
}

.form__textaria {
  padding: 16px 20px;
  min-height: 120px;
  max-height: 200px;
  resize: vertical;
}

@keyframes window-open {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes window-close {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* форма в вопросах */
.question__form {
  max-width: 100%;
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form__massage {
  position: relative;
}
