
/* === Contact.css === */

/* Make the main container full width and dark mode friendly */
/* Fix HTML root padding/margin */
html, h2 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Share Tech Mono', monospace;
}

/* Optional: constrain content (form) width inside main */
main > form#contactForm {
  max-width: 700px;  /* keeps your form readable */
  width: 100%;       /* responsive */
  margin: 0 auto;    /* center horizontally */
  font-family: 'Share Tech Mono', monospace;
}

/* === Input and Textarea Styling === */
form#contactForm input,
form#contactForm textarea {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--text);
  border-radius: 6px;
  background-color: var(--bg-light);
  color: var(--text);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  font-family: 'Share Tech Mono', monospace;
}

form#contactForm textarea {
  resize: vertical;
  min-height: 150px;
  width: 100%;
  font-family: 'Share Tech Mono', monospace;
}

form#contactForm input:focus,
form#contactForm textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0, 0, 0, 0.05);
  font-family: 'Share Tech Mono', monospace;
}

/* Inputs in dark mode will automatically pick up var(--bg-light) */
body.dark form#contactForm input:focus,
body.dark form#contactForm textarea:focus {
  background-color: rgba(255, 255, 255, 0.05);
}

/* === Submit Button === */
form#contactForm button {
  font-family: 'Architects Daughter', cursive;
  padding: 0.75rem;
  border: 1px solid var(--text);
  background-color: var(--text);
  color: var(--bg);
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-family: 'Share Tech Mono', monospace;
}

form#contactForm button:hover {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  font-family: 'Share Tech Mono', monospace;
}

/* === Cloudflare Turnstile === */
.cf-turnstile {
  max-width: 320px;
  margin: 1em auto;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--bg-light);
  transition: background-color 0.3s ease;
}

/* === Form Messages / Error Highlighting === */
.input-error {
  border: 2px solid #e74c3c !important;
  background: #fff0f0 !important;
  font-family: 'Share Tech Mono', monospace;
}

/* === Footer Links (specific override for contact page) === */
#siteFooter .footer-links a {
  color: var(--text);
  transition: color 0.3s ease;
  font-family: 'Share Tech Mono', monospace;
}

#siteFooter .footer-links a:hover {
  color: var(--accent);
}


/* === Honeypot Field === */
.honeypot {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* === Responsive Adjustments === */
@media (max-width: 600px) {
  form#contactForm {
    width: 100%;
  }

  form#contactForm textarea {
    min-height: 120px;
  }
}

/* === Contact Page Dark Mode Fix === */
html {
  background-color: var(--bg);
}

/* ===================================================
   Footer
=================================================== */

/* Footer link color override to fix blue color issue */
#siteFooter .footer-links a {
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

#siteFooter .footer-links a:hover {
  color: var(--text);
}

/* Footer copyright text */
#siteFooter .footer-copy {
  color: #888888; /* medium grey */
  transition: color 0.3s ease;
  font-family: 'Share Tech Mono', monospace;
}
