.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--md-sys-color-on-surface);
}

.required-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--md-sys-color-on-primary);
  background: var(--error);
}

.text-field {
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

select.text-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.text-field::placeholder {
  color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 78%, transparent);
}

.text-field:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px rgba(47, 136, 217, 0.14);
}

.text-field--textarea {
  min-height: 220px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.field-help {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.field-count {
  margin: 0;
  white-space: nowrap;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
}

.checkbox-field input {
  flex: 0 0 auto;
  margin-top: 3px;
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--md-sys-color-primary);
  cursor: pointer;
}

.tool-actions {
  margin-top: 2px;
}

.btn:disabled {
  opacity: 0.7;
}

.tool-error {
  margin: 0;
}

.tool-error--success {
  background: color-mix(in srgb, var(--success) 8%, var(--md-sys-color-surface));
  border-color: color-mix(in srgb, var(--success) 35%, var(--md-sys-color-outline-variant));
  color: var(--success);
}

.contact-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .field-meta {
    flex-direction: column;
    gap: 4px;
  }}

@media (max-width: 600px) {
  .contact-form {
    gap: 16px;
  }

  .text-field {
    height: 54px;
    min-height: 54px;
  }

  .text-field--textarea {
    min-height: 220px;
  }

  .tool-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }}
