/* Contact — terminal form + send simulation + success state.
   Ported from "Contact - Tiston.dc.html". */

@keyframes ct-pop { 0% { transform: scale(.7); opacity: 0 } 60% { transform: scale(1.08) } 100% { transform: scale(1); opacity: 1 } }

.ct-wrap {
  flex: 1 1 auto;
  padding: 16px 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  align-content: center;
}

/* left column */
.ct-left h1 { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1.04; letter-spacing: -.02em; color: var(--ink-050); margin: 18px 0 20px; }
.ct-left p { font-size: 17px; line-height: 1.6; color: var(--ink-200); max-width: 420px; margin: 0 0 32px; }
.ct-facts { display: flex; flex-direction: column; gap: 18px; }
.ct-fact { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; }
.ct-fact__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 12px var(--mint-500); }
.ct-fact__arrow { color: var(--mint-300); }
.ct-fact--live { color: var(--ink-100); }
.ct-fact__muted { color: var(--ink-300); }

/* right column — terminal card */
.ct-card { border: 1px solid var(--ink-700); border-radius: 12px; background: #0a0d12; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.ct-card__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--ink-800); background: #0c1016; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: var(--red-500); } .dot--y { background: var(--amber-500); } .dot--g { background: var(--mint-500); }
.ct-card__title { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); margin-left: 8px; }

.ct-form { padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 15px; }
.ct-form label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 8px; }
.ct-field {
  width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  color: var(--ink-050); background: #0c1016; border: 1px solid #232c38; border-radius: 6px;
  padding: 13px 14px; transition: all .12s ease;
}
textarea.ct-field { resize: vertical; }
.ct-field::placeholder { color: #4a5564; }
.ct-field:focus { outline: none; border-color: var(--mint-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint-500) 22%, transparent); }

.ct-submit {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; color: var(--ink-950);
  background: var(--mint-500); border: 1px solid var(--mint-500); border-radius: 6px; padding: 14px 22px;
  cursor: pointer; font-weight: 600; transition: all .12s ease;
  display: flex; align-items: center; gap: 10px; justify-content: center;
}
.ct-submit:hover {
  background: var(--mint-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint-500) 28%, transparent),
              0 0 40px color-mix(in srgb, var(--mint-500) 32%, transparent);
}
.ct-submit:disabled { opacity: .8; cursor: default; box-shadow: none; }
.ct-log { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; color: var(--ink-300); min-height: 0; }
.ct-log .ok { color: var(--mint-500); } .ct-log .step { color: var(--ink-300); }

/* success view */
.ct-sent { padding: 64px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.ct-sent__check {
  animation: ct-pop .5s cubic-bezier(.2,.8,.3,1.2) both;
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--mint-500) 50%, transparent);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--mint-500) 12%, transparent);
  color: var(--mint-500); font-size: 34px; line-height: 1;
}
.ct-sent h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink-050); margin: 0; }
.ct-sent p { font-size: 15px; line-height: 1.6; color: var(--ink-200); max-width: 340px; margin: 0; }
.ct-sent__again { font-family: var(--font-mono); font-size: 13px; color: var(--mint-300); background: transparent; border: 1px solid var(--ink-600); border-radius: 6px; padding: 11px 18px; cursor: pointer; margin-top: 8px; }
.ct-sent__again:hover { border-color: var(--mint-500); }

@media (max-width: 860px) {
  .ct-wrap { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 72px; }
  .ct-left h1 { font-size: 40px; }
}
