/* Contact form (contact.html). Colours follow the page's light/dark cards. */
.cf-card { border-radius: 20px; padding: 32px; }
@media (min-width: 768px) { .cf-card { padding: 40px; } }
.cf-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cf-grid { grid-template-columns: 1fr 1fr; } .cf-full { grid-column: 1 / -1; } }
.cf-field { display: grid; gap: 6px; }
.cf-field label { font-size: 14px; font-weight: 600; }
.cf-field label small { font-weight: 400; opacity: 0.6; }
.cf-field input, .cf-field textarea, .cf-field select {
  width: 100%; font: inherit; font-size: 16px; color: inherit;
  padding: 13px 14px; border-radius: 12px;
  background: rgba(127,127,127,0.08); border: 1.5px solid rgba(127,127,127,0.28);
  transition: border-color 0.15s, background 0.15s;
}
.cf-field textarea { min-height: 150px; resize: vertical; }
.cf-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus { outline: none; border-color: currentColor; background: rgba(127,127,127,0.12); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.cf-submit { min-width: 180px; justify-content: center; }
.cf-submit[disabled] { opacity: 0.6; cursor: progress; }
.cf-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.cf-msg.ok { display: block; background: rgba(108,209,139,0.14); border: 1px solid rgba(108,209,139,0.5); }
.cf-msg.bad { display: block; background: rgba(229,83,75,0.12); border: 1px solid rgba(229,83,75,0.45); }
.cf-note { font-size: 13px; opacity: 0.65; margin-top: 14px; }
