.contactus {
  margin-top: 3rem;
  padding: 2rem;
}

.contactus h1 {
  text-align: center;
  font-size: 3rem;
  padding: 1rem;
}

.quote-intro {
  max-width: 800px;
  margin: 10px auto 30px;
  font-size: 15px;
  line-height: 1.7;
  color: #5f6b76;
  text-align: center;
}

.contact-form-main {
  width: min(700px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 20px;
}

.span-12 {
  grid-column: span 12;
}

.span-6 {
  grid-column: span 6;
}

input,
select {
  box-sizing: border-box;
  height: 47px;
  padding: 0 0.75rem;
  line-height: 47px;
  margin-bottom: 0.75rem;
  border: 1px solid #bbb;
  border-radius: 10px;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  line-height: 1.4;
  height: auto;
  resize: none;
}

.field label {
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
}

.contact-form-main .btn {
  justify-self: center
}

button {
  height: 50px;
  width: 300px;
  border-radius: 1.5625rem;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  box-shadow: 0 2px 25px rgba(32, 178, 170, 0.35);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}


.contact-form input:required:invalid,
.contact-form select:required:invalid {
  border: 1px solid #ccc;
}

.contact-form.submitted input:required:invalid,
.contact-form.submitted select:required:invalid {
  border: 1px solid red;
}

@media (max-width: 768px) {
  .span-6 {
    grid-column: span 12;
  }

  button {
    height: 40px;
    width: 200px;
  }
}