/* LFC Pastor Search — survey form styles
   Brand reference: docs/letterhead/brandSpecs.md */

:root {
  --dark-grey: #575452;
  --light-grey: #f5f5f5;
  --cool-blue: #637074;
  --logo-blue: #8ea5ad;
  --warm-yellow: #dea54f;
  --rich-black: #2b373b;
  --white: #ffffff;
  --accent-line: rgba(222, 165, 79, 0.85);
  --rule: rgba(99, 112, 116, 0.25);
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Roboto+Condensed:wght@300;400;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--light-grey);
  color: var(--dark-grey);
  font-family: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ── Letterhead header ─────────────────────────────────────────── */

.letterhead {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5pt solid var(--accent-line);
  margin-bottom: 2rem;
}

.letterhead img {
  display: block;
  width: 2.5in;
  max-width: 80%;
  height: auto;
}

/* ── Typography ────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: 2rem;
  color: var(--warm-yellow);
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.3rem;
  color: var(--cool-blue);
  margin: 2rem 0 0.5rem;
}

.subtitle {
  font-style: italic;
  color: var(--cool-blue);
  margin: 0 0 1.5rem;
}

.print-link {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.print-link a {
  color: var(--cool-blue);
  text-decoration: none;
  border-bottom: 1px dashed var(--cool-blue);
}
.print-link a:hover { color: var(--rich-black); border-bottom-color: var(--rich-black); }

p { margin: 0 0 1rem; }

/* ── Form structure ────────────────────────────────────────────── */

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--rich-black);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--cool-blue);
  font-style: italic;
}

.required-mark {
  color: var(--warm-yellow);
  margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark-grey);
  background-color: var(--white);
  border: 1px solid var(--rule);
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--logo-blue);
  box-shadow: 0 0 0 3px rgba(142, 165, 173, 0.25);
}

textarea {
  min-height: 5rem;
  resize: vertical;
}

/* ── Rating scale ──────────────────────────────────────────────── */

.ratings {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.rating-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}

.rating-row .rating-label {
  font-size: 0.95rem;
  color: var(--dark-grey);
}

.rating-row .rating-scale {
  display: flex;
  gap: 0.15rem;
}

.rating-scale label {
  position: relative;
  cursor: pointer;
}

.rating-scale input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-scale .bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cool-blue);
  background-color: var(--white);
  transition: background-color 0.1s, color 0.1s, border-color 0.1s;
}

.rating-scale label:hover .bubble {
  border-color: var(--logo-blue);
}

.rating-scale input[type="radio"]:checked + .bubble {
  background-color: var(--logo-blue);
  color: var(--white);
  border-color: var(--logo-blue);
}

.rating-scale input[type="radio"]:focus-visible + .bubble {
  box-shadow: 0 0 0 3px rgba(142, 165, 173, 0.35);
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--cool-blue);
  margin: 0.25rem 0 0.5rem;
}

/* ── Submit ────────────────────────────────────────────────────── */

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

button[type="submit"] {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  background-color: var(--rich-black);
  color: var(--warm-yellow);
  border: none;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  border-radius: 2px;
}

button[type="submit"]:hover { background-color: var(--cool-blue); color: var(--white); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

.status-text {
  font-size: 0.9rem;
  color: var(--cool-blue);
  font-style: italic;
}
.status-text.error { color: #a64124; font-style: normal; }

/* ── Footer ────────────────────────────────────────────────────── */

.footer {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.75rem;
  color: var(--cool-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Thank-you page ────────────────────────────────────────────── */

.thank-you {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.thank-you h1 { margin-bottom: 1rem; }
.thank-you p { max-width: 38ch; margin-left: auto; margin-right: auto; }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .rating-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .rating-scale .bubble { width: 2.25rem; height: 2.25rem; }
}
