/* JWDC contact form — shared by index.html and contact.html.
   Relies on the page's :root tokens (--ink, --paper, --display, --body). */

.jw-form { display: grid; gap: 18px; color: var(--paper); font-family: var(--body); }
.jw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jw-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jw-field label { font-family: var(--display); font-size: 13.5px; font-weight: 500; color: rgba(246,245,242,0.88); }
.jw-field .jw-opt { font-weight: 400; color: rgba(246,245,242,0.5); }

.jw-field input,
.jw-field select,
.jw-field textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.4; color: var(--paper);
  background: rgba(10,10,10,0.55); border: 1px solid rgba(246,245,242,0.28);
  border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease;
}
.jw-field textarea { min-height: 120px; resize: vertical; }
.jw-field input::placeholder,
.jw-field textarea::placeholder { color: rgba(246,245,242,0.42); }
.jw-field input:hover,
.jw-field select:hover,
.jw-field textarea:hover { border-color: rgba(246,245,242,0.4); }
.jw-field input:focus-visible,
.jw-field select:focus-visible,
.jw-field textarea:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-color: var(--paper); background: rgba(10,10,10,0.7); }

.jw-field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23f6f5f2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.jw-field select option { background: var(--ink); color: var(--paper); }

.jw-field [aria-invalid="true"] { border-color: #ffb4a8; }
.jw-error { font-size: 13px; color: #ffb4a8; margin: 0; }
.jw-error[hidden] { display: none; }

/* Honeypot: off-screen, not display:none, so naive bots still fill it */
.jw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jw-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 4px; }
.jw-submit {
  font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 0; border-radius: 100px; padding: 16px 32px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.jw-submit:hover { transform: translateY(-2px); background: var(--paper-pure); }
.jw-submit:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.jw-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.jw-status { font-size: 14.5px; color: rgba(246,245,242,0.85); margin: 0; }
.jw-status:empty { display: none; }
.jw-status.is-error { color: #ffb4a8; }
.jw-status a { color: inherit; text-decoration: underline; }

.jw-success { border: 1px solid rgba(246,245,242,0.28); background: rgba(10,10,10,0.6); border-radius: 16px; padding: 32px 28px; }
.jw-success h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--paper); }
.jw-success p { color: rgba(246,245,242,0.82); font-size: 1.02rem; margin: 0; }
.jw-success:focus { outline: none; }

@media (max-width: 600px) {
  .jw-form-row { grid-template-columns: 1fr; }
  .jw-submit { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .jw-field input, .jw-field select, .jw-field textarea, .jw-submit { transition: none; }
  .jw-submit:hover { transform: none; }
}
