/* Shared contact form, used on every page (see contact-form.js). Relies on each page's color variables. */
.contact-form { max-width: 560px; margin: 2rem auto 0; text-align: left; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.cf-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.cf-field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.cf-field input,
.cf-field select,
.cf-field textarea {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0.65rem 0.8rem; width: 100%;
  transition: border-color 0.2s;
}
.cf-field input,
.cf-field select { height: 3rem; }
.cf-field select {
  appearance: none; cursor: pointer; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A9B9CB' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.cf-field input::placeholder { color: var(--muted); opacity: 0.6; }
.cf-optional { font-weight: 400; opacity: 0.75; }
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { outline: none; border-color: var(--accent); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cf-actions .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.cf-status { font-size: 0.9rem; color: var(--muted); }
.cf-status.cf-ok { color: var(--accent); }
.cf-status.cf-error { color: #F4A3A3; }
.contact-form + .contact-links { margin-top: 2.5rem; }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .cf-actions .btn { width: 100%; justify-content: center; }
}
