/* desk-forms.css — the native ticket forms (Eve Ticket Desk, lane D, 29 Sep 2026).
 *
 * One small sheet for the two forms drawn by views/desk-form/_form.php, on
 * whatever page hosts them: the support-center pages (support-page.css) and the
 * /upfit wizard (upfit-page.css). So it leans
 * on nothing of theirs: text inherits the host's colour, lines and fills are
 * translucent greys that read on dark and light alike, and the one accent is
 * the brand red. Registered from the partial, outside Speedify's bundles. */

.dk-form {
  --dk-accent: #ea3000;
  --dk-accent-2: #ff4414;
  --dk-line: rgba(128, 128, 128, 0.38);
  --dk-fill: rgba(128, 128, 128, 0.08);
  --dk-bad: #e5533d;
  position: relative;
  color: inherit;
  font: inherit;
  text-align: left;
}
.dk-form [hidden], .dk-receipt[hidden], .dk-file-list[hidden] { display: none !important; }
.dk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dk-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.dk-wide { grid-column: 1 / -1; }
.dk-label {
  display: block;
  padding: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.dk-field.is-required > .dk-label::after { content: " *"; color: var(--dk-accent); }
.dk-optional { margin-left: 6px; text-transform: none; letter-spacing: 0.02em; opacity: 0.8; }
.dk-form input[type="text"],
.dk-form input[type="email"],
.dk-form input[type="tel"],
.dk-form input[type="number"],
.dk-form input[type="date"],
.dk-form input[type="file"],
.dk-form select,
.dk-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--dk-line);
  border-radius: 8px;
  background: var(--dk-fill);
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dk-form textarea { resize: vertical; min-height: 96px; }
.dk-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EA3000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.dk-form select option { color: #111317; background: #fff; }
.dk-form input[type="file"] { border-style: dashed; cursor: pointer; font-size: 14px; }
.dk-form input:focus,
.dk-form select:focus,
.dk-form textarea:focus {
  outline: none;
  border-color: var(--dk-accent);
  box-shadow: 0 0 0 3px rgba(234, 48, 0, 0.18);
}
.dk-form .dk-invalid,
.dk-form .dk-invalid input { border-color: var(--dk-bad); }
.dk-field-error { margin: 0; font-size: 12.5px; color: var(--dk-bad); }
.dk-checks { flex-flow: row wrap; gap: 10px; }
.dk-checks > legend { width: 100%; margin-bottom: 8px; }
.dk-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--dk-line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.dk-check input { margin: 0; accent-color: var(--dk-accent); }
.dk-check:has(input:checked) { border-color: var(--dk-accent); }
.dk-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; opacity: 0.85; }
.dk-file-list .is-bad { color: var(--dk-bad); opacity: 1; }
.dk-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.dk-hint { margin: 14px 0 0; font-size: 13px; opacity: 0.7; }
.dk-error { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--dk-bad); }
.dk-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dk-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 15px 26px;
  background: linear-gradient(135deg, #ff4414 0%, #ea3000 55%, #c72900 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.2s;
}
.dk-btn:hover { box-shadow: 0 12px 36px rgba(234, 48, 0, 0.35); }
.dk-btn:focus-visible { outline: 2px solid var(--dk-accent, #ea3000); outline-offset: 3px; }
.dk-btn[disabled] { opacity: 0.6; cursor: progress; }
.dk-btn-ghost { background: transparent; border: 1px solid rgba(128, 128, 128, 0.45); color: inherit; }
.dk-note { margin: 0; max-width: 44ch; font-size: 12.5px; line-height: 1.5; opacity: 0.65; }

/* the receipt — drawn by js/desk-forms.js, or by views/desk-form/receipt.php */
.dk-receipt {
  padding: 22px 24px;
  border: 1px solid rgba(128, 128, 128, 0.38);
  border-left: 3px solid #ea3000;
  border-radius: 12px;
  color: inherit;
}
.dk-receipt strong { display: block; margin-bottom: 6px; font-size: 20px; }
.dk-receipt p { margin: 8px 0 0; line-height: 1.6; }
.dk-receipt .dk-actions { margin-top: 16px; }
.dk-ticket {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #ea3000;
}
.dk-small { font-size: 13px; opacity: 0.75; }
.dk-problems { margin: 10px 0 0; padding-left: 18px; list-style: disc; }
.dk-receipt a, .dk-link { color: #ea3000; text-decoration: underline; text-underline-offset: 3px; }
.dk-receipt-shell { max-width: 720px; margin: 0 auto; }

@media (max-width: 640px) {
  .dk-grid { grid-template-columns: 1fr; }
  .dk-actions { flex-direction: column; align-items: stretch; }
  .dk-actions .dk-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dk-form input, .dk-form select, .dk-form textarea, .dk-btn { transition: none; }
}

/* /support: the ticket number in support-ask.js's receipt (this sheet rides
   there with the page's no-script copy of the support form) */
.sp-ask-receipt .sp-ask-ticket {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #ea3000;
}

/* /upfit: the page leaves its body text black and colours each element itself,
   so the form takes the page's ink — light on the dark wizard, dark on the
   light theme's card (theme-light.v1.css sets --ink for .upfit-page). Without
   it the labels, the hint and the typed text were black on the dark wizard. */
.uf-desk-form { color: var(--ink, inherit); }

/* /upfit's contact step: the wizard's summary line above the native form */
.uf-desk-form #uf-eve-summary { margin: 0 0 16px; font-size: 14px; line-height: 1.5; opacity: 0.8; }
.uf-desk-form--plain { margin-top: 28px; }
