.contact-form {
  width: min(1070px, 100%);
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

label span {
  color: #111827;
}

input,
textarea {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  font: inherit;
  font-size: 17px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input {
  min-height: 58px;
}

textarea {
  min-height: 162px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7c7c7c;
}

input:focus,
textarea:focus {
  border-color: #3b5bcc;
  box-shadow: 0 0 0 4px rgba(59, 91, 204, 0.1);
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #dc2626;
}

.error-message {
  min-height: 18px;
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
}

.submit-button {
  margin-top: 28px;
  border: 0;
  border-radius: 999px;
  padding: 17px 34px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(100deg, #1d253e, #241314);
  box-shadow: 0 15px 25px rgba(202, 31, 41, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(28, 16, 16, 0.27);
}

.submit-button:active {
  transform: translateY(0);
}

.send-icon {
  display: inline-block;
  transform: rotate(-35deg);
  font-size: 20px;
}

.success-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #15803d;
  font-weight: 700;
}

@media (max-width: 720px) {

  .contact-form {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .submit-button {
    width: 100%;
    justify-content: center;
  }
}