.form-card {
  background: #eeeeee;
  border: none;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.form-lede {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 18px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-field label {
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 600;
  width: 160px;
  flex: 0 0 160px;
  margin: 0;
}

.required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  background: var(--accent-red);
  color: #ffffff;
  border-radius: 4px;
  line-height: 1.4;
  vertical-align: middle;
}

.form-field input,
.form-field select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: 1 1 auto;
  height: 44px;
}

.form-field select:required:invalid {
  color: #888888;
}

.form-field select option {
  color: #000000;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.12);
}

.form-field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: 1 1 auto;
  min-height: 140px;
  resize: vertical;
}

.form-field.form-field-textarea {
  align-items: flex-start;
}

@media (max-width: 640px) {
  .form-field {
    flex-direction: column;
    align-items: stretch;
  }

  .form-field label {
    width: 100%;
    flex: 0 0 auto;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
  }
}

.submit-row {
  margin-top: 16px;
  text-align: right;
}

.submit-button {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.submit-button:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.submit-button:active {
  transform: translateY(1px);
}

/* Thanks page */
.thanks-card {
  margin-top: 36px;
  padding-left: 18px;
  border-left: 2px solid var(--fg);
  max-width: 38rem;
}

.thanks-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.thanks-card p {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 8px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent-blue);
}
