/*
 * Contact page styles (SoL).
 *
 * Self-contained component vocabulary for the public contact form:
 * .contact-card + .contact-field / .contact-label / .contact-input +
 * .contact-submit, themed with the SoL palette tokens (body.theme-sol,
 * generated from admin/themes/sol.theme.json). The page keeps SoL's core
 * chrome -- the shared animated space background (background.css) and the fixed
 * bottom nav (nav.css) -- so the whole surface reads as SoL.
 *
 * Note: the card shares its visual language with the auth login form by design
 * (same palette tokens), but owns its own class names so it has no dependency
 * on the auth/admin framework stylesheet.
 *
 * Responsive: fluid card width; bottom padding clears the (shrinking) fixed nav.
 */

body {
  min-height: 100vh;
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text-primary);
}

.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 140px; /* bottom clears the 100px fixed nav */
}

/* Card -------------------------------------------------------------------- */
.contact-card {
  width: 100%;
  max-width: 460px;
  padding: 18px 20px 20px;
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
 /*  background: var(--color-surface-tool);  */
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.contact-head {
  font-family: Ethnocentric, "/assets/fonts/sol_rg.otf";
  display: flex;
  justify-content: left;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-default);
}
.contact-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text-strong);
}
.contact-sub {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.contact-body {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

/* Fields ------------------------------------------------------------------ */
.contact-field { display: grid; gap: 6px; }
.contact-label { color: var(--color-text-muted); font-size: 12px; }

.contact-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text-primary);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.contact-input::placeholder {
  color: var(--color-text-muted);
}

.contact-input:hover,
.contact-input:focus,
.contact-input:focus-visible {
  outline: none;
  border-color: rgba(var(--color-accent-rgb), 0.72);
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(var(--color-accent-rgb), 0.16),
    0 0 16px rgba(var(--color-accent-rgb), 0.12);
}

.contact-input--area {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
/* Keep Chrome/Safari autofill on-theme (dark) instead of a white block. */
.contact-input:-webkit-autofill,
.contact-input:-webkit-autofill:hover,
.contact-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text-primary);
  box-shadow: 0 0 0 1000px var(--color-surface-2) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.contact__error {
  color: var(--color-status-error);
  font-size: 12px;
}

/* Banners ------------------------------------------------------------------ */
.contact__banner {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid transparent;
}
.contact__banner--ok {
  color: var(--color-text-soft);
  background: rgba(var(--color-accent-rgb), 0.14);
  border-color: rgba(var(--color-accent-rgb), 0.5);
}
.contact__banner--err {
  color: #ffd7ea;
  background: color-mix(in oklab, var(--color-status-error) 20%, transparent);
  border-color: var(--color-status-error);
}

/* Turnstile widget: centered within the card. */
.cf-turnstile {
  margin-top: 2px;
  display: flex;
  justify-content: center;
}

/* Actions / submit -------------------------------------------------------- */
.contact-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.contact-submit {
  border: 1px solid var(--color-border-subtle);
  background: transparent;
  color: var(--color-text-primary);
  border-radius: 999px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.contact-submit:hover {
  /* Text turns the nav's Steel Pink on hover (matches nav.css --nav-accent). */
  color: #cb3ed4;
  border-color: rgba(var(--color-accent-rgb), 0.55);
  box-shadow:
    0 0 0 2px rgba(var(--color-accent-rgb), 0.18),
    0 0 18px rgba(var(--color-accent-rgb), 0.18);
}

.contact-submit:active { transform: translateY(1px); }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* Tablet */
@media (max-width: 768px) {
  .contact { padding: 32px 18px 110px; }
}
/* Phone */
@media (max-width: 480px) {
  .contact { padding: 24px 14px 92px; }
  .contact-card { padding: 16px 16px 18px; }
}
