.contact-page {
  --contact-red: #df161d;
  --contact-ink: #111;
  --contact-cream: #f6f1e8;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: ease-out;
  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 100vh;
  color: var(--contact-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-page .shared-site-header {
  z-index: 20;
}

.contact-main {
  padding: clamp(104px, 11vw, 142px) 0 clamp(54px, 7vw, 88px);
}

.contact-container {
  width: min(90vw, 1320px);
  margin-inline: auto;
}

.contact-heading {
  max-width: 940px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}

.contact-eyebrow {
  margin: 0 0 10px;
  color: var(--contact-red);
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: .16em;
}

.contact-heading h1 {
  margin: 0;
  color: #111;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
}

.contact-lead {
  margin: 18px 0 10px;
  color: #111;
  font-size: clamp(21px, 2.15vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.contact-intro {
  max-width: 850px;
  margin: 0 auto;
  color: #343434;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 58px);
}

.contact-details {
  align-self: stretch;
  padding: clamp(26px, 3vw, 42px);
  border-radius: 18px;
  background: #111;
  color: #fff;
}

.contact-details > h2 {
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.contact-detail {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.contact-detail + .contact-detail {
  margin-top: clamp(26px, 3vw, 38px);
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--contact-red);
}

.contact-icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: #fff;
}

.contact-detail h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}

.contact-detail address,
.contact-detail p {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(15px, 1.18vw, 17px);
  font-style: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-detail a {
  color: inherit;
  text-decoration-color: #ef7478;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px 22px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .07);
}

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

.contact-field-subject,
.contact-field-message {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin: 0 0 8px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

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

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 13px 15px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-field textarea {
  min-height: 154px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #777;
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 0;
  border-color: var(--contact-red);
  box-shadow: 0 0 0 3px rgba(223, 22, 29, .16);
}

.contact-form.has-validation-error input:invalid,
.contact-form.has-validation-error textarea:invalid {
  border-color: #b51c1c;
}

.contact-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  justify-self: start;
  border: 0;
  border-radius: 5px;
  padding: 0 25px;
  background: var(--contact-red);
  color: #fff;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .025em;
  cursor: pointer;
  transition: background-color .15s ease;
}

.contact-submit:hover {
  background: #bd1017;
}

.contact-submit:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.contact-submit span {
  font-size: .9em;
}

.contact-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
}

.contact-status a {
  color: #b30e15;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-status.is-error {
  color: #9b1717;
  font-weight: 700;
}

.contact-status.is-success {
  color: #173c31;
  font-weight: 700;
}

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

.contact-page .aynew-footer {
  width: 95vw;
  max-width: 1920px;
  margin: 0 auto;
  border-radius: var(--about-radius);
}

@media (max-width: 760px) {
  .contact-main {
    padding-top: 96px;
    padding-bottom: 42px;
  }

  .contact-container {
    width: calc(100% - 36px);
  }

  .contact-heading {
    margin-bottom: 28px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact-details {
    padding: 24px;
  }

  .contact-details > h2 {
    margin-bottom: 22px;
  }

  .contact-detail + .contact-detail {
    margin-top: 22px;
  }

  .contact-form {
    gap: 16px;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding-top: 86px;
  }

  .contact-container {
    width: calc(100% - 28px);
  }

  .contact-heading h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-field-subject,
  .contact-field-message,
  .contact-status {
    grid-column: 1;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-page .aynew-footer {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field input,
  .contact-field textarea,
  .contact-submit {
    transition: none;
  }
}

/* Contact uses the captured About Us type and spacing tokens without
   changing the shared shell or the form's existing behavior. */
.contact-page .contact-main {
  --contact-copy-gap: clamp(28px, 3vw, 44px);
  padding: calc(var(--about-nav-height, 52px) + 2px + var(--contact-copy-gap)) 0 clamp(44px, 5vw, 76px);
}

.contact-page .contact-container {
  width: var(--about-width, 95vw);
  max-width: 1920px;
}

.contact-page .contact-heading {
  max-width: 940px;
  margin: 0 auto var(--contact-copy-gap);
  text-align: center;
}

.contact-page .contact-heading::after {
  display: block;
  width: clamp(52px, 6vw, 84px);
  height: 3px;
  margin: clamp(22px, 2.4vw, 32px) auto 0;
  background: var(--contact-red);
  content: "";
}

.contact-page .contact-heading h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(30px, 3.35vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.contact-page .contact-lead {
  margin: clamp(8px, 1vw, 14px) 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.contact-page .contact-intro {
  max-width: 850px;
  margin: clamp(12px, 1vw, 16px) auto 0;
  color: #252525;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--about-body-font-size, clamp(17px, 1.32vw, 20px));
  line-height: var(--about-body-line-height, 1.5);
}

.contact-page .contact-layout {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 58px);
}

.contact-page .contact-details,
.contact-page .contact-form {
  border-radius: var(--about-radius, 22px);
}

.contact-page .contact-details {
  padding: var(--about-pad, clamp(22px, 4vw, 58px));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

.contact-page .contact-details > h2,
.contact-page .contact-detail h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--about-body-heading-size, clamp(21px, 1.8vw, 29px));
  font-weight: 800;
  line-height: var(--about-body-heading-line-height, 1.12);
  letter-spacing: -.035em;
}

.contact-page .contact-details > h2 {
  margin-bottom: var(--about-body-heading-gap, clamp(8px, .7vw, 10px));
}

.contact-page .contact-detail + .contact-detail {
  margin-top: var(--about-body-subsection-gap, clamp(22px, 2vw, 30px));
}

.contact-page .contact-detail address,
.contact-page .contact-detail p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--about-body-font-size, clamp(17px, 1.32vw, 20px));
  line-height: var(--about-body-line-height, 1.5);
}

.contact-page .contact-form {
  gap: clamp(14px, 1.2vw, 20px);
  padding: var(--about-pad, clamp(22px, 4vw, 58px));
  border-color: #111;
  background: var(--contact-cream);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .09);
}

.contact-page .contact-field label {
  margin-bottom: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-page .contact-field input,
.contact-page .contact-field textarea {
  min-height: 48px;
  border-color: #aaa49b;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  font: 16px/1.2 Arial, Helvetica, sans-serif;
  transition: border-color var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out), transform var(--duration-fast) var(--ease-smooth-out);
}

.contact-page .contact-field textarea {
  min-height: 154px;
}

.contact-page .contact-field input::placeholder,
.contact-page .contact-field textarea::placeholder {
  color: #707070;
  opacity: 1;
}

.contact-page .contact-submit {
  min-height: 48px;
  border-radius: 0;
  padding-inline: 25px;
  background: var(--about-red, var(--contact-red));
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 700;
  transition: background-color var(--duration-quick) var(--ease-out), transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.contact-page .contact-submit:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  transform: translateY(-2px);
}

.contact-page .contact-submit:active {
  transform: scale(.96);
}

.contact-page .contact-field.is-error input,
.contact-page .contact-field.is-error textarea {
  border-color: #b51c1c;
  box-shadow: 0 0 0 3px rgba(181, 28, 28, .12);
}

.contact-page .contact-field.is-shaking input,
.contact-page .contact-field.is-shaking textarea {
  animation: t-input-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear;
  will-change: transform;
}

@keyframes t-input-shake {
  0% { transform: translateX(0); animation-timing-function: var(--shake-ease); }
  28.57% { transform: translateX(var(--shake-distance)); animation-timing-function: var(--shake-ease); }
  57.14% { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57% { transform: translateX(var(--shake-overshoot)); animation-timing-function: var(--shake-ease); }
  100% { transform: translateX(0); }
}

.contact-page [data-contact-reveal] {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .contact-page [data-contact-reveal],
  .contact-page .contact-field input,
  .contact-page .contact-field textarea,
  .contact-page .contact-submit {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

@media (min-width: 761px) {
  .contact-page .contact-submit,
  .contact-page .contact-status {
    position: relative;
    top: clamp(8px, calc(5vw - 32px), 40px);
  }
}

@media (max-width: 760px) {
  .contact-page .contact-main {
    --contact-copy-gap: 26px;
  }

  .contact-page .contact-main {
    padding-top: calc(var(--about-nav-height, 50px) + 2px + var(--contact-copy-gap));
    padding-bottom: 28px;
  }

  .contact-page .contact-container {
    width: calc(100% - 24px);
  }

  .contact-page .contact-heading {
    margin-bottom: var(--contact-copy-gap);
  }

  .contact-page .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact-page .contact-details,
  .contact-page .contact-form {
    padding: 28px 22px;
  }
}

@media (max-width: 620px) {
  .contact-page .contact-heading h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .contact-page .contact-lead {
    font-size: 20px;
  }

  .contact-page .contact-intro,
  .contact-page .contact-detail address,
  .contact-page .contact-detail p {
    font-size: 17px;
    line-height: 1.5;
  }

  .contact-page .contact-details > h2,
  .contact-page .contact-detail h3 {
    font-size: 21px;
    line-height: 1.15;
  }
}
