@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&display=swap");

h4 {
  font-size: 45px;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  position: relative;
}
#form {
  position: absolute;
  background-color: black;
  top: -90px;
  opacity: 0;
}

.form > p {
  font-family: "Manrope", Sans-Serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
}

.feedback-form {
  padding: 0px 50px 30px 50px;
  border-radius: 20px;
  width: 700px;
  margin-top: 24px;
  border: 1px solid #1b1b1b;
}

.form-input {
  width: 600px;
  border: none;
  border-bottom: 1px solid black;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  color: #1b1b1b;
  margin-top: 30px;
  font-family: "Manrope", Sans-Serif;
  font-weight: 500;
  background-color: transparent !important;
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  box-shadow: 0 0 0 30px white inset !important;
}

.form-input:focus {
  border-bottom-color: #4a90e2;
}

.form-input::placeholder {
  color: #1b1b1b;
}

.form-textarea {
  width: 600px;
  height: 100px;
  border: 1px solid black;
  font-size: 16px;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
  color: #1b1b1b;
  margin-top: 50px;
  font-family: "Manrope", Sans-Serif;
  font-weight: 500;
  background-color: transparent;
}

.form-textarea:focus {
  border-color: #4a90e2;
}

.form-textarea::placeholder {
  color: #1b1b1b;
}

.file-upload-container {
  display: flex;
  align-items: center;
  margin-top: 25px;
  gap: 25px;
  flex-wrap: wrap;
}

.file-label {
  color: #1b1b1b;
  font-family: "Manrope", Sans-Serif;
  font-size: 16px;
  font-weight: 500;
}

.file-input {
  display: none;
}

.file-button {
  border-radius: 5px;
  border: 1px solid #1b1b1b;
  padding: 1px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 14px;
  font-family: "Manrope", Sans-Serif;
  font-weight: 500;
}

.soglasie {
  color: #1b1b1b;
  font-size: 14px;
  font-family: "Manrope", Sans-Serif;
  font-weight: 400;
  margin-top: 12px;
}
.soglasie a {
  color: #1b1b1b;
  font-size: 14px;
  font-family: "Manrope", Sans-Serif;
  font-weight: 500;
}

.submit-button {
  background-color: #fdfdfd;
  color: #1b1b1b;
  border: 0.6px solid #1b1b1b;
  padding: 10px 40px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 12px;
  font-family: "Manrope", Sans-Serif;
  font-size: 16px;
  font-weight: 700;
}

.submit-button.loading-state {
  background-color: #1b1b1b !important;
  color: #fdfdfd !important;
  border-color: #1b1b1b !important;
}

.submit-button.success-state {
  background-color: #1b1b1b !important;
  color: #fdfdfd !important;
  border-color: #1b1b1b !important;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fdfdfd;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-family: "Manrope", Sans-Serif;
  font-size: 14px;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.file-previews {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-preview {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  border: 1px solid #ddd;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (max-width: 440px){
  .form {
    margin-top: 60px;
    padding: 0 10px;
  }
  .form > p {
    font-size: 4.1em;
    width: 65%;
    text-align: center;
  }
  .feedback-form {
    width: 100%;
    padding: 10px 10px;
  }
  .form-input {
    width: 100%;
    font-size: 4.7em;
    padding-left: 2px;
  }
  .form-textarea {
    width: 100%;
    height: 120px;
    padding-left: 2px;
  }
  .file-upload-container {
    margin-top: 20px;
    gap: 10px;
  }
  .file-label {
    font-size: 4.7vw;
  }
  .soglasie {
    font-size: 3vw;
    width: 80%;
  } 
  .soglasie a {
    font-size: 3vw;
  }
  .file-button {
    padding: 2px 18px;
  }
  .submit-button {
    margin-top: 20px;
    font-size: 4.7vw;
    padding: 12px 40px;
  }
  .file-previews {
    gap: 5px;
  }
  .file-preview {
    width: 35px;
    height: 35px;
  }
  .file-preview-remove {
    width: 15px;
    height: 15px;
  }
}