/* Contact page (/contact-us). Builds on account.css (fields, buttons, labels).
   Desktop: form + sidebar sit side by side and fit above the fold on a
   13" MacBook (~1440×713 viewport); phones stack the sidebar under the form. */

.ct { min-height: 0; padding-top: clamp(28px, 5vh, 56px); padding-bottom: 72px; }
.ct-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-page .acct-title { margin-bottom: 8px; }
.contact-page .acct-lede { margin-bottom: 22px; max-width: 560px; }

/* ---------- Form ---------- */
.ct-form { margin: 0; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ct-field { margin-bottom: 14px; }

.ct-field select,
.ct-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  font: 15px/1.45 'Open Sans', sans-serif;
  padding: 12px 13px;
  outline: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.ct-field textarea { display: block; resize: vertical; min-height: 120px; }
.ct-field textarea::placeholder { color: var(--faint); }
.ct-field select:focus,
.ct-field textarea:focus { border-color: var(--blue); background: rgba(81,100,246,.08); box-shadow: 0 0 0 3px rgba(81,100,246,.18); }

.ct-select { position: relative; display: block; }
.ct-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.ct-select select:invalid { color: var(--faint); }
.ct-select select option { background: #111; color: #fff; }
.ct-select::after {
  content: '';
  position: absolute; right: 16px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ct-field.has-error input,
.ct-field.has-error select,
.ct-field.has-error textarea { border-color: rgba(252,95,173,.7); }
.ct-err { display: block; margin-top: 6px; font-size: 12px; color: #ffb3d6; }

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

.ct-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.contact-page .ct-submit .acct-btn { padding: 13px 26px; font-size: 14px; }
.ct-note { font-size: 12px; color: var(--faint); }

/* ---------- Sent ---------- */
.ct-sent {
  max-width: 520px;
  margin-top: 18px;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}
.ct-sent h2 { margin: 0 0 10px; font-size: 22px; font-weight: 400; color: var(--paper); }
.ct-sent p { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ct-sent-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Sidebar ---------- */
.ct-side { display: grid; gap: 14px; }
.ct-card {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.contact-page .ct-card .acct-label { margin-bottom: 12px; }

.ct-steps { margin: 0; padding: 0; list-style: none; counter-reset: ct; display: grid; gap: 12px; }
.ct-steps li {
  counter-increment: ct;
  position: relative;
  padding-left: 34px;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.ct-steps li::before {
  content: counter(ct, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 11px; color: var(--blue);
}
.ct-steps b { display: block; font-weight: 500; color: var(--paper); }

.contact-page .ct-mail {
  display: inline-block;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact-page .ct-mail:hover { color: #c7cdff; border-color: var(--blue); }
.ct-small { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--faint); }

.ct-card--links a {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px; text-decoration: none;
  transition: color .25s var(--ease);
}
.ct-card--links .acct-label + a { border-top: 0; padding-top: 0; }
.ct-card--links a:hover { color: #c7cdff; }

/* Short laptop screens: tighten so the whole form and sidebar clear the fold */
@media (min-width: 861px) and (max-height: 800px) {
  .ct { padding-top: 24px; }
  .contact-page .acct-title { font-size: 38px; }
  .contact-page .acct-lede { margin-bottom: 16px; font-size: 14px; }
  .ct-field { margin-bottom: 11px; }
  .ct-field input, .ct-field select, .ct-field textarea { padding-top: 10px; padding-bottom: 10px; }
  .ct-field textarea { min-height: 104px; }
  .ct-card { padding: 16px 20px; }
  .ct-steps { gap: 9px; }
}

@media (max-width: 860px) {
  .ct-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; }
}
