/* ==========================================================================
   Contact page — self-contained styles (scoped to .contact-page-view)
   Matches the approved Contact mockup: white split hero, quick-contact
   cards, form + location, pastoral care, FAQ, cinematic closing banner.
   ========================================================================== */

.contact-page-view {
  --ct-teal: #062b33;
  --ct-teal-deep: #03232b;
  --ct-red: #b0001b;
  --ct-red-hover: #8e0016;
  --ct-gold: var(--rl-gold);
  --ct-body: #4b5563;
  --ct-muted: #5b6670;
  --ct-border: #e4eaed;
  --ct-soft: #f7f9fa;
  --ct-radius: 14px;
  --ct-shadow: 0 16px 44px rgba(6, 43, 51, 0.08);
  background: #fff;
  color: var(--ct-teal);
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

.contact-page-view *,
.contact-page-view *::before,
.contact-page-view *::after {
  box-sizing: border-box;
}

.contact-page-view img {
  max-width: 100%;
  display: block;
}

.contact-page-view :where(h1, h2, h3, p, ul, figure) {
  margin: 0;
}

.contact-page-view h2,
.contact-page-view h3 {
  font-family: 'Ubuntu', sans-serif;
  color: var(--ct-teal);
}

.contact-page-view a:not(.rl-btn) {
  color: inherit;
}

.contact-page-view .ct-container {
  width: 100%;
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-page-view .ct-accent {
  color: var(--ct-red);
}

/* Shared eyebrow */
.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ct-teal);
  margin-bottom: 16px;
}

.ct-eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--ct-gold);
  flex: none;
}

/* --------------------------------------------------------------------------
   2. Quick contact cards
   -------------------------------------------------------------------------- */
.ct-quick {
  padding: 46px 0 56px;
  background: #fff;
}

.ct-section-head {
  max-width: 800px;
  margin: 0 auto 38px;
  text-align: center;
}

.ct-section-head .ct-eyebrow {
  justify-content: center;
}

.ct-section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.ct-section-head p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ct-body);
}

.ct-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ct-quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 24px;
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  box-shadow: 0 4px 18px rgba(6, 43, 51, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ct-quick-card:hover {
  transform: translateY(-2px);
  border-color: #d3dde0;
  box-shadow: 0 12px 30px rgba(6, 43, 51, 0.09);
}

.ct-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.ct-quick-icon svg {
  width: 22px;
  height: 22px;
}

.ct-icon-pin { background: #fdecef; color: #a30d24; }
.ct-icon-cal { background: #fdf2e2; color: #9a5b06; }
.ct-icon-phone { background: #e8f1fb; color: #1d4ed8; }
.ct-icon-mail { background: #e8f6ee; color: #157347; }

.ct-quick-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ct-quick-card p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ct-body);
  margin-bottom: 18px;
}

.ct-quick-card p:last-of-type {
  margin-bottom: 18px;
}

.ct-quick-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ct-red) !important;
  text-decoration: none;
  padding-top: 2px;
}

.ct-quick-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-quick-link svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   3. Form + location
   -------------------------------------------------------------------------- */
.ct-main {
  padding: 12px 0 52px;
  background: #fff;
  scroll-margin-top: 130px;
}

.ct-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 20px 40px;
  align-items: start;
}

.ct-form-card {
  grid-column: 1;
  grid-row: 1;
}

.ct-location-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ct-form-card {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  box-shadow: var(--ct-shadow);
  padding: 34px 34px 30px;
}

.ct-form-card h2,
.ct-location-body h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.ct-form-intro {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ct-body);
  margin-bottom: 30px;
}

.ct-form-group {
  margin-bottom: 16px;
}

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ct-form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ct-teal);
  margin-bottom: 7px;
}

.ct-form-label .ct-req {
  color: var(--ct-red);
}

.ct-form-input,
.ct-form-select,
.ct-form-textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2a2e;
  background: #fff;
  border: 1px solid #d7dfe2;
  border-radius: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ct-form-textarea {
  min-height: 112px;
  resize: vertical;
}

.ct-form-input::placeholder,
.ct-form-textarea::placeholder {
  color: #7d878d;
}

.ct-form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23505b63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #1f2a2e;
}

.ct-form-select:invalid,
.ct-form-select.is-placeholder {
  color: #6b767c;
}

.ct-form-input:focus,
.ct-form-select:focus,
.ct-form-textarea:focus {
  outline: none;
  border-color: var(--ct-teal);
  box-shadow: 0 0 0 3px rgba(6, 43, 51, 0.14);
}

.ct-form-input[aria-invalid='true'],
.ct-form-select[aria-invalid='true'],
.ct-form-textarea[aria-invalid='true'] {
  border-color: var(--ct-red);
  box-shadow: 0 0 0 3px rgba(176, 0, 27, 0.1);
}

.ct-field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  color: #9b0018;
}

.ct-field-error.is-visible {
  display: block;
}

.ct-form-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border-radius: 8px;
  font-size: 15px;
}

.ct-form-submit[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.ct-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-spin 0.7s linear infinite;
  display: none;
}

.ct-form-submit.is-loading .ct-spinner {
  display: inline-block;
}

@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

.ct-form-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ct-muted);
}

/* Status + review panel */
.ct-form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  background: #fdecef;
  border: 1px solid #f3c9d0;
  color: #8c0016;
}

.ct-form-status:empty {
  display: none;
}

.ct-form-status.is-error {
  display: block;
}

.ct-form-status.is-success {
  display: block;
  background: #e8f6ee;
  border-color: #bfe3cd;
  color: #14603a;
}

.ct-review {
  padding: 4px 0 0;
}

.ct-review h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.ct-review p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ct-body);
  margin-bottom: 14px;
}

.ct-review pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Ubuntu', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #24333a;
  background: var(--ct-soft);
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 16px;
}

.ct-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.ct-review-back:not(.rl-btn) {
  background: none;
  border: 0;
  padding: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ct-red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Location card */
.ct-location-card {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ct-shadow);
}

.ct-location-media {
  height: 290px;
  overflow: hidden;
}

.ct-location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

.ct-location-body {
  padding: 24px 26px 0;
}

.ct-location-body h2 {
  font-size: 26px;
}

.ct-location-address {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ct-teal);
  margin: 12px 0 14px;
  font-style: normal;
}

.ct-location-address svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--ct-red);
}

.ct-location-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ct-body);
  margin-bottom: 16px;
}

.ct-location-actions {
  padding-bottom: 18px;
}

.ct-find-us-card {
  padding: 24px 28px;
  background: #f4f7f8;
  border-top: 1px solid var(--ct-border);
}

.ct-find-us-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-find-us-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-find-us-header svg {
  width: 22px;
  height: 22px;
  color: var(--ct-red);
  flex-shrink: 0;
}

.ct-find-us-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0;
}

.ct-find-us-address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--ct-ink);
  line-height: 1.5;
}

.ct-find-us-hours {
  font-size: 0.875rem;
  color: var(--ct-muted);
  line-height: 1.4;
  margin: 0;
}

.ct-find-us-card .rl-btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   4. Pastoral care
   -------------------------------------------------------------------------- */
.ct-care {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  background: transparent;
}

.ct-care-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 26px;
  align-items: center;
  max-width: none;
  margin: 0;
}

.ct-care-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 43, 51, 0.12);
}

.ct-care-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: 50% 45%;
}

.ct-care-copy h2 {
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ct-care-copy p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ct-body);
}

.ct-care .ct-eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   5. FAQ
   -------------------------------------------------------------------------- */
.ct-faq {
  padding: 58px 0 64px;
  background: #fff;
}

.ct-faq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.ct-faq-head-copy {
  max-width: 720px;
}

.ct-faq-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.ct-faq-head p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ct-body);
}

.ct-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}

.ct-faq-item {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  overflow: hidden;
}

.ct-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  color: var(--ct-teal);
  cursor: pointer;
}

.ct-faq-question:hover {
  background: #fbfcfc;
}

.ct-faq-question:focus-visible {
  outline: 3px solid var(--ct-red);
  outline-offset: -3px;
}

.ct-faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.ct-faq-icon::before,
.ct-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: var(--ct-teal);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.ct-faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.ct-faq-question[aria-expanded='true'] .ct-faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.ct-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.ct-faq-panel > div {
  overflow: hidden;
}

.ct-faq-panel p {
  padding: 0 18px 16px;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ct-body);
}

.ct-faq-item.is-open .ct-faq-panel {
  grid-template-rows: 1fr;
}

.ct-faq-panel a {
  color: var(--ct-red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Closing banner
   -------------------------------------------------------------------------- */
.ct-closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ct-teal-deep);
}

.ct-closing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -2;
}

.ct-closing::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(3, 24, 30, 0.9) 0%,
    rgba(3, 24, 30, 0.68) 46%,
    rgba(3, 24, 30, 0.24) 100%
  );
}

.ct-closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 204px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.ct-closing-copy {
  max-width: 720px;
}

.ct-closing .ct-eyebrow {
  color: #f4d98a;
  margin-bottom: 12px;
}

.ct-closing h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}

.ct-closing h2 .ct-accent {
  color: var(--rl-gold);
}

.ct-closing p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #dbe6e8;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .ct-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-main-grid {
    gap: 28px;
  }

  .ct-form-card {
    padding: 32px 28px 30px;
  }
}

@media (max-width: 900px) {
  .ct-main-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ct-form-card,
  .ct-location-card,
  .ct-care {
    grid-column: auto;
    grid-row: auto;
  }

  .ct-location-card {
    max-width: 640px;
    margin: 0 auto;
  }

  .ct-care-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
  }

  .ct-care-media img {
    height: 300px;
  }

  .ct-faq-grid {
    grid-template-columns: 1fr;
  }

  .ct-closing-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

@media (max-width: 640px) {
  .contact-page-view .ct-container {
    padding: 0 20px;
  }

  .ct-quick {
    padding: 56px 0 48px;
  }

  .ct-quick-grid {
    grid-template-columns: 1fr;
  }

  .ct-main {
    padding-bottom: 56px;
  }

  .ct-form-card {
    padding: 26px 20px 24px;
    border-radius: 14px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ct-form-row .ct-form-group {
    margin-bottom: 18px;
  }

  .ct-location-body {
    padding: 20px 20px 0;
  }

  .ct-find-us-card {
    padding: 20px;
  }

  .ct-quick-link {
    min-height: 44px;
  }

  .ct-care-media img {
    height: 230px;
  }

  .ct-faq {
    padding: 48px 0 52px;
  }

  .ct-faq-head {
    margin-bottom: 24px;
  }

  .ct-faq-question {
    padding: 15px 16px;
    font-size: 14.5px;
  }

  .ct-faq-panel p {
    padding: 0 16px 15px;
  }

  .ct-closing-inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .ct-review-actions {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Motion & focus
   -------------------------------------------------------------------------- */
.contact-page-view :not([class*="rl-"]):focus-visible {
  outline: 3px solid var(--ct-red);
  outline-offset: 2px;
}

.ct-closing :not([class*="rl-"]):focus-visible {
  outline-color: var(--ct-gold);
}

@media (prefers-reduced-motion: reduce) {
  .contact-page-view *,
  .contact-page-view *::before,
  .contact-page-view *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .ct-quick-card:hover {
    transform: none;
  }
}
