.contact-page {
  --contact-green: #15352c;
  --contact-muted: #4f655b;
  --contact-border: #d5dbd0;
  font-family: "Segoe UI", Arial, sans-serif;
  padding-block: clamp(28px, 5vw, 64px);
}
.contact-hero {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(24px, 5vw, 64px);
  border-radius: 18px;
  background: linear-gradient(128deg, #102e27 0%, #1b3f34 66%, #2a4a3a 100%);
  color: #fffdf5;
}
.contact-page .contact-hero h1 {
  margin: 0;
  color: inherit;
  font-family: Cambria, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.contact-hero-intro {
  max-width: 490px;
  margin: 16px 0 28px;
  color: #e8ece2;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid #849689;
  border-radius: 8px;
  color: #fffdf5;
  font-weight: 650;
  text-decoration: none;
}
.contact-actions a:first-child {
  border-color: #dfc795;
  background: #dfc795;
  color: #162e25;
}
.contact-hero :is(a, button):focus-visible {
  outline: 2px solid #f4d593;
  outline-offset: 4px;
}
.contact-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-qr {
  box-sizing: border-box;
  margin: 0;
  padding: 16px clamp(12px, 2vw, 20px) 19px;
  border-radius: 12px;
  background: #fff;
  color: var(--contact-green);
  text-align: center;
}
.contact-page .contact-qr-code {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, 248px);
  padding: 0;
  margin: 0 auto 8px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: zoom-in;
}
/* The central 820 px square of the supplied poster includes the code and its quiet zone. */
.contact-qr-code img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 153.66%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}
.contact-hero .contact-qr-code:focus-visible { outline-color: #1c5f4c; outline-offset: -2px; }
.contact-qr figcaption { font-size: 16px; line-height: 1.45; }
.contact-qr figcaption span { display: block; margin-top: 3px; color: var(--contact-muted); font-size: 14px; }
.contact-social { margin-block: clamp(26px, 4vw, 44px); }
.contact-page .contact-social h2 {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: clamp(21px, 3vw, 29px);
  color: var(--contact-green);
  letter-spacing: 0;
  text-transform: none;
}
.contact-social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.contact-social a {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--contact-border);
  border-radius: 10px;
  color: var(--contact-green);
  background: #fffdf8;
  text-decoration: none;
}
.contact-social a:hover { border-color: #547567; background: #eef2eb; }
.contact-social strong, .contact-social small { display: block; }
.contact-social strong { font-size: 17px; line-height: 1.35; }
.contact-social small { color: var(--contact-muted); font-size: 14px; }
.contact-social a > [aria-hidden] { color: #365e4f; font-size: 20px; }
.contact-form {
  margin: 0 0 22px;
  border: 1px solid var(--contact-border);
  border-radius: 10px;
  background: #fffdf8;
}
.contact-form summary { padding: 12px 18px; font-weight: 650; color: var(--contact-green); cursor: pointer; }
.contact-form form { padding: 0 18px 16px; max-width: 680px; }
.contact-form form label { color: var(--contact-green); }
.contact-form form input[type=checkbox] { display: inline-block; margin-right: 5px; vertical-align: middle; }
@media (max-width: 660px) {
  .contact-hero { grid-template-columns: minmax(0, 1fr); }
  .contact-qr { width: min(100%, 300px); justify-self: center; }
}
@media (max-width: 460px) {
  .contact-social ul { grid-template-columns: minmax(0, 1fr); }
}
