/* Theme tokens (announce/nav/breadcrumb/hero/endcap/dropdown colors, muted-text
   opacities) now live globally in base.css/components.css/endcap.css/
   rebrand-patterns.css so every page shares the same light/dark behaviour. */
.page-contact {
  --contact-purple: #6b3fa0;
  --contact-coral: #e42300;
  --contact-pink: #e5194f;
  --contact-gold: #ffd166;
  --hero-dot-opacity: 0.04;
  --hero-pad-top: 44px;
  --hero-pad-bottom: 48px;
  --endcap-coral: var(--contact-coral);
  --endcap-pink: var(--contact-pink);
  --endcap-gold: var(--contact-gold);
  background: var(--theme-bg);
  color: var(--theme-text);
}

.page-contact .container {
  width: min(1120px, calc(100% - 48px));
}

/* Header, navigation & announcement bar styles now live globally in
   components.css / responsive.css so every page shares this look. */

/* Hero */
.contact-hero {
  isolation: isolate;
}

.contact-hero-inner {
  text-align: center;
}

.contact-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.contact-hero h1 span {
  color: var(--contact-gold);
}

.contact-hero p {
  margin: 0 auto;
  color: var(--theme-hero-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Contact details and form */
.contact-section {
  padding: 72px 0 84px;
  background: var(--theme-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: start;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 22px;
  background: var(--theme-surface-strong);
}

.contact-panel > .contact-kicker {
  margin: 0 0 4px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
  padding: 17px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

a.contact-detail:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.contact-detail-icon,
.visit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--contact-purple);
  color: #fff;
  flex: 0 0 auto;
}

.contact-detail-icon svg,
.visit-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail > span:last-child {
  min-width: 0;
}

.contact-detail small,
.contact-detail em {
  display: block;
  color: var(--theme-panel-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.contact-detail strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-hours {
  display: grid;
  grid-template-columns: 96px auto;
  gap: 12px;
  color: var(--theme-panel-muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-hours strong {
  white-space: nowrap;
}

.contact-form-card {
  padding: 38px 40px 42px;
  border: 1px solid var(--theme-border);
  border-radius: 22px;
  background: var(--theme-surface);
  box-shadow: 0 4px 18px var(--theme-shadow-color);
}

.contact-form-heading {
  margin-bottom: 30px;
}

.contact-form-heading h2 {
  margin: 6px 0 5px;
  color: var(--theme-text);
  font-size: clamp(30px, 2.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.contact-form-heading > p:last-child {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.contact-field label span {
  color: var(--contact-coral);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--theme-border);
  border-radius: 13px;
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 15px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-field input,
.contact-field select {
  height: 51px;
  padding: 0 16px;
}
.contact-field textarea {
  min-height: 140px;
  padding: 15px 16px;
  resize: vertical;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a4a0ae;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #9a76c7;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.11);
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--theme-text-muted);
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.contact-consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--contact-purple);
  flex: 0 0 auto;
}

.contact-consent a {
  color: var(--contact-coral);
  text-underline-offset: 3px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  padding: 13px 25px;
  background: var(--contact-purple);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-notice {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
}

.contact-notice-success {
  background: #ecfdf5;
  color: #087553;
}
.contact-notice-error {
  background: #fff1f2;
  color: #b4233b;
}

/* Visit, CTA, footer, and admin shortcut are shared in sections/endcap.css. */

@media (max-width: 1100px) {
  .contact-grid {
    gap: 28px;
  }
  .contact-panel {
    padding: 26px;
  }
  .visit-grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contact-panel > .contact-kicker {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-contact .container {
    width: min(100% - 32px, 1120px);
  }

  .contact-hero-inner {
    padding: 70px 0 76px;
  }
  .contact-hero h1 {
    font-size: clamp(50px, 15vw, 68px);
  }
  .contact-hero p {
    max-width: 520px;
    font-size: 16px;
  }
  .contact-section {
    padding: 48px 0 58px;
  }
  .contact-panel {
    display: flex;
    padding: 24px;
  }
  .contact-form-card {
    padding: 30px 24px 34px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-field-wide {
    grid-column: auto;
  }
  .contact-form-heading h2 {
    font-size: 31px;
  }

}

@media (max-width: 480px) {
  .contact-panel {
    padding: 20px;
  }
  .contact-detail {
    padding: 15px;
  }
  .contact-detail-icon {
    width: 38px;
    height: 38px;
  }
  .contact-hours {
    grid-template-columns: 88px auto;
    gap: 6px;
  }
}
