/*
 * Shared styles for l4l-contact.html (dark) and l4l-contact2.html (light).
 * Just the form itself, matching the original pages' own colors/layout —
 * no site header, nav, or hero banner.
 */

:root {
  --radius: 3px;
}

/* ---- Theme tokens ---- */

.theme-dark {
  --page-bg: #000000;
  --heading-color: #d3d3d3;
  --intro-color: #d3d3d3;
  --label-color: #a9a9a9;
  --input-border: #c5c5c5;
  --textarea-border: #c5c5c5;
  --btn-border: #000000;
}

.theme-light {
  --page-bg: #ffffff;
  --heading-color: #6b7c93;
  --intro-color: #6b7c93;
  --label-color: #313439;
  --input-border: #c5c5c5;
  --textarea-border: #c5c5c5;
  --btn-border: #c5c5c5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--intro-color);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

body.theme-light {
  padding-top: 0;
}

body.theme-dark {
  padding-top: 0.75rem;
}

img {
  max-width: 100%;
  display: block;
}

.page-inner {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1rem;
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 400;
}

.intro {
  margin: 0 0 2rem;
  color: var(--intro-color);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- l4l-contact2's back button + "contact" wordmark ---- */

.back-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 2px solid #333333;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s;
}

.back-button:hover,
.back-button:focus-visible {
  background: #333333;
  color: #ffffff;
}

.back-row img {
  height: auto;
  width: auto;
}

/* ---- Form ---- */

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.contact-form p {
  margin: 0 0 1rem;
}

.contact-form label {
  display: inline-block;
  width: 100%;
  color: var(--label-color);
  font-weight: 400;
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 0 12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  height: 40px;
}

.contact-form textarea {
  height: 138px;
  padding-top: 10px;
  border-color: var(--textarea-border);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--textarea-border);
  outline-offset: 1px;
}

/* Honeypot — kept off-screen rather than display:none, since some spam
   bots skip fields hidden that way but still fill in anything visually
   positioned off-canvas. Real visitors never see or fill this in. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.submit-btn {
  height: 40px;
  padding: 0 24px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: #f1f1f1;
}

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

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #4caf7d;
}

.form-status.is-error {
  color: #e0715e;
}
