/* contacts.css */
.screen {
  background-color: #fcfcfc;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 50px; /* Добавлено для поднятия футера */
}

.main-content {
  position: relative;
  width: 1512px;
  margin: 0 auto;
  min-height: calc(100vh - 150px); /* Изменено с фиксированной высоты */
}

.page-title {
  position: absolute;
  width: 1036px;
  top: -50px;
  left: 72px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  color: #333333;
  font-size: 55px;
  line-height: 55px;
  margin: 0;
}

.request-form {
  position: relative;
  margin-bottom: 100px; /* Добавлено для поднятия футера */
}

/* Поле "Ваше имя" */
.form-group.name {
  position: absolute;
  top: 173px;
  left: 72px;
  width: 280px;
}

/* Поле "Телефон" */
.form-group.phone {
  position: absolute;
  top: 305px;
  left: 72px;
  width: 334px;
}

/* Поле "Ваш запрос" */
.form-group.request {
  position: absolute;
  top: 173px;
  left: 475px;
  width: 654px;
}

.form-label {
  display: block;
  margin-bottom: 15px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  color: #333333;
  font-size: 30px;
  line-height: 30px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 15px 25px;
  background-color: #f6f6f6;
  border-radius: 36.93px;
  border: none;
  font-family: "Vela Sans-Medium", Helvetica;
  font-size: 25px;
  color: #333333;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #d0d0d0;
}

.form-textarea {
  height: 182px;
  resize: none;
}

.submit-button {
  position: absolute;
  top: 520px;
  left: 72px;
  width: 334px;
  height: 66px;
  background-color: #fcfcfc;
  border-radius: 54.5px;
  border: 2px solid #d0d0d0;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  color: #333333;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: #333333;
  color: #f8f8f8;
  border-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.error-message {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 5px;
  font-family: "Vela Sans", Helvetica;
}

.input-error {
  border: 1px solid #d32f2f !important;
}

/* Остальные элементы */
.direct-contact {
  position: absolute;
  top: 629px;
  left: 72px;
}

.contact-email {
  display: block;
  margin-top: 15px;
  font-family: "Vela Sans-SemiBold", Helvetica;
  font-weight: 600;
  color: #333333;
  font-size: 30px;
  text-decoration: underline;
}

.footer{
  margin-top: 120px;
}

/* Адаптация для мобильных */
@media (max-width: 1156px) {
  .screen {
    padding-bottom: 30px;
  }
  
  .main-content {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .page-title {
    position: static;
    width: 100%;
    font-size: 50px;
    line-height: 55px;
    margin-bottom: 30px;
  }

  .request-form {
    position: static;
    margin-bottom: 50px;
  }

  .form-group.name,
  .form-group.phone,
  .form-group.request {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }

  .submit-button {
    position: static;
    width: 100%;
    margin-top: 20px;
  }

  .direct-contact,
  .contact-email {
    position: static;
    margin-top: 40px;
  }
}

/* contacts.css - исправленные медиазапросы */

@media (max-width: 720px) {
    .page-title {
        font-size: 35px; /* Уменьшено на ~30% от 50px */
        line-height: 40px;
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 21px; /* Уменьшено на 30% от 30px */
        margin-bottom: 10px;
    }
    
    .form-input, 
    .form-textarea {
        font-size: 17.5px; /* Уменьшено на 30% от 25px */
        padding: 10px 20px;
    }
    
    .submit-button {
        font-size: 21px; /* Уменьшено на 30% от 30px */
        height: 56px;
    }
    
    .contact-email {
        font-size: 21px; /* Уменьшено на 30% от 30px */
    }
    
    .request-form {
        margin-bottom: 30px;
    }
    .footer{
      margin-top: 0px;
    }

}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px; /* Уменьшено на ~45% от 50px */
        line-height: 32px;
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 18px; /* Уменьшено на 40% от 30px */
        margin-bottom: 8px;
    }
    
    .form-input, 
    .form-textarea {
        font-size: 15px; /* Уменьшено на 40% от 25px */
        padding: 8px 16px;
    }
    
    .form-textarea {
        height: 150px;
    }
    
    .submit-button {
        font-size: 18px; /* Уменьшено на 40% от 30px */
        height: 50px;
    }
    
    .contact-email {
        font-size: 18px; /* Уменьшено на 40% от 30px */
        margin-top: 10px;
    }
    
    .request-form {
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .direct-contact {
        margin-top: 30px;
    }

    .footer{
      margin-top: 0px;
    }
}