/* ============================================================
   XQCHESS – Contact page (contact.ejs). Loaded after auth.css,
   which provides .field / .field-input / .btn-auth / .auth-error.
   ============================================================ */

.ct-page { max-width: 1100px; padding-top: 4rem; padding-bottom: 4rem; }
.ct-head { max-width: 720px; margin-bottom: 2rem; }
.ct-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text); line-height: 1.2; margin: .25rem 0 .9rem;
}
.ct-lead { color: var(--text-dim); font-size: 16px; line-height: 1.75; margin: 0; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }

.ct-card {
  background: var(--ground-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.ct-card .auth-error { margin-bottom: 1.1rem; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ct-select { cursor: pointer; }
.ct-textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.ct-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ct-meta .field-hint { white-space: nowrap; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.ct-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-privacy { font-size: 12px; color: var(--text-faint); line-height: 1.6; margin: 0; text-align: center; }
.ct-privacy a { color: var(--text-dim); }

/* Sent state */
.ct-sent { text-align: center; padding: 1.5rem 0; }
.ct-sent-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
  color: var(--jade-l); border: 1.5px solid var(--jade-l); background: rgba(61,158,136,.15);
}
.ct-sent h2 { font-size: 1.3rem; color: var(--text); margin: 0 0 .6rem; }
.ct-sent p  { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin: 0 auto 1.5rem; max-width: 440px; }
.ct-again { display: inline-block; width: auto; padding-left: 1.75rem; padding-right: 1.75rem; text-decoration: none; }

/* Side column */
.ct-side { display: grid; gap: 1rem; }
.ct-box { background: var(--ground-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.25rem; }
.ct-box h2 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 .6rem; }
.ct-box p  { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin: 0; }
.ct-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ct-links a { font-size: 14px; color: var(--text-dim); text-decoration: none; line-height: 1.5; }
.ct-links a:hover { color: var(--text); text-decoration: underline; }
.ct-mail { color: var(--jade-l); font-weight: 600; word-break: break-all; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-page { padding: 2.5rem 1rem 3rem; }
  .ct-card { padding: 1.5rem 1.1rem; }
  .ct-row { grid-template-columns: 1fr; }
}
