main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  min-height: calc(100vh - 83px);
}

.form-container {
  width: 100%;
  max-width: 1070px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0px 16px 32px -4px rgba(12, 12, 13, 0.1), 0px 4px 4px -4px rgba(12, 12, 13, 0.05);
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1004px;
  padding: 10px;
  border: 1px solid #999;
  border-radius: 18px;
  min-height: 142px;
}

.form-title h1 {
  color: #999;
  font-size: 64px;
  font-weight: 400;
  text-align: center;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 65px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group label {
  color: #000;
  font-size: 28px;
  font-weight: 400;
}

.name-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 65px;
  width: 100%;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #D4DCE0;
  border-radius: 15px;
  background: #F7F9FA;
  font-family: Inter, sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: #3E31FA;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  height: 59px;
}

.input-wrapper label {
  color: #000;
  font-size: 24px;
  font-weight: 400;
}

.input-wrapper p {
  color: #000;
  font-size: 24px;
  font-weight: 400;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 65px;
  width: 100%;
}

textarea {
  min-height: 284px;
  resize: none;
  padding: 15px;
}

.submit-btn {
  background: #006BB2;
  color: #FFFBFB;
  border: none;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.3s;
  align-self: center;
  font-family: Inter, sans-serif;
}

.submit-btn:hover {
  opacity: 0.9;
}


@media (min-width: 768px) {
  main {
    padding: 50px 20px;
    min-height: calc(100vh - 83px);
  }

  .form-container {
    padding: 50px;
    gap: 50px;
  }

  .form-title {
    padding: 10px;
    border-radius: 18px;
    min-height: 142px;
  }

  .form-title h1 {
    font-size: 64px;
  }

  form {
    gap: 65px;
  }

  .form-group {
    gap: 30px;
  }

  .form-group label {
    font-size: 28px;
  }

  .name-inputs {
    gap: 65px;
  }

  .input-wrapper {
    gap: 15px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    padding: 15px;
    font-size: 16px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    height: 59px;
  }

  .input-wrapper label,
  .input-wrapper p {
    font-size: 24px;
  }

  .two-column {
    gap: 65px;
  }

  textarea {
    min-height: 284px;
  }

  .submit-btn {
    padding: 10px 20px;
    font-size: 28px;
  }
}


@media (min-width: 0px) and (max-width: 500px) {
  .form-container {
    width: 100%;
    max-width: 400px; 
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0px 8px 24px -4px rgba(12, 12, 13, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-left: 45px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9f9f9;
    min-height: 60px;
  }

  .form-title h1 {
    color: #999;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
  }

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

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

  .form-group label {
    color: #000;
    font-size: 16px;
    font-weight: 500;
  }

  .form-group p {
    font-size: 10px;
  }

  .name-inputs {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: Inter, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  textarea:focus {
    border-color: #3E31FA;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    height: 40px;
  }

  .input-wrapper label {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
  }

  .input-wrapper p {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    text-align: left;
  }

  .two-column {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
  }

  textarea {
    min-height: 120px;
    resize: vertical;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
  }

  .submit-btn {
    background: #006BB2;
    color: #FFFBFB;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    align-self: center;
    font-family: Inter, sans-serif;
    width: 100%;
    max-width: 280px;
  }

  .submit-btn:hover {
    opacity: 0.9;
  }
}