/* MedExPrep Contact (2026). Builds on mxp-home.css + mxp-why.css. */

/* hero holds both columns; the light band at the bottom lets the form card sit over it */
.mxc-hero { padding: 80px 0 96px; }
.mxc-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; }
.mxc-hero__copy { padding-top: 12px; }
.mxc-hero .mxw-h1 { font-size: clamp(38px, 4.6vw, 58px); }
.mxc-hero .mxw-lead { max-width: 520px; font-size: 18px; }

/* contact details (on dark) */
.mxc-info { list-style: none; display: grid; gap: 0; margin-top: 36px !important; max-width: 480px; border-top: 1px solid rgba(255, 255, 255, .12); }
.mxc-info li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.mxc-info__i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(59, 198, 194, .14); color: #7fe3dd; font-size: 17px; }
.mxc-info small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 1px; }
.mxc-info a { font-weight: 600; color: #fff !important; word-break: break-word; }
.mxc-info a:hover { color: #7fe3dd !important; }
.mxc-quick { margin-top: 22px !important; font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.mxc-quick a { color: #7fe3dd !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(127, 227, 221, .4) !important; }
.mxc-quick a:hover { text-decoration-color: #7fe3dd !important; }

/* form card */
.mxc-card { position: relative; padding: 36px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55), 0 2px 8px rgba(11, 27, 51, .08); scroll-margin-top: 96px; }
.mxc-form__head { margin-bottom: 4px; }
.mxc-form__head h2, .mxc-done h2 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.mxc-form__head p { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
.mxc-form { display: grid; gap: 18px; }
.mxc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mxc-row[hidden], .mxc-f[hidden] { display: none !important; }
.mxc-f { min-width: 0; }
.mxc-f > label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.mxc-opt { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.mxc-f input, .mxc-f select, .mxc-f textarea { display: block; width: 100%; margin: 0; padding: 12px 14px; font: 500 15.5px/1.45 var(--sans); color: var(--ink); background: #fff; border: 1px solid #d5dce6; border-radius: 10px; box-shadow: 0 1px 2px rgba(11, 27, 51, .04); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; height: auto; }
.mxc-f select { padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.mxc-f select:invalid, .mxc-f select.is-empty { color: #9aa6b6; }
.mxc-f textarea { min-height: 150px; resize: vertical; }
.mxc-f input::placeholder, .mxc-f textarea::placeholder { color: #9aa6b6; }
.mxc-f input:hover, .mxc-f select:hover, .mxc-f textarea:hover { border-color: #b9c4d2; }
.mxc-f input:focus, .mxc-f select:focus, .mxc-f textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23, 157, 153, .14); }
.mxc-f.is-bad input, .mxc-f.is-bad textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.mxc-err { display: none; margin-top: 6px !important; font-size: 13px; font-weight: 500; color: var(--bad); }
.mxc-f.is-bad .mxc-err { display: block; }

.mxc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mxc-form .mxh-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.mxc-fine { margin-top: -6px !important; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.mxc-fine a { color: var(--muted) !important; text-decoration: underline !important; text-underline-offset: 2px; }
.mxc-status { padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* success */
.mxc-done { text-align: center; padding: 40px 8px 24px; outline: none; }
.mxc-done__i { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-bg); color: var(--teal-d); font-size: 26px; }
.mxc-done p { max-width: 420px; margin: 10px auto 0 !important; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.mxc-done p b { color: var(--ink); }
.mxc-done__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* responsive */
@media (max-width: 1024px) {
  .mxc-grid { grid-template-columns: 1fr; gap: 40px; }
  .mxc-hero__copy { padding-top: 0; }
  .mxc-info { max-width: none; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  /* phones/tablets: heading, then the form, then contact details */
  .mxc-grid { gap: 0; }
  .mxc-hero__copy { display: contents; }
  .mxc-card { order: 4; margin-top: 32px; }
  .mxc-info { order: 5; margin-top: 40px !important; }
  .mxc-quick { order: 6; }
}
@media (max-width: 640px) {
  .mxc-hero { padding: 44px 0 56px; }
  .mxc-hero .mxw-h1 { font-size: 34px; }
  .mxc-hero .mxw-lead { font-size: 16.5px; }
  .mxc-info { grid-template-columns: 1fr; margin-top: 28px !important; }
  .mxc-card { padding: 24px 18px; border-radius: 16px; }
  .mxc-form__head h2, .mxc-done h2 { font-size: 21px; }
  .mxc-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .mxc * { animation: none !important; transition: none !important; } }
