/* Form pages only. Do not restyle the official bar, header, logo, pills, or menu. */

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: #171717;
  color: #fff;
  padding: 10px 14px;
}
.skip:focus { top: 12px; }

body {
  margin: 0;
  background: #f5f4f0;
  color: #171717;
  font-size: 17px;
  line-height: 1.6;
}

.response-intro { padding: 28px 0 8px; }
.response-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.05;
  font-weight: 400;
}
.response-intro .eyebrow {
  margin: 0 0 10px;
  color: var(--red-text, #9c1c12);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.response-intro .scripture {
  margin: 0 0 16px;
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}
.response-intro .scripture cite {
  display: block;
  margin-top: 6px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-style: normal;
  color: #545454;
}
.response-intro p { margin: 0 0 14px; max-width: 42rem; }
.response-intro .routing { color: #3f3f3f; font-size: 0.95rem; }
.response-core {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--red, #d42a1b);
  background: #fff;
  font-weight: 700;
}

.response-form { margin: 12px 0 8px; }
.response-form .grid { display: grid; gap: 14px 18px; }
.response-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.response-form legend,
.response-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1rem;
}
.response-form .field-help,
.response-form .privacy-note {
  margin: 0 0 10px;
  color: #3f3f3f;
  font-size: 0.95rem;
}
.response-form .privacy-note {
  padding: 12px 14px;
  border: 1px solid #d8d5cd;
  border-radius: 8px;
  background: #fff;
}
.response-form .required { color: var(--red-text, #9c1c12); }
.response-form,
.response-form .grid,
.response-form .field,
.response-form input,
.response-form select,
.response-form textarea {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.response-form input:not([type]),
.response-form input[type="text"],
.response-form input[type="email"],
.response-form input[type="tel"],
.response-form input[type="url"],
.response-form input[type="number"],
.response-form select,
.response-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #8a867e;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.response-form textarea { min-height: 140px; resize: vertical; }
.response-form textarea.short { min-height: 96px; }
.response-form input:disabled,
.response-form textarea:disabled {
  background: #eceae4;
  color: #3f3f3f;
}
.response-form .choice,
.response-form .type-switch label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d8d5cd;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}
.response-form .choice input,
.response-form .type-switch input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
}
.response-form .choice span,
.response-form .type-switch span {
  min-width: 0;
  flex: 1 1 auto;
}
.response-form .type-switch { display: grid; gap: 8px; }
.response-form .type-switch label.is-selected,
.response-form .choice:has(input:checked),
.response-form .type-switch label:has(input:checked) {
  border-color: var(--red, #d42a1b);
  box-shadow: inset 0 0 0 1px var(--red, #d42a1b);
}
.response-form .choices { display: grid; gap: 8px; }
.response-form .field-error {
  display: block;
  margin-top: 6px;
  color: var(--red-text, #9c1c12);
  font-size: 0.95rem;
  font-weight: 700;
}
.response-form [aria-invalid="true"] { border-color: var(--red, #d42a1b); }
.response-form .error-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--red, #d42a1b);
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font-weight: 700;
}
.response-form .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.response-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.response-actions .button-primary,
.response-actions .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.response-actions .button-ghost {
  background: #fff;
  border-color: #8a867e;
  color: #171717;
}
.response-actions button:disabled { opacity: 0.65; cursor: wait; }
.response-follow {
  margin: 18px 0 36px;
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.3;
}
.response-follow a {
  color: var(--red-text, #9c1c12);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.response-result {
  margin: 8px 0 20px;
  padding: 18px 16px;
  border: 1px solid #d8d5cd;
  border-radius: 12px;
  background: #fff;
}
.response-result h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 400;
}
.response-result p { margin: 0 0 14px; }
.response-result .response-actions { margin-top: 0; }

@media (min-width: 720px) {
  .response-intro { padding-top: 40px; }
  .response-form .grid { grid-template-columns: 1fr 1fr; }
  .response-form .span-2 { grid-column: 1 / -1; }
  .response-form .type-switch { grid-template-columns: 1fr 1fr; }
  .response-actions { flex-direction: row; flex-wrap: wrap; }
  .response-actions .button-primary,
  .response-actions .button-ghost { width: auto; }
}

@media (prefers-color-scheme: dark) {
  body { background: #11110f; color: #f4f1eb; }
  .response-intro .scripture cite,
  .response-intro .routing,
  .response-form .field-help { color: #c8c2b8; }
  .response-core,
  .response-form .privacy-note,
  .response-form input:not([type]),
  .response-form input[type="text"],
  .response-form input[type="email"],
  .response-form input[type="tel"],
  .response-form input[type="url"],
  .response-form input[type="number"],
  .response-form select,
  .response-form textarea,
  .response-form .choice,
  .response-form .type-switch label,
  .response-form .error-summary,
  .response-result,
  .response-actions .button-ghost {
    background: #1b1b18;
    color: #f4f1eb;
    border-color: #5c5952;
  }
  .response-form input:disabled,
  .response-form textarea:disabled { background: #24231f; color: #c8c2b8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
