/* songco.de/contact: the contact form, with the other ways to reach us
 * beside it.
 *
 * Loaded after /blog/blog.css and built on its tokens. Dark only, and the
 * accent is for the one primary action. Fields are 16px on narrow screens so
 * iOS has no reason to zoom when one takes focus.
 */

.ct-hero { padding-bottom: 40px; }
.ct [hidden] { display: none !important; }
.ct .btn { border: 0; font-family: inherit; cursor: pointer; }

.ct {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 96px;
}
@media (min-width: 900px) {
  .ct { grid-template-columns: minmax(0, 620px) minmax(0, 280px); justify-content: space-between; gap: 64px; }
  .ct-form, .ct-sent { grid-column: 1; grid-row: 1; align-self: start; }
  .ct-aside { grid-column: 2; grid-row: 1; padding-top: 4px; }
}

/* ——— the form ——— */

.ct-form, .ct-sent {
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ct-form { display: flex; flex-direction: column; gap: 20px; }

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-field > span, .ct-topics legend { color: var(--text-2); font-size: 13px; font-weight: 500; }

.ct-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.ct-input:hover { background: var(--surface-3); }
.ct-input:focus { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ct-input[aria-invalid='true'] { box-shadow: inset 0 0 0 1px rgba(255, 122, 112, 0.6); }
.ct-message { height: auto; min-height: 168px; padding: 12px 14px; line-height: 1.55; resize: vertical; }

/* topic chips: radios that look like the roadmap's sort buttons */
.ct-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-topics legend { padding: 0; margin-bottom: 8px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ct-chip span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.ct-chip:hover span { background: var(--surface-3); color: var(--text); }
.ct-chip input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--text); }
.ct-chip input:focus-visible + span { box-shadow: var(--focus); }

.ct-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-error { margin: -4px 0 0; color: #ff7a70; font-size: 13.5px; }
.ct-error:empty { display: none; }

.ct-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-count { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ct-actions .btn { min-width: 148px; }
.ct-actions .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }

/* ——— sent ——— */

.ct-sent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  animation: ct-in var(--dur-2) var(--ease) both;
}
.ct-sent p { margin: 0; }
.ct-sent-h { color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.ct-sent strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ct-sent .btn { margin-top: 10px; }
@keyframes ct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ——— other ways ——— */

.ct-aside { display: flex; flex-direction: column; gap: 28px; }
.ct-way h2 { margin: 0 0 6px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ct-way p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.ct-way a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ct-way a:hover { text-decoration-color: var(--text); }

@media (max-width: 600px) {
  .ct { gap: 40px; padding-bottom: 64px; }
  .ct-form, .ct-sent { padding: 18px; border-radius: var(--r-lg); }
  .ct-row { grid-template-columns: 1fr; }
  .ct-input { font-size: 16px; height: 48px; }
  .ct-message { min-height: 180px; }
  .ct-actions .btn { flex: 1; height: 48px; }
  .ct-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-sent { animation: none; }
}
