.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.form-field label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field label em {
  font-style: normal;
  color: var(--azure);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 1.3rem 1.6rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(21, 128, 61, 0.28);
  background: var(--porcelain);
  font-size: 1.5rem;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%2315803d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.6rem center;
  background-size: 1.3rem;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(77, 111, 91, 0.55);
}

.form-field.is--error input,
.form-field.is--error select,
.form-field.is--error textarea {
  border-color: #dc5b5b;
  box-shadow: 0 0 0 3px rgba(220, 91, 91, 0.12);
}

.form-field__error {
  font-size: 1.2rem;
  color: #c94a4a;
  display: none;
}

.form-field.is--error .form-field__error {
  display: block;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.form-submit .cta-button {
  width: 100%;
  justify-content: center;
}

.form-submit .cta-button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.form-note {
  font-size: 1.3rem;
  color: var(--ink-soft);
}

/* success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  padding: 2rem 0;
}

.form-success.is--visible {
  display: flex;
}

.form-success__check {
  width: 7.2rem;
  height: 7.2rem;
  color: var(--azure);
}

.form-success__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.8rem;
  color: var(--ink);
}

.form-success__copy {
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}

@media screen and (max-width: 481px) and (orientation: portrait) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
