/* =====================================================================
   TTF | "Contact us" (/contact) — page styles only.
   Only the message form, in the middle of the page (no company details).
   Phones ≤600 · tablets ≤1023 · desktop ≥1024
   ===================================================================== */

.ct-wrap { max-width: 900px; }

/* The form */
.ct-box { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.ct-form, .ct-done { scroll-margin-top: calc(var(--nav-h) + var(--hero-min) + 12px); }
.ct-box h2 { margin: 0 0 4px; font-size: 22px; }
.ct-req { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.ct-errors {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--red-soft);
  border: 1px solid rgba(255, 107, 107, .35); font-size: 14.5px;
}
.ct-errors ul { margin: 6px 0 0; padding-inline-start: 20px; }

.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ct-wide { grid-column: 1 / -1; }
.ct-f label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.ct-f label small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ct-f input, .ct-f select, .ct-f textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); transition: border-color .2s, background .2s;
}
.ct-f select { cursor: pointer; }
.ct-f select option, .ct-f select optgroup { color: #131815; background: #fff; }
.ct-f textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.ct-f input:focus, .ct-f select:focus, .ct-f textarea:focus {
  outline: none; border-color: var(--g-bright); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(93, 187, 70, .2);
}
.ct-f [aria-invalid="true"] { border-color: var(--red); }
.ct-f input[dir="ltr"] { text-align: left; }
.ct-f input::placeholder, .ct-f textarea::placeholder { color: rgba(242, 240, 233, .34); opacity: 1; }   /* examples: faded */
.ct-f select:has(option[value=""]:checked) { color: rgba(242, 240, 233, .5); }
.ct-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* The order number appears, and is asked, only for "support for a product I bought".
   A browser that does not know :has() simply shows it always. */
@supports selector(:has(*)) {
  .ct-order { display: none; }
  .ct-form:has(#c-topic option[value="support"]:checked) .ct-order { display: block; }
}

.ct-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 20px; cursor: pointer; }
.ct-agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--green); flex: none; }
.ct-agree a { color: var(--yellow); }
.ct-go { width: 100%; min-height: 54px; font-size: 17px; }

/* After sending */
.ct-done { text-align: center; padding: 36px 26px 30px; }
.ct-done-ico {
  display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; margin-bottom: 14px;
  background: var(--green-soft); border: 2px solid rgba(93, 187, 70, .5); color: var(--g-bright);
}
.ct-done-ico svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ct-done h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.ct-done p { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 520px; margin: 0 auto; }
.ct-ref-box {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 14px; padding: 12px 26px;
  border-radius: 16px; background: rgba(255, 206, 57, .08); border: 1px dashed rgba(255, 206, 57, .45);
}
.ct-ref-box span { font-size: 13.5px; color: var(--muted); }
.ct-ref-box strong { font-size: clamp(20px, 3vw, 26px); color: var(--yellow); letter-spacing: .06em; user-select: all; }
.ct-done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 600px) {
  .ct-fields { grid-template-columns: minmax(0, 1fr); }
  .ct-done-actions .btn { flex: 1 1 100%; }
  .ct-box { padding: 18px; }
}
