/* Shared contact-form styles for pvranch.info.
   Relies on the --accent / --border / --ink / --muted custom properties
   defined by each page. */

form.contact { margin: 0; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field.check { display: flex; align-items: flex-start; gap: 10px; }
.field.check input { margin-top: 4px; flex: none; }
.field.check label { font-weight: 400; margin: 0; }

/* Honeypot — hidden from people, filled in by bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.submit {
  background: var(--accent-dark);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
}
button.submit:hover { background: var(--accent); }
button.submit[disabled] { opacity: 0.6; cursor: default; }

.form-msg {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.form-msg.ok  { background: #eef3ea; border: 1px solid #cadcc1; color: var(--accent-dark); }
.form-msg.err { background: #fdeeee; border: 1px solid #f0cccc; color: #8a2f2f; }

.privacy-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}
