/* Styles for /contact/.
   In its own file rather than a component <style> block because almost every
   rule below is keyed off a class on <body> (.light-landing), which Svelte's
   scoped styles cannot reach. Loaded from the page's <svelte:head>, the same
   way usecases.css and features.css are. */

body.contact-page {
  background: var(--bg-dark-surface);
}

.contact-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
}

.contact-row .contact-field {
  flex: 1;
  min-width: 0;
}

.contact-field {
  margin-bottom: 1.25rem;
}

.contact-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-field .required {
  color: #e5484d;
  margin-left: 2px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--text-secondary);
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input[aria-invalid='true'],
.contact-field textarea[aria-invalid='true'] {
  border-color: #e5484d;
}

/* Bots fill in every field they can see; people never see this one.
   Hidden with position/opacity rather than display:none because some
   bots skip anything display:none. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-submit {
  width: 100%;
  padding: 0.85rem 1.75rem;
  background: var(--white-button);
  border: none;
  border-radius: 8px;
  color: #000000;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-submit:hover:not(:disabled) {
  background: #ffffff;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.contact-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-status {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-status-error {
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.35);
  color: #ff9ea1;
}

.contact-success {
  text-align: center;
  padding: 1rem 0;
}

.contact-success h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.contact-success p {
  margin: 0;
  color: var(--text-secondary);
}

/* Light mode. The toggle writes body.light-landing; the theme IIFE in the root
   +layout.svelte restores it on load.

   NOTE: .light-landing does NOT flip the variables in variables.css — that is a
   separate theme ([data-theme="light"]) used by the app. So every colour below
   has to be stated outright; reusing a var() here would silently stay dark.
   styles.css already covers body, navbar and footer, but not
   .page-title/.page-subtitle, which no landing page uses. */
/* The navbar is NOT restyled here. The body carries
   "light-landing light-top", exactly like /da/usecases and /da/industries,
   which gives every light-topped subpage the one shared menu: solid #1a202c,
   white links, white logo. An earlier version of this page re-coloured the nav
   itself and inverted the logo, which is why its menu looked different from
   every other page. */

body.light-landing .page-title {
  color: #1a202c;
}

body.light-landing .page-subtitle,
body.light-landing .contact-field label,
body.light-landing .contact-success p {
  color: #4a5568;
}

body.light-landing .contact-success h2 {
  color: #1a202c;
}

body.light-landing .contact-note {
  color: #718096;
}

body.light-landing .contact-note a {
  color: #4a5568;
}

body.light-landing .contact-submit {
  background: #1a1a1a;
  color: #ffffff;
}

body.light-landing .contact-submit:hover:not(:disabled) {
  background: #000000;
}

body.light-landing .contact-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-landing .contact-field input,
body.light-landing .contact-field textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

body.light-landing .contact-status-error {
  background: rgba(229, 72, 77, 0.08);
  color: #b4282c;
}

@media (max-width: 600px) {
  .contact-container {
    padding: 6rem 1.25rem 3rem;
  }
  .contact-card {
    padding: 1.5rem;
  }
  .contact-row {
    flex-direction: column;
    gap: 0;
  }
}
