/* Contact page — uses design tokens from index.css. */

.nn-contact-page {
  max-width: 720px;
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-3);
}

/* Single-column form layout (the info aside was removed).
   The form stays centered and at a comfortable reading width. */
.nn-contact-grid {
  display: block;
}

/* ── Form card ───────────────────────────────────────── */
.nn-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  border-radius: 20px;
  padding: var(--space-4);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.nn-form-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink, #0f172a);
}
.nn-form-head p {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: var(--ink-2, #475569);
  line-height: 1.55;
}

.nn-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nn-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0f172a);
  letter-spacing: -0.005em;
}

.nn-form input[type="text"],
.nn-form input[type="email"],
.nn-form select,
.nn-form textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink, #0f172a);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  border-radius: 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  box-sizing: border-box;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.nn-form textarea { min-height: 140px; line-height: 1.55; font-family: inherit; }
.nn-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}

.nn-form input::placeholder,
.nn-form textarea::placeholder {
  color: var(--ink-2, #64748b);
  opacity: 0.85;
}

.nn-form input:focus,
.nn-form select:focus,
.nn-form textarea:focus {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ── Submit button ──────────────────────────────────── */
.nn-form button.nn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  margin-top: var(--space-2);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.nn-form button.nn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
  filter: brightness(1.04);
}
.nn-form button.nn-cta:active { transform: scale(0.98); }
.nn-form button.nn-cta:disabled {
  background: rgba(15, 23, 42, 0.18);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nn-form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--ink-2, #475569);
  text-align: center;
}
.nn-form-status.is-success { color: #059669; }
.nn-form-status.is-error   { color: #dc2626; }

/* ── Side info cards ────────────────────────────────── */
.nn-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nn-contact-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  border-radius: 16px;
  padding: 18px 20px;
}
.nn-contact-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint, #94a3b8);
}
.nn-contact-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #475569);
}
.nn-contact-card p:last-child { margin-bottom: 0; }
.nn-contact-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent, #2563eb);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.nn-contact-link:hover { border-bottom-color: var(--accent, #2563eb); }

.nn-contact-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2, #475569);
  line-height: 1.5;
}
.nn-contact-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: baseline;
}
.nn-contact-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent, #2563eb);
  font-size: 11px;
  font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────── */
.nn-foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-4);
  font-size: 12px;
  color: var(--ink-faint, #94a3b8);
  text-align: center;
}

/* ── Submit feedback animation ──────────────────────── */
.submitting { animation: submitPulse 0.6s ease-in-out; }
@keyframes submitPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Mobile tweaks ───────────────────────────────────── */
@media (max-width: 540px) {
  .nn-form { padding: 18px; border-radius: 16px; }
  .nn-contact-card { padding: 16px 18px; border-radius: 14px; }
}
