/* ─── PIONEER VALLEY PROPERTIES ─── */
/* Engineering paper aesthetic       */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", Courier, monospace;
  color: #1a1a1a;
  background-color: #faf8f0;
  background-image:
    linear-gradient(rgba(180, 200, 180, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 200, 180, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─── */

header {
  border-bottom: 2px solid #1a1a1a;
  padding: 24px 32px;
  background-color: rgba(250, 248, 240, 0.95);
}

header .header-inner {
  max-width: 800px;
  margin: 0 auto;
}

header h1 {
  font-size: 1.3em;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

header .tagline {
  font-size: 0.85em;
  color: #555;
  margin-top: 4px;
  font-style: italic;
}

header nav {
  margin-top: 12px;
  font-size: 0.8em;
}

header nav a {
  color: #1a1a1a;
  text-decoration: none;
  margin-right: 20px;
  border-bottom: 1px solid #999;
  padding-bottom: 1px;
}

header nav a:hover {
  border-bottom-color: #1a1a1a;
}

header nav a.active {
  font-weight: 700;
  border-bottom: 2px solid #1a1a1a;
}

/* ─── MAIN ─── */

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 32px;
  width: 100%;
  flex: 1;
}

/* ─── HERO ─── */

.hero {
  border: 2px solid #1a1a1a;
  padding: 32px;
  margin-bottom: 40px;
  background-color: rgba(250, 248, 240, 0.9);
}

.hero h2 {
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}

.hero p {
  margin-top: 12px;
  font-size: 0.9em;
  color: #444;
}

/* ─── FORM ─── */

.form-section {
  margin-bottom: 40px;
}

.form-section h3 {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

label .required {
  color: #8b0000;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  padding: 10px 12px;
  border: 1px solid #1a1a1a;
  background-color: #fff;
  color: #1a1a1a;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-width: 2px;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0 L6 8 L12 0' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group .consent-text {
  font-size: 0.8em;
  line-height: 1.5;
  color: #444;
}

.consent-text a {
  color: #1a1a1a;
  font-weight: 700;
}

button[type="submit"] {
  font-family: "Courier New", Courier, monospace;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 24px;
  border: 2px solid #1a1a1a;
  background-color: #1a1a1a;
  color: #faf8f0;
  cursor: pointer;
  margin-top: 8px;
}

button[type="submit"]:hover {
  background-color: #333;
}

/* ─── HOW IT WORKS ─── */

.how-it-works {
  border: 2px solid #1a1a1a;
  padding: 32px;
  margin-bottom: 40px;
  background-color: rgba(250, 248, 240, 0.9);
}

.how-it-works h3 {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step-number {
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  border: 1px solid #1a1a1a;
  padding: 2px 0;
}

.step-text {
  font-size: 0.9em;
}

/* ─── LEGAL / CONTENT PAGES ─── */

.legal-content {
  background-color: rgba(250, 248, 240, 0.9);
  border: 2px solid #1a1a1a;
  padding: 32px;
}

.legal-content h2 {
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p,
.legal-content li {
  font-size: 0.85em;
  margin-bottom: 10px;
  color: #333;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 12px;
}

.legal-content .effective-date {
  font-style: italic;
  color: #777;
  margin-bottom: 20px;
}

/* ─── THANK YOU ─── */

.thank-you {
  border: 2px solid #1a1a1a;
  padding: 48px 32px;
  text-align: center;
  background-color: rgba(250, 248, 240, 0.9);
}

.thank-you h2 {
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.thank-you p {
  font-size: 0.9em;
  color: #444;
  margin-bottom: 12px;
}

.thank-you .back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.85em;
  color: #1a1a1a;
  font-weight: 700;
  border-bottom: 1px solid #1a1a1a;
  text-decoration: none;
}

/* ─── FOOTER ─── */

footer {
  border-top: 2px solid #1a1a1a;
  padding: 24px 32px;
  font-size: 0.8em;
  color: #555;
  background-color: rgba(250, 248, 240, 0.95);
}

footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

footer .footer-inner p {
  margin-bottom: 4px;
}

footer .footer-links {
  margin-top: 10px;
}

footer .footer-links a {
  color: #1a1a1a;
  text-decoration: none;
  margin-right: 16px;
  border-bottom: 1px solid #999;
  padding-bottom: 1px;
}

footer .footer-links a:hover {
  border-bottom-color: #1a1a1a;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 600px) {
  header {
    padding: 16px 20px;
  }

  header h1 {
    font-size: 1em;
    letter-spacing: 1px;
  }

  main {
    padding: 24px 20px;
  }

  .hero,
  .how-it-works,
  .legal-content,
  .thank-you {
    padding: 20px 16px;
  }

  footer {
    padding: 16px 20px;
  }
}
