.ma-contact-form-section .wp-block-group.alignwide {
  max-width: 920px;
}

.ma-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.ma-form-field {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  color: var(--wp--preset--color--navy);
  font-weight: 700;
}

.ma-form-field--full {
  grid-column: 1 / -1;
}

.ma-form-field input,
.ma-form-field select,
.ma-form-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 0;
  background: #fff;
  padding: 0.8rem 1rem;
  color: var(--wp--preset--color--navy);
  font: inherit;
  font-weight: 400;
}

.ma-form-field textarea {
  min-height: 12rem;
  resize: vertical;
}

.ma-form-field input:focus,
.ma-form-field select:focus,
.ma-form-field textarea:focus {
  outline: 3px solid rgba(42, 56, 143, 0.2);
  border-color: var(--wp--preset--color--primary);
}

.ma-required,
.ma-optional {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.4;
}

.ma-required {
  background: #b42318;
  color: #fff;
}
.ma-optional { background: var(--wp--preset--color--muted); }

.ma-form-consent {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--wp--preset--color--pale);
  text-align: center;
}

.ma-form-consent .wpcf7-list-item { margin: 0; }

.ma-form-submit { text-align: center; }

.ma-form-submit .wpcf7-submit {
  min-width: min(100%, 22rem);
  border: 0;
  border-radius: 6px;
  background: var(--wp--preset--color--orange);
  padding: 1rem 2rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(17, 26, 69, 0.5);
}

.wpcf7-not-valid-tip { margin-top: 0.4rem; font-size: 0.85rem; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 1rem; }

@media (max-width: 767px) {
  .ma-form-grid { grid-template-columns: 1fr; }
  .ma-form-field--full { grid-column: auto; }
}
