/* Contact page — tokens from styles.css */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ct-page .tx-breadcrumb {
  padding: 10px 0 0;
}

.ct-page .tx-section {
  padding: 48px 0;
}

.ct-page .tx-section .section-title {
  letter-spacing: -0.03em;
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 10px;
}

.ct-lede {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ct-hero {
  padding: 28px 0 40px;
  background:
    radial-gradient(720px 260px at 8% 0%, rgba(92, 77, 177, 0.07), transparent 62%),
    var(--white);
}

.ct-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.ct-hero-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(26, 43, 86, 0.14);
}

.ct-hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.ct-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.ct-card {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 22px 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.ct-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

.ct-card p {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.ct-card .ct-card-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ct-card .tx-btn {
  margin-top: auto;
  justify-content: center;
  min-height: 44px;
}

.ct-page #connect {
  background: #f5f7fb;
}

.ct-page #book {
  background: var(--white);
}

.ct-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.ct-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  padding: 24px;
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-field--full {
  grid-column: 1 / -1;
}

.ct-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.ct-req {
  color: #a32626;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font: 500 15px/1.4 var(--font);
}

.ct-field textarea {
  min-height: 110px;
  resize: vertical;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-color: var(--purple);
}

.ct-field input[aria-invalid="true"],
.ct-field select[aria-invalid="true"],
.ct-field textarea[aria-invalid="true"] {
  border-color: #a32626;
}

.ct-hint,
.ct-error {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.ct-error {
  color: #8b1e1e;
  display: none;
}

.ct-error.is-visible {
  display: block;
}

.ct-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.ct-form-actions .tx-btn {
  min-height: 48px;
  min-width: 200px;
  justify-content: center;
}

.ct-status {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.ct-status.is-visible {
  display: block;
}

.ct-status--ok {
  background: #e8f6ee;
  color: #14532d;
  border: 1px solid #b7e0c5;
}

.ct-status--err {
  background: #fdecec;
  color: #7f1d1d;
  border: 1px solid #f0c4c4;
}

.ct-aside {
  padding: 22px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
}

.ct-aside h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
}

.ct-aside p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.ct-aside a {
  color: #f3d48a;
  font-weight: 600;
}

.ct-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

.ct-address {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.ct-address strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.ct-address address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ct-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-visit-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(26, 43, 86, 0.12);
}

.ct-visit-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.ct-page #visit,
.ct-page #reach {
  background: #f5f7fb;
}

.ct-page #map,
.ct-page #prepare,
.ct-page #faq {
  background: var(--white);
}

.ct-map {
  margin-top: 22px;
  padding: 28px 28px 24px;
  border-radius: 16px;
  border: 1px dashed #c8d3ea;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 251, 0.96)),
    repeating-linear-gradient(-32deg, transparent, transparent 18px, rgba(26, 43, 86, 0.03) 18px, rgba(26, 43, 86, 0.03) 19px);
}

.ct-map p {
  max-width: 52ch;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
}

.ct-reach {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  align-items: center;
  margin-top: 22px;
}

.ct-reach-step {
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.ct-reach-arrow {
  color: var(--gold);
  font-weight: 700;
}

.ct-prep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.ct-prep {
  padding: 20px 18px;
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ct-prep-num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

.ct-prep h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.ct-prep p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.ct-page #help.final-cta {
  width: 100%;
  margin: 0;
  padding: 0;
}

.ct-page #help .section-eyebrow {
  color: var(--gold);
  margin-bottom: 4px;
}

.ct-page #help .final-cta-layout {
  min-height: 280px;
  justify-content: center;
}

.ct-page #help .final-cta-title {
  max-width: 14ch;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
}

.ct-page #help .final-cta-family {
  object-position: center 40%;
}

@media (max-width: 980px) {
  .ct-hero-grid,
  .ct-form-wrap,
  .ct-visit-grid,
  .ct-cards,
  .ct-prep-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ct-form-wrap,
  .ct-visit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ct-page .tx-section {
    padding: 32px 0;
  }

  .ct-hero-grid,
  .ct-cards,
  .ct-form,
  .ct-prep-grid {
    grid-template-columns: 1fr;
  }

  .ct-reach-arrow {
    display: none;
  }

  .ct-reach {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-card {
    transition: none;
  }
}
