/* Page scaffold */
:root {
  --bg: #e9eff1;
  --card: #ffffff;
  --text: #2c3e50;
  --muted: #6b7a89;
  --primary: #6c5ce7;
  --primary-pressed: #5b4dd2;
  --ring: rgba(108, 92, 231, 0.3);
  --radius: 12px;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Container */
.contact-page {
  display: grid;
  place-items: start center;
  padding: clamp(24px, 3vw, 48px) 16px 64px;
}

.contact-card {
  width: min(800px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: clamp(20px, 3vw, 36px);
}

.contact-card h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.lede {
  color: var(--muted);
  margin: 0 0 22px;
}

/* Form */
.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid #d7dee3;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

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

/* Checkbox */
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  margin: 2px 0 8px;
  color: var(--text);
}

.checkbox input {
  width: 18px;
  height: 18px;
}

/* Button */
.button {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: transform .02s ease, background .15s ease;
}

.button:active { transform: translateY(1px); }
.button:hover  { background: var(--primary-pressed); }

/* Alt contact methods */
.alt-contacts {
  margin-top: 26px;
  border-top: 1px dashed #d9e2e7;
  padding-top: 18px;
  color: var(--muted);
}

.alt-lede { margin: 0 0 8px; }

.alt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 0.98rem;
}

.alt-item a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hide honeypot from users and AT */
.hp-field {
  position: absolute !important;
  left: -99999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Screen-reader status region */
.sr-status {
  position: relative;
  margin-bottom: 12px;
  min-height: 1em;
  color: #1b6e1b; /* Will appear green when success text is injected */
  font-weight: 700;
}

/* Small screens */
@media (max-width: 600px) {
  .contact-card {
    padding: 18px;
  }
}

/* form grid helpers – familiar two/three column at desktop */
.grid-2 { display:grid; gap:14px; grid-template-columns: 1fr 1fr; }
.grid-3 { display:grid; gap:14px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 780px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* select + inputs share base look */
select {
  width: 100%;
  border: 1px solid #d7dee3;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%236b7a89'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
select:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

/* microcopy disclosure for referral */
.microcopy { margin: 6px 0 2px; }
.microcopy summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap:8px;
  color: var(--muted); font-weight: 700;
}
.microcopy summary::-webkit-details-marker { display: none; }
.microcopy p { margin: 8px 0 0; color: var(--muted); }

.next-steps { margin-top: 10px; color: var(--muted); font-size: .95rem; }

.service-block {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e0e6eb;
  border-radius: var(--radius);
  background: #fafbfc;
}
.service-block h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--primary);
}
.contact-pref legend {
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-pref label {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  gap: 6px;
  cursor: pointer;
}

/* service blocks */
.service-block {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e0e6eb;
  border-radius: var(--radius);
  background: #fafbfc;
}
.service-block h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--primary);
}

/* dropdowns match inputs */
select {
  width: 100%;
  border: 1px solid #d7dee3;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%236b7a89'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
select:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

/* referral note disclosure */
.microcopy { margin: 6px 0 2px; }
.microcopy summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap:8px;
  color: var(--muted); font-weight: 700;
}
.microcopy summary::-webkit-details-marker { display: none; }
.microcopy p { margin: 8px 0 0; color: var(--muted); }