/* Contact uses the same quiet green, receipt-led visual language as the
   overview, while keeping the form easy to scan and use on small screens. */
.contact-page {
  background: var(--rx-sage);
  color: var(--rx-ink);
}

.rx-contact {
  overflow: clip;
  padding-top: 78px;
  background: var(--rx-sage);
  color: var(--rx-ink);
  font-family: var(--rx-body);
}

.rxc-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .85fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 58px 48px 82px;
}

.rxc-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 -50vw;
  content: "";
  background:
    repeating-linear-gradient(0deg, rgba(15, 90, 63, .035) 0 1px, transparent 1px 36px),
    radial-gradient(ellipse at 27% 36%, #d4e7d9 0, transparent 62%),
    var(--rx-sage);
}

.rxc-hero-copy { max-width: 650px; }
.rxc-hero-copy > .rx-tag { margin-bottom: 20px; }
.rxc-hero h1,
.rxc-form-head h2,
.rxc-expect h2,
.rxc-direct h2 {
  color: var(--rx-ink);
  font-family: var(--rx-head);
  letter-spacing: -.04em;
}

.rxc-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 800;
  line-height: 1.02;
}

.rxc-hero h1 em { color: var(--rx-green); font-style: normal; }
.rxc-lede {
  max-width: 39ch;
  margin: 22px 0 0;
  color: var(--rx-ink-2);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.58;
}

.rxc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 25px;
}

.rxc-meta span {
  padding: 7px 11px;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--rx-ink-2);
  font: 700 13px/1.2 var(--rx-head);
}

.rxc-hero .rx-btn { min-height: 50px; height: auto; }

.rxc-workflow-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 0;
  border: 1px solid var(--rx-line);
  border-radius: 14px;
  background: var(--rx-card);
  box-shadow: 0 22px 54px rgba(16, 32, 26, .09);
}

.rxc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rx-line);
}

.rxc-kicker,
.rxc-card-foot > span {
  color: var(--rx-ink-2);
  font: 700 12px/1.3 var(--rx-head);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rxc-card-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--rx-green-soft);
  color: var(--rx-green);
  font: 800 15px/1 var(--rx-head);
}

.rxc-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 7px 0 0;
  list-style: none;
}

.rxc-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rx-line);
}

.rxc-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--rx-line);
  border-radius: 50%;
  color: var(--rx-green);
  font: 700 12px/1 var(--rx-mono);
}

.rxc-steps strong,
.rxc-card-foot strong {
  display: block;
  color: var(--rx-ink);
  font: 700 17px/1.35 var(--rx-head);
}

.rxc-steps small {
  display: block;
  margin-top: 4px;
  color: var(--rx-ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.rxc-card-foot { padding: 18px 0 21px; }
.rxc-card-foot > span { display: block; margin-bottom: 5px; font-size: 10px; }

.rxc-main {
  padding: 70px 48px 88px;
  border-top: 1px solid var(--rx-line);
  background: var(--rx-paper);
}

.rxc-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(285px, .75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  max-width: 1224px;
  margin: 0 auto;
}

.rxc-form-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--rx-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 32, 26, .055);
}

.rxc-form-head { margin-bottom: 27px; }
.rxc-form-head .rx-tag { margin-bottom: 10px; }
.rxc-form-head h2,
.rxc-expect h2,
.rxc-direct h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.14;
}

.rxc-form-head p {
  max-width: 55ch;
  margin: 9px 0 0;
  color: var(--rx-ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.cform { display: grid; gap: 19px; }
.rxc-fields-two,
.rxc-optional-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.cf-field { display: grid; min-width: 0; gap: 7px; }
.cf-label { color: var(--rx-ink); font: 700 14px/1.4 var(--rx-head); }

.cf-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bac9c0;
  border-radius: 8px;
  background: #fff;
  color: var(--rx-ink);
  font: 400 16px/1.45 var(--rx-body);
  transition: border-color .15s, box-shadow .15s;
}

.cf-input:focus {
  border-color: var(--rx-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 90, 63, .15);
}

.cf-textarea { min-height: 132px; resize: vertical; }
.cf-textarea::placeholder { color: #6e7c75; opacity: 1; }

.rxc-optional {
  overflow: hidden;
  border: 1px solid var(--rx-line);
  border-radius: 9px;
  background: #f8faf8;
}

.rxc-optional summary {
  padding: 14px 16px;
  color: var(--rx-green);
  cursor: pointer;
  font: 700 14px/1.4 var(--rx-head);
}

.rxc-optional summary:hover { background: var(--rx-green-soft); }
.rxc-optional summary:focus-visible { outline: 3px solid var(--rx-blue); outline-offset: -3px; }
.rxc-optional-fields { padding: 0 16px 17px; }
.rxc-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.rxc-submit-row .rx-btn { min-height: 50px; height: auto; cursor: pointer; }
.rxc-submit-row .rx-btn:disabled { cursor: wait; opacity: .65; }
.rxc-response-time { color: var(--rx-ink-2); font-size: 14px; line-height: 1.5; }
.cf-msg { min-height: 0; color: var(--rx-ink-2); font-size: 15px; line-height: 1.5; }
.cf-msg:not(:empty) { padding: 13px 15px; border: 1px solid var(--rx-line); border-radius: 8px; background: var(--rx-paper); }
.cf-msg-ok { color: #145b3b; }
.cf-msg-err { color: #9a2f28; }

.rxc-aside { display: grid; gap: 26px; }
.rxc-expect { padding: 5px 0 23px; border-bottom: 1px solid var(--rx-line); }
.rxc-expect .rx-tag,
.rxc-direct .rx-tag,
.rxc-look-first .rx-tag { margin-bottom: 10px; }
.rxc-expect h2,
.rxc-direct h2 { font-size: 25px; }
.rxc-points { display: grid; gap: 15px; margin: 20px 0 0; padding: 0; list-style: none; }
.rxc-points li { position: relative; padding-left: 24px; color: var(--rx-ink-2); font-size: 15px; line-height: 1.55; }
.rxc-points li::before { position: absolute; top: .5em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--rx-green); content: ""; }
.rxc-pricing-note { margin: 17px 0 0; color: var(--rx-ink-2); font-size: 14px; line-height: 1.55; }
.rxc-direct { padding: 0 0 23px; border-bottom: 1px solid var(--rx-line); }
.rxc-direct > a { display: inline-block; margin-top: 12px; color: var(--rx-green); font: 700 16px/1.5 var(--rx-head); text-underline-offset: 3px; }
.rxc-direct > p { margin: 7px 0 0; color: var(--rx-ink-2); font-size: 14px; line-height: 1.5; }
.rxc-look-first { display: grid; gap: 10px; }
.rxc-look-first > a { display: flex; justify-content: space-between; gap: 12px; color: var(--rx-ink); font: 700 14px/1.45 var(--rx-head); text-decoration: none; }
.rxc-look-first > a span { color: var(--rx-green); }
.rxc-look-first > a:hover { color: var(--rx-green); text-decoration: underline; text-underline-offset: 3px; }
.rx-contact a:focus-visible,
.rx-contact button:focus-visible { outline: 3px solid var(--rx-blue); outline-offset: 3px; }

@media (max-width: 960px) {
  .rxc-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 34px; padding-inline: 32px; }
  .rxc-main { padding-inline: 32px; }
  .rxc-main-grid { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
}

@media (max-width: 760px) {
  .rx-contact { padding-top: 70px; }
  .rxc-hero { grid-template-columns: 1fr; gap: 34px; padding: 44px 24px 58px; }
  .rxc-hero h1 { max-width: 14ch; font-size: clamp(46px, 9vw, 64px); }
  .rxc-workflow-card { max-width: 600px; }
  .rxc-main { padding: 48px 24px 62px; }
  .rxc-main-grid { grid-template-columns: 1fr; gap: 38px; }
  .rxc-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .rxc-expect { grid-row: span 2; }
}

@media (max-width: 520px) {
  .rxc-hero { padding: 35px 17px 46px; }
  .rxc-main { padding: 36px 17px 48px; }
  .rxc-form-card { padding: 22px 18px; }
  .rxc-fields-two,
  .rxc-optional-fields,
  .rxc-aside { grid-template-columns: 1fr; }
  .rxc-expect { grid-row: auto; }
  .rxc-meta { gap: 6px; }
  .rxc-meta span { font-size: 12px; }
  .rxc-submit-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-input { transition: none; }
}


/* Give the conversation summary the same quiet receipt treatment as the overview. */
.rxc-workflow-card {
  padding: clamp(22px, 3.2vw, 32px);
  border-radius: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(15, 90, 63, .035) 0 1px, transparent 1px 36px),
    var(--rx-card);
}
.rxc-card-head { padding-bottom: 18px; }
.rxc-steps li { padding: 19px 0; }
.rxc-card-foot { padding: 18px 0 0; }


/* Use the navigation brand mark in the conversation-card badge. */
.rxc-card-mark img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
