:root {
  --prayer-green: #123c31;
  --prayer-green-deep: #092a22;
  --prayer-cream: #f6f0e3;
  --prayer-paper: #fffdf8;
  --prayer-gold: #c99a42;
  --prayer-ink: #21332d;
  --prayer-muted: #60706a;
  --prayer-border: rgba(18, 60, 49, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 0;
}

.prayer-page {
  background: var(--prayer-cream);
  color: var(--prayer-ink);
  overflow-x: hidden;
}

.prayer-main {
  display: block;
}

.prayer-hero {
  position: relative;
  min-height: calc(100vh - var(--kh-header-height));
  min-height: calc(100svh - var(--kh-header-height));
  min-height: calc(100dvh - var(--kh-header-height));
  display: grid;
  place-items: end center;
  background:
    radial-gradient(circle at center, rgba(34, 86, 68, 0.78), transparent 54%),
    var(--prayer-green-deep);
  overflow: hidden;
  isolation: isolate;
}

.prayer-hero__image,
.prayer-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.prayer-hero__image {
  object-fit: contain;
  object-position: center;
  z-index: -2;
}

.prayer-hero__veil {
  background:
    linear-gradient(90deg, rgba(6, 28, 23, 0.72), transparent 28%, transparent 72%, rgba(6, 28, 23, 0.72)),
    linear-gradient(180deg, rgba(6, 28, 23, 0.08), rgba(6, 28, 23, 0.9));
  z-index: -1;
}

.prayer-hero__content {
  width: min(900px, calc(100% - 40px));
  padding: 80px 0 38px;
  text-align: center;
  color: #fffdf7;
}

.prayer-eyebrow {
  margin: 0 0 12px;
  color: var(--prayer-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.prayer-hero h1,
.prayer-form-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.prayer-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04;
}

.prayer-hero__content > h1 + p {
  max-width: 650px;
  margin: 22px auto 0;
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  font-weight: 550;
  line-height: 1.7;
}

.prayer-hero__cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid rgba(239, 202, 116, 0.78);
  background: var(--prayer-gold);
  color: var(--prayer-green-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(6, 28, 23, 0.24);
}

.prayer-hero__cta:hover,
.prayer-hero__cta:focus-visible {
  background: #e0b45b;
}

.prayer-hero__cta:focus-visible {
  outline: 3px solid rgba(255, 253, 247, 0.9);
  outline-offset: 3px;
}

.prayer-form-section {
  padding: clamp(42px, 5vw, 68px) 20px clamp(48px, 6vw, 78px);
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 154, 66, 0.12), transparent 30%),
    var(--prayer-cream);
}

.prayer-form-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.prayer-form-intro {
  max-width: 650px;
  margin: 0 auto 24px;
  text-align: center;
}

.prayer-form-intro h1 {
  margin: 0 0 14px;
  color: var(--prayer-green);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.prayer-form-intro > p:last-child {
  margin: 0;
  color: var(--prayer-muted);
  line-height: 1.7;
}

.prayer-form {
  display: grid;
  gap: 20px;
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--prayer-paper);
  border: 1px solid rgba(201, 154, 66, 0.32);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(9, 42, 34, 0.12);
}

.prayer-fields-row,
.prayer-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prayer-field {
  min-width: 0;
}

.prayer-field label,
.prayer-choice legend {
  display: block;
  color: var(--prayer-green-deep);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.4;
}

.prayer-field label span,
.prayer-field label strong,
.prayer-choice legend strong {
  color: var(--prayer-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.prayer-field input,
.prayer-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 9px;
  border: 1px solid var(--prayer-border);
  border-radius: 10px;
  background: #fff;
  color: var(--prayer-ink);
  font: inherit;
  font-size: 1rem;
}

.prayer-field input {
  min-height: 50px;
  padding: 10px 13px;
}

.prayer-field textarea {
  min-height: 150px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.prayer-field input:focus,
.prayer-field textarea:focus {
  border-color: var(--prayer-gold);
  outline: 3px solid rgba(201, 154, 66, 0.2);
}

.prayer-field [aria-invalid="true"] {
  border-color: #9d3b32;
}

.prayer-field__hint,
.prayer-field__error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.prayer-field__hint {
  color: var(--prayer-muted);
}

.prayer-field__error {
  color: #8a2f28;
  font-weight: 700;
}

.prayer-choice {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--prayer-border);
  border-radius: 12px;
  background: rgba(246, 240, 227, 0.48);
}

.prayer-choice legend {
  max-width: 100%;
  padding: 0 6px;
}

.prayer-choice__options {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}

.prayer-choice__options label {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  border: 1px solid var(--prayer-border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.prayer-choice__options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--prayer-green);
}

.prayer-privacy {
  margin-top: 24px;
  padding: 15px 18px;
  border-left: 3px solid var(--prayer-gold);
  background: rgba(246, 240, 227, 0.58);
}

.prayer-privacy h2,
.prayer-privacy p {
  margin: 0;
}

.prayer-privacy h2 {
  color: var(--prayer-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.prayer-privacy p {
  margin-top: 5px;
  color: var(--prayer-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.prayer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 4px;
}

@media (min-width: 901px) {
  .prayer-form-page__main {
    min-height: calc(100vh - var(--kh-header-height));
    min-height: calc(100svh - var(--kh-header-height));
    min-height: calc(100dvh - var(--kh-header-height));
    display: grid;
    align-items: center;
  }

  .prayer-form-section {
    padding-top: clamp(28px, 4vh, 44px);
    padding-bottom: clamp(28px, 4vh, 44px);
  }

  .prayer-form-shell {
    display: grid;
    grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
    align-items: start;
    gap: clamp(36px, 5vw, 72px);
  }

  .prayer-form-intro {
    margin: 0;
    text-align: left;
  }

  .prayer-form-intro h1 {
    font-size: clamp(2.25rem, 3.5vw, 3.6rem);
  }

  .prayer-form-intro .prayer-privacy {
    margin-top: 28px;
  }

  .prayer-form {
    gap: 16px;
    padding: clamp(24px, 3vw, 34px);
  }

  .prayer-field textarea {
    min-height: 120px;
  }

  .prayer-choice {
    padding: 13px 14px;
  }

  .prayer-choice__question {
    display: block;
    min-height: 2.8em;
  }

  .prayer-choice__options label {
    min-height: 40px;
  }

  .prayer-actions {
    gap: 18px;
  }
}

.prayer-submit {
  min-width: 230px;
  border: 0;
  cursor: pointer;
}

.prayer-return {
  color: var(--prayer-green);
  font-weight: 700;
  text-underline-offset: 4px;
}

.prayer-error-summary {
  padding: 18px 20px;
  border: 1px solid rgba(157, 59, 50, 0.4);
  border-radius: 10px;
  background: #fff2ef;
  color: #732820;
}

.prayer-error-summary h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.prayer-error-summary p,
.prayer-error-summary ul {
  margin: 8px 0 0;
}

.prayer-error-summary a {
  color: inherit;
}

.prayer-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.prayer-footer {
  position: static;
  clear: both;
}

@media (max-width: 760px) {
  .prayer-hero {
    min-height: 430px;
  }

  .prayer-hero__image {
    object-fit: cover;
    object-position: center 38%;
  }

  .prayer-fields-row,
  .prayer-choices {
    grid-template-columns: 1fr;
  }

  .prayer-form {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .prayer-form-section {
    padding: 48px 12px 72px;
  }

  .prayer-hero__content {
    width: calc(100% - 28px);
    padding-bottom: 48px;
  }

  .prayer-form {
    padding: 24px 16px 30px;
    border-radius: 14px;
  }

  .prayer-choice {
    padding: 17px 12px;
  }

  .prayer-actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .prayer-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 320px) {
  .prayer-header {
    gap: 8px;
    padding-inline: 10px;
  }

  .prayer-header .kh-site-brand strong {
    font-size: 1.05rem;
  }

  .prayer-header .kh-site-nav-button {
    padding-inline: 10px;
    white-space: nowrap;
  }

  .prayer-hero {
    min-height: 390px;
  }

  .prayer-hero h1 {
    font-size: 2.2rem;
  }

  .prayer-form-section {
    padding-inline: 8px;
  }

  .prayer-form {
    padding-inline: 12px;
  }

  .prayer-choice__options {
    gap: 7px;
  }
}

/* Dedicated prayer form page */
.prayer-form-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--prayer-green-deep);
}

.prayer-room {
  position: relative;
  min-height: calc(100vh - var(--kh-header-height));
  min-height: calc(100svh - var(--kh-header-height));
  min-height: calc(100dvh - var(--kh-header-height));
  display: grid;
  place-items: center;
  padding: 12px 22px;
  overflow: hidden;
  isolation: isolate;
}

.prayer-room::before,
.prayer-room::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
}

.prayer-room::before {
  background: url("/images/laying_hands.jpg") center 42% / cover no-repeat;
  opacity: 0.14;
  filter: saturate(0.7);
}

.prayer-room::after {
  background:
    radial-gradient(circle at center, rgba(20, 69, 55, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(9, 42, 34, 0.62), rgba(9, 42, 34, 0.94));
}

.prayer-form-card {
  width: min(1100px, 100%);
  padding: 24px clamp(28px, 3.2vw, 40px);
  border: 1px solid rgba(201, 154, 66, 0.42);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.prayer-form-card__intro {
  margin-bottom: 10px;
  text-align: center;
}

.prayer-form-card__intro .prayer-eyebrow {
  margin-bottom: 6px;
}

.prayer-form-card__intro h1 {
  margin: 0;
  color: var(--prayer-green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
}

.prayer-form-card__intro > p:last-child {
  margin: 6px 0 0;
  color: var(--prayer-muted);
  line-height: 1.5;
}

.prayer-room-form {
  display: grid;
  gap: 12px;
}

.prayer-room-form__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
}

.prayer-room-form__left,
.prayer-room-form__right {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.prayer-room-form__identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.prayer-room-form__right {
  gap: 22px;
  padding-top: 2px;
}

.prayer-room-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.prayer-room-form .prayer-field input {
  height: 54px;
  min-height: 54px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 1rem;
}

.prayer-room-form .prayer-field textarea {
  min-height: 125px;
}

.prayer-room-form__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

.prayer-compact-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.prayer-compact-choice legend {
  min-height: 2.7em;
  padding: 0;
  color: var(--prayer-green-deep);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.prayer-compact-choice legend strong {
  color: var(--prayer-muted);
  font-size: 0.72rem;
}

.prayer-compact-choice__options {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.prayer-compact-choice__options label {
  display: inline-flex;
  min-width: 72px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--prayer-border);
  border-radius: 8px;
  background: #fff;
  color: var(--prayer-green-deep);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.prayer-compact-choice__options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--prayer-green);
}

.prayer-room-form__care {
  margin: 0;
  color: var(--prayer-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
}

.prayer-room-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: 12px;
  row-gap: 12px;
}

.prayer-room-form__actions .kh-button {
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  padding: 0 12px;
  box-sizing: border-box;
  white-space: nowrap;
}

.prayer-room-form__actions .prayer-submit {
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.prayer-room-form__actions .prayer-submit:hover,
.prayer-room-form__actions .prayer-submit:focus-visible {
  background: #bd8e38;
  box-shadow: 0 7px 16px rgba(9, 42, 34, 0.18);
  transform: translateY(-1px);
}

.prayer-room-form__actions .prayer-submit:focus-visible {
  outline: 3px solid rgba(18, 60, 49, 0.72);
  outline-offset: 3px;
}

.prayer-room-form__actions .prayer-return {
  color: var(--prayer-green);
}

.prayer-return--button {
  min-height: 56px;
  border-color: rgba(18, 60, 49, 0.48);
  background: var(--prayer-cream);
  color: var(--prayer-green-deep);
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.prayer-return--button:hover {
  border-color: var(--prayer-green);
  background: #eee6d6;
}

.prayer-return--button:focus-visible {
  border-color: var(--prayer-green);
  background: #eee6d6;
  box-shadow: 0 0 0 3px rgba(18, 60, 49, 0.18);
  outline: 2px solid var(--prayer-green);
  outline-offset: 2px;
}

@media (min-width: 901px) {
  .prayer-room-form__identity .prayer-field > label {
    min-height: 1.4em;
    white-space: nowrap;
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .prayer-room {
    place-items: start center;
    overflow: visible;
  }

  .prayer-form-card {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .prayer-room-form .prayer-field textarea {
    min-height: 130px;
  }
}

@media (max-width: 700px) {
  .prayer-room {
    display: block;
    padding: 24px 14px 40px;
    overflow: visible;
  }

  .prayer-room-form__row,
  .prayer-room-form__choices {
    grid-template-columns: 1fr;
  }

  .prayer-compact-choice legend {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .prayer-room {
    display: block;
    padding: 28px 16px 44px;
    overflow: visible;
  }

  .prayer-room-form__columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .prayer-room-form__identity {
    grid-template-columns: 1fr;
  }

  .prayer-room-form__right {
    gap: 18px;
    padding-top: 0;
  }
}

@media (max-width: 420px) {
  .prayer-room {
    padding-inline: 10px;
  }

  .prayer-form-card {
    padding: 22px 14px 26px;
    border-radius: 13px;
  }

  .prayer-room-form__actions {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .prayer-room-form__actions .prayer-submit {
    width: 100%;
  }
}
