/* PharmaScript Contact Us page (page-contact-us.php). Builds on ps-home.css (tokens, .psx-btn, .psx-eyebrow, reveals). */

.psc { --psc-radius: 28px; --psc-line: #E3E9F3; --psc-field: #D3DCEA; --psc-err: #B42318; }

/* ---------- hero: the landing hero's type (Source Serif 4 + Libre Franklin) ---------- */
.psx .psc-hero {
  --ps-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ps-body: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--ps-body);
  position: relative;
  padding: clamp(28px, 3vw, 40px) 0 clamp(24px, 2.6vw, 34px);
}
.psx .psc-hero .psx-eyebrow { font-weight: 600; margin-bottom: 10px; }
.psc-title { font-size: clamp(42px, 5.3vw, 68px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.psc-title em { color: var(--ps-blue); }
.psc-lead { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ps-ink-2); }

.psc-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.psx .psc-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 20px 6px 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ps-shadow);
  font-size: 16px;
  font-weight: 600;
  color: var(--ps-ink);
}
.psx .psc-chip:hover { color: var(--ps-blue); transform: translateY(-1px); }
.psc-chip__ic, .psc-row__ic { display: grid; place-items: center; border-radius: 50%; background: var(--ps-sky); color: var(--ps-blue); }
.psc-chip__ic { width: 36px; height: 36px; }
.psc svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.psc-chip__ic svg { width: 18px; height: 18px; }

/* ---------- form + reach us ---------- */
.psc-main { position: relative; z-index: 1; padding-bottom: clamp(28px, 3vw, 40px); }
.psc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.psc-card { background: #fff; border-radius: var(--psc-radius); box-shadow: var(--ps-shadow); padding: clamp(24px, 3.4vw, 44px); }
.psc-h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; }
.psc-sub { margin-top: 6px; font-size: 15px; color: var(--ps-ink-3); }

/* fields (scoped hard: the theme styles bare inputs and .wpcf7 globally) */
.psc .wpcf7 { margin: 0; }
.psc .wpcf7 form { margin: 0; }
.psc .wpcf7 p { margin: 0; }
.psc .wpcf7 br { display: none; }
.psc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin-top: 26px; }
.psc-field--full { grid-column: 1 / -1; }
.psc .psc-field label { display: block; margin: 0 0 8px; font-size: 14.5px; font-weight: 700; color: var(--ps-ink); letter-spacing: 0; text-transform: none; }
.psc .wpcf7-form-control-wrap { display: block; position: relative; }
.psc .psc-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 18px;
  border: 1.5px solid var(--psc-field);
  border-radius: 14px;
  text-indent: 0;       /* the theme indents .wpcf7-text by 10px */
  background: #fff;
  box-shadow: none;
  color: var(--ps-ink);
  font-family: var(--ps-body);
  font-size: 16px;      /* 16px stops iOS zooming into the field */
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.psc .psc-form textarea { height: auto; min-height: 168px; padding: 14px 18px; resize: vertical; line-height: 1.55; }
.psc .psc-form :is(input, textarea)::placeholder { color: #94A0B5; opacity: 1; }
.psc .psc-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea):hover { border-color: #AFBDD3; }
.psc .psc-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
  outline: none;
  border-color: var(--ps-blue);
  box-shadow: 0 0 0 4px rgba(16, 78, 174, .14);
}
.psc .psc-form .wpcf7-not-valid { border-color: var(--psc-err) !important; }
.psc .psc-form .wpcf7-not-valid:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12) !important; }
.psc .wpcf7-not-valid-tip { display: block; margin-top: 7px; font-size: 14px; font-weight: 500; color: var(--psc-err); }
.psc-count { display: block; margin-top: 7px; text-align: right; font-size: 13px; color: var(--ps-ink-3); }
.psc-count .wpcf7-character-count { font-variant-numeric: tabular-nums; }

/* honeypot: off-screen for people, still in the form for bots */
.psc .psc-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.psc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.psc-actions > p { display: contents; }   /* CF7 wraps the button in a <p> */
.psc .psc-submit.psx-btn { border: 0; outline: 0; box-shadow: none; font-family: var(--ps-body); }
.psc .psc-submit.psx-btn:focus-visible { outline: 3px solid var(--ps-blue-l); outline-offset: 3px; }
.psc-submit .psx-btn__arrow {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23104EAE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.psc .wpcf7-spinner { margin: 0; background-color: var(--ps-blue); }
.psc .psc-form.submitting .psc-submit { opacity: .7; pointer-events: none; }
.psc .psc-form.submitting .psc-submit .psx-btn__arrow { animation: psc-nudge .8s ease-in-out infinite alternate; }
@keyframes psc-nudge { to { transform: translateX(4px); } }

/* result message */
.psc .wpcf7 form .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.psc .wpcf7 form.sent .wpcf7-response-output { background: var(--ps-mint-soft); color: var(--ps-mint-d); }
.psc .wpcf7 form:is(.invalid, .unaccepted, .payment-required) .wpcf7-response-output { background: #FFF4E0; color: #8A5300; }
.psc .wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output { background: #FDECEC; color: var(--psc-err); }

.psc-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--psc-line); font-size: 13.5px; line-height: 1.55; color: var(--ps-ink-3); }
.psx .psc-note a { color: var(--ps-ink-2); text-decoration: underline; text-decoration-color: rgba(16, 78, 174, .35); text-underline-offset: 3px; }
.psx .psc-note a:hover { color: var(--ps-blue); text-decoration-color: currentColor; }
/* the badge is replaced by the notice above, as Google allows */
.grecaptcha-badge { visibility: hidden !important; }

/* reach us */
.psc-list { margin-top: 14px; }
.psc-list li + li .psc-row { border-top: 1px solid var(--psc-line); }
.psx .psc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 0; color: inherit; }
.psc-row__ic { width: 44px; height: 44px; }
.psc-row__ic svg { width: 20px; height: 20px; }
.psc-row__txt i { display: block; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ps-ink-3); }
.psc-row__txt b { display: block; margin-top: 2px; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ps-ink); overflow-wrap: anywhere; }
.psc-row__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ps-blue); transition: transform .3s var(--ps-ease), background-color .2s; }
.psc-row__go svg { width: 17px; height: 17px; stroke-width: 2.2; }
.psx a.psc-row:hover .psc-row__txt b { color: var(--ps-blue); }
.psx a.psc-row:hover .psc-row__go { background: var(--ps-sky); transform: translateX(3px); }
.psx a.psc-row:focus-visible { outline-offset: 2px; }

/* ---------- map ---------- */
.psc-map-sec { position: relative; z-index: 1; padding: clamp(20px, 2.4vw, 32px) 0 clamp(64px, 8vw, 110px); }
.psc-map { position: relative; height: clamp(340px, 36vw, 460px); border-radius: var(--psc-radius); overflow: hidden; background: var(--ps-sky); box-shadow: var(--ps-shadow); }
.psc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.psc-map__card {
  position: absolute;
  left: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  display: grid;
  gap: 4px;
  max-width: 340px;
  padding: 20px 22px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ps-shadow-lg);
}
.psc-map__card b { font-family: var(--ps-display); font-size: 19px; font-weight: 700; color: var(--ps-ink); }
.psc-map__card span:not(.psx-btn__arrow) { font-size: 15px; color: var(--ps-ink-2); }
.psc-map__card .psx-btn { justify-self: start; height: 50px; margin-top: 12px; font-size: 15.5px; }
.psc-map__card .psx-btn__arrow { width: 36px; height: 36px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .psc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .psc-fields { grid-template-columns: 1fr; gap: 18px; }
  .psc-actions .psc-submit { width: 100%; }
  .psc-map { height: auto; overflow: visible; background: none; box-shadow: none; }
  .psc-map iframe { position: relative; display: block; height: 300px; border-radius: var(--psc-radius); box-shadow: var(--ps-shadow); }
  .psc-map__card { position: relative; left: auto; bottom: auto; max-width: none; margin: -40px 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .psc .psc-form.submitting .psc-submit .psx-btn__arrow { animation: none; }
}
