/* M IN support: the contact form on sayim.in/support. Builds on site.css tokens. */
.contact { padding: clamp(20px, 3vw, 32px); }
.contact-h { font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); margin: 0 0 6px; }
.contact-lead { color: var(--text-2); margin: 0 0 6px; max-width: 52ch; }
.contact .field { display: block; margin-top: 18px; }
.contact .field > span:first-child { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.contact .input, .contact .select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 13px 14px; min-height: 52px; appearance: none; -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact .select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.contact textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
.contact .input:focus, .contact .select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--coral-soft); }
.contact .field.has-error .input, .contact .field.has-error .select, .contact .field.has-error .file-drop { border-color: var(--coral); }
.contact .error { display: none; color: var(--coral); font-size: 0.88rem; margin-top: 6px; }
.contact .field.has-error .error { display: block; }
.contact-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.file-drop {
  display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 16px; min-height: 56px;
  border: 1.5px dashed var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 0.95rem;
}
.file-drop:hover { border-color: var(--text); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--coral-soft); }
.file-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--border); border-radius: 14px; }
.file-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--chip-bg); }
.file-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { font: inherit; background: none; border: 0; padding: 8px 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.form-status { margin: 12px 0 0; color: var(--coral); font-size: 0.95rem; min-height: 1.4em; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.contact-done { padding: 8px 0 0; }
.contact-done h3 { font-size: 1.5rem; margin: 0 0 6px; }
.contact-done .ticket-id { color: var(--coral); font-weight: 700; margin-left: 6px; }
.contact-done h3:focus { outline: none; }
.contact-done p { color: var(--text-2); }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); margin-bottom: 12px; }
.done-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
