
.contacts {
  min-height: 100vh;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  padding: 64px 16px 140px;
}

.contacts-card {
  max-width: 888px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
}


.contacts-icon {
  width: 74px;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #006655;
}

.contacts-icon img {
  width: 74px;
  height: 74px;
}


.contacts-title {
  font-size: 40px;
  font-weight: 400;
  line-height: 130%;
  color: #080808;
  text-align: center;
  margin: 40px 0;
}

.contacts-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field span {
  font-size: 14px;
  color: #4a4a4a;
}

.form-field .req {
  color: #d64545;
}


.form-field input {
  height: 52px;
  padding: 0 16px;
  padding-right: 54px; 
  font-size: 16px;
  font-family: inherit;
  border-radius: 8px;
  border: 2px solid #e5e5e5;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;

  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 22px 22px;
}

.form-field input::placeholder {
  color: #bdbdbd;
}

.form-field input:hover {
  border-color: #cfcfcf;
}

.form-field input:focus {
  border-color: #006655;
  color: #006655;
}

.form-field__hint {
  font-size: 14px;
  line-height: 1.2;
  min-height: 18px; 
  color: #4a4a4a;
}



.form-field input.is-error {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23D64545'/%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.form-field input.is-error + .form-field__hint {
  color: #d64545;
}


.form-field input.is-valid {
  border-color: #006655;
  box-shadow: 0 0 0 3px rgba(0, 102, 85, 0.10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23006655'/%3E%3Cpath d='M6 10.5l2.2 2.2L14.5 6.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-field input.is-valid + .form-field__hint {
  color: #006655;
}


.form-field input:disabled {
  background: #f5f5f5;
  border-color: #eeeeee;
  color: #bdbdbd;
  box-shadow: none;
  background-image: none;
}

.form-field input:disabled::placeholder {
  color: #d0d0d0;
}


.contacts-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  background: #ffffff;
  border-top: 1px solid #eeeeee;
}

.contacts-footer__inner {
  max-width: 888px;
  margin: 0 auto;
  padding: 16px 20px;

  display: flex;
  align-items: center;
}

.contacts-submit {
  margin-left: auto;
  cursor: pointer;
}

.contacts-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.contacts-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 16px;
  color: #006655;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contacts {
    padding-top: 48px;
  }

  .contacts-title {
    font-size: 28px;
  }
}
