body.contact-body {
  min-height: 100dvh;
  margin: 0;
  padding-right: max(0.85rem, env(safe-area-inset-right));
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  padding-left: max(0.85rem, env(safe-area-inset-left));
  background:
    linear-gradient(120deg, rgba(4, 15, 29, 0.78), rgba(4, 15, 29, 0.9)),
    url('/CottonwoodCanopyBackground.jpg') center 40% / cover no-repeat,
    #071426;
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-page-shell {
  width: min(1180px, 100%);
  min-height: calc(100dvh - var(--ara-top-nav-height, 0px) - 2.25rem);
  margin: 0 auto;
  padding-block: clamp(1rem, 2.4vh, 1.7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.contact-info-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 2.4vh, 1.7rem);
}

.contact-info-copy {
  max-width: 720px;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-info-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-info-copy p:not(.contact-eyebrow) {
  max-width: 660px;
  margin: clamp(0.9rem, 1.8vh, 1.15rem) 0 0;
  color: rgba(219, 234, 254, 0.9);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.58;
}

.contact-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-purpose-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: rgba(7, 20, 38, 0.78);
  box-shadow: 0 20px 46px rgba(3, 10, 24, 0.28);
}

.contact-purpose-card > .material-symbols-rounded {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  font-size: 1.35rem;
}

.contact-purpose-card:nth-child(2) > .material-symbols-rounded {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.contact-purpose-card:nth-child(3) > .material-symbols-rounded {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.contact-purpose-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
}

.contact-purpose-card p {
  margin: 0.38rem 0 0;
  color: rgba(219, 234, 254, 0.78);
  font-size: 0.84rem;
  line-height: 1.36;
}

.contact-form-panel {
  width: min(100%, 470px);
  justify-self: end;
}

.contact-form-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.contact-form-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 2.4vw, 2.45rem);
  line-height: 1;
  font-weight: 900;
}

.contact-form-heading p {
  margin: 0.55rem 0 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.92rem;
}

.contact-card {
  display: grid;
  gap: 0.95rem;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 28px 80px rgba(3, 10, 24, 0.5);
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field label {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.88rem;
  font-weight: 850;
}

.contact-input-wrap,
.contact-textarea-wrap {
  position: relative;
}

.contact-input-wrap > .material-symbols-rounded,
.contact-textarea-wrap > .material-symbols-rounded {
  position: absolute;
  left: 0.85rem;
  top: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
  font-size: 1.35rem;
  pointer-events: none;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(100, 116, 139, 0.86);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.66);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-card input {
  min-height: 48px;
  padding: 0 0.95rem 0 2.85rem;
}

.contact-card textarea {
  min-height: 180px;
  resize: vertical;
  padding: 0.88rem 0.95rem 0.95rem 2.85rem;
  line-height: 1.5;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: rgba(148, 163, 184, 0.88);
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: #60a5fa;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.24);
}

.contact-submit {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(96, 165, 250, 0.82);
  border-radius: 0.82rem;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
  border-color: rgba(147, 197, 253, 0.95);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-form-note {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.contact-form-note a {
  color: #93c5fd;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.contact-form-note a:hover {
  color: #dbeafe;
}

.thanks-body {
  display: block;
}

.thanks-page-shell {
  min-height: calc(100dvh - var(--ara-top-nav-height, 0px) - 1.7rem);
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.thanks-message {
  width: min(760px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
}

.thanks-message .contact-eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
}

.thanks-message h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.thanks-message p:not(.contact-eyebrow) {
  margin: 1.25rem auto 0;
  color: rgba(219, 234, 254, 0.92);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.thanks-home-link {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 999px;
  padding: 0 1.15rem;
  background: rgba(7, 20, 38, 0.78);
  color: #dbeafe;
  font-weight: 850;
  text-decoration: none;
}

.thanks-home-link:hover {
  border-color: rgba(96, 165, 250, 0.7);
  color: #fff;
  background: rgba(37, 99, 235, 0.38);
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 981px) {
  body.contact-body {
    overflow: hidden;
  }
}

@media (min-width: 981px) and (max-height: 790px) {
  .contact-eyebrow {
    margin-bottom: 0.75rem;
  }

  .contact-info-copy h1 {
    font-size: clamp(2.65rem, 4.5vw, 4.1rem);
  }

  .contact-info-copy p:not(.contact-eyebrow) {
    max-width: 600px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .contact-purpose-card {
    min-height: 108px;
  }

  .contact-purpose-card p {
    display: none;
  }

  .contact-card textarea {
    min-height: 140px;
  }
}

@media (max-width: 980px) {
  body.contact-body {
    padding-right: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    overflow: auto;
  }

  .contact-page-shell {
    min-height: auto;
    padding-block: clamp(1.75rem, 5vw, 3rem);
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: clamp(1.25rem, 4vw, 2rem);
  }

  .contact-info-panel {
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .contact-info-copy h1 {
    max-width: 15ch;
    font-size: clamp(2.35rem, 9.6vw, 4rem);
    line-height: 0.98;
  }

  .contact-info-copy p:not(.contact-eyebrow) {
    max-width: 62ch;
  }

  .contact-purpose-grid {
    grid-template-columns: 1fr;
  }

  .contact-purpose-card {
    min-height: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.95rem;
  }

  .contact-form-panel {
    width: 100%;
    max-width: 540px;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  body.contact-body {
    padding-right: 0.85rem;
    padding-bottom: 0.85rem;
    padding-left: 0.85rem;
    background:
      linear-gradient(rgba(4, 15, 29, 0.84), rgba(4, 15, 29, 0.94)),
      url('/CottonwoodCanopyBackground.jpg') 55% 32% / cover no-repeat,
      #071426;
  }

  .contact-page-shell {
    padding-block: 1.35rem 2rem;
  }

  .contact-info-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 11vw, 2.95rem);
  }

  .contact-info-copy p:not(.contact-eyebrow) {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .contact-eyebrow {
    max-width: 100%;
    align-items: flex-start;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .contact-purpose-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-purpose-card > .material-symbols-rounded {
    width: 34px;
    height: 34px;
    border-radius: 0.72rem;
    font-size: 1.2rem;
  }

  .contact-purpose-card h2 {
    font-size: 0.95rem;
  }

  .contact-purpose-card p {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .contact-form-heading {
    text-align: left;
  }

  .contact-form-heading h2 {
    font-size: 1.8rem;
  }

  .contact-card {
    gap: 0.85rem;
    border-radius: 0.9rem;
    padding: 1rem;
  }

  .contact-card textarea {
    min-height: 150px;
  }

  .contact-form-note {
    padding-left: 0;
    list-style-position: inside;
  }
}
