/* /contact-us/ ("Book a Visit") layout. Linked on that page only by _tools/contact_page.py. */
.apx-ct-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.apx-ct-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f37021; }
.apx-ct-h2 { margin: 0 0 22px; font-size: 34px; line-height: 1.2; color: #0d1b3e; }
.apx-ct-lead { margin: -12px 0 22px; color: #5b6880; }
.apx-ct-sec { padding: 40px 0; }

/* 1. booking + surgeon panel */
.apx-ct-book { padding: 70px 0 40px; }
.apx-ct-book-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.apx-ct-card { background: #fff; border: 1px solid #e3eaf4; border-radius: 22px; padding: 34px 36px; box-shadow: 0 14px 40px rgba(13, 27, 62, .08); }
#apx-booking .bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#apx-booking .bk-timeset { margin-top: -6px; }
#apx-booking button:disabled.bk-wa, #apx-booking button:disabled.bk-mail { opacity: 1; background: #e9eef5; border-color: #e9eef5; color: #8a96ab; }

.apx-ct-doc { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; padding: 34px 32px 0;
  background: radial-gradient(circle at 70% 30%, #ffffff 0, #eef5fd 40%, #d9e7f6 100%); border: 1px solid #dbe6f3; }
.apx-ct-doc-name { margin: 0 0 6px; font-size: 28px; line-height: 1.2; color: #0d1b3e; }
.apx-ct-doc-role { margin: 0 0 10px; color: #33415c; font-size: 15px; line-height: 1.5; }
.apx-ct-doc-rating { margin: 0; font-size: 14px; color: #33415c; font-weight: 600; }
.apx-ct-doc-rating span { color: #f5a623; letter-spacing: 1px; margin-right: 4px; }
.apx-ct-doc-photo { position: relative; flex: 1; min-height: 380px; margin-top: 18px; }
.apx-ct-doc-photo::before { content: ""; position: absolute; left: 50%; bottom: -150px; width: 400px; height: 400px; transform: translateX(-50%); border-radius: 50%; background: #1f3967; }
.apx-ct-doc-photo img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; max-height: 520px; width: auto; }

/* 2. clinic cards */
.apx-cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.apx-cc { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3eaf4; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(13, 27, 62, .07); }
.apx-cc-photo { aspect-ratio: 16 / 8; overflow: hidden; background: #eef3f9; }
.apx-cc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apx-cc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.apx-cc-name { margin: 0; font-size: 24px; line-height: 1.25; color: #0d1b3e; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.apx-cc-name .apx-open { margin: 0 !important; }
.apx-cc-area { margin: 2px 0 14px; color: #5b6880; font-size: 15px; }
.apx-cc-addr { display: flex; gap: 10px; margin: 0 0 16px; color: #33415c; font-size: 15px; line-height: 1.55; }
.apx-cc-addr svg { flex: none; width: 20px; height: 20px; fill: #22a35a; margin-top: 2px; }
.apx-cc-hours { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.apx-cc-hours caption { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a96ab; padding-bottom: 6px; }
.apx-cc-hours th, .apx-cc-hours td { padding: 9px 0; border: 0; border-top: 1px solid #edf1f7; background: none; text-align: left; }
.apx-cc-hours th { font-weight: 500; color: #5b6880; }
.apx-cc-hours td { font-weight: 700; color: #0d1b3e; text-align: right; }
.apx-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.apx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: .15s; }
.apx-btn svg { width: 18px; height: 18px; fill: currentColor; }
.apx-btn-solid { background: #1f3967; color: #fff !important; border: 1.5px solid #1f3967; }
.apx-btn-solid:hover { background: #0d1b3e; border-color: #0d1b3e; }
.apx-btn-line { background: #fff; color: #1f3967 !important; border: 1.5px solid #c9d6e8; }
.apx-btn-line:hover { border-color: #1f3967; }

/* 3. other ways to reach us */
.apx-ct-reach { background: #f3f7fc; }
.apx-rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apx-rc { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid #e3eaf4; border-radius: 18px; text-decoration: none; transition: .15s; min-width: 0; }
.apx-rc:hover { border-color: #1f3967; transform: translateY(-2px); }
.apx-rc-ic { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #1f3967; }
.apx-rc-ic svg { width: 22px; height: 22px; fill: #fff; }
.apx-rc-wa .apx-rc-ic { background: #25d366; }
.apx-rc small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a96ab; }
.apx-rc b { display: block; font-size: 17px; color: #0d1b3e; overflow-wrap: anywhere; }

/* 4. map */
.apx-ct-map { padding-bottom: 70px; }
.apx-map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.apx-map-head .apx-ct-h2 { margin: 0; }
.apx-map-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.apx-map-tab { font: inherit; font-size: 14.5px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #c9d6e8; background: #fff; color: #1f3967; cursor: pointer; }
.apx-map-tab[aria-pressed="true"] { background: #1f3967; border-color: #1f3967; color: #fff; }
.apx-map-frame { border-radius: 20px; overflow: hidden; border: 1px solid #e3eaf4; height: 420px; background: #eef3f9; }
.apx-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* tablet */
@media (max-width: 1024px) {
  .apx-ct-book { padding: 44px 0 28px; }
  .apx-ct-book-grid { grid-template-columns: 1fr; }
  .apx-ct-doc { display: grid; grid-template-columns: 1fr 220px; padding: 28px 28px 0; }
  .apx-ct-doc > p, .apx-ct-doc > h2 { grid-column: 1; }
  .apx-ct-doc-photo { grid-column: 2; grid-row: 1 / span 4; min-height: 230px; margin: 0; }
  .apx-ct-doc-photo::before { width: 230px; height: 230px; bottom: -90px; }
  .apx-ct-h2 { font-size: 30px; }
}
/* phone: the form leads; surgeon panel becomes a short strip under it */
@media (max-width: 767px) {
  .apx-ct-wrap { padding: 0 16px; }
  .apx-ct-book { padding: 26px 0 16px; }
  .apx-ct-card { padding: 22px 18px; border-radius: 18px; }
  .apx-ct-doc { grid-template-columns: 1fr 120px; padding: 20px 18px 0; border-radius: 18px; }
  .apx-ct-doc-name { font-size: 21px; }
  .apx-ct-doc-role { font-size: 13.5px; }
  .apx-ct-doc-rating { font-size: 13px; padding-bottom: 18px; }
  .apx-ct-doc-photo { min-height: 160px; }
  .apx-ct-doc-photo::before { width: 140px; height: 140px; bottom: -50px; }
  .apx-ct-sec { padding: 28px 0; }
  .apx-ct-h2 { font-size: 25px; margin-bottom: 16px; }
  .apx-ct-lead { margin: -8px 0 16px; }
  .apx-cc-grid, .apx-rc-grid { grid-template-columns: 1fr; gap: 16px; }
  .apx-cc-body { padding: 20px 18px 22px; }
  .apx-cc-name { font-size: 21px; }
  .apx-cc-actions .apx-btn { flex: 1 1 140px; }
  .apx-rc { padding: 16px; }
  .apx-rc b { font-size: 16px; }
  .apx-map-frame { height: 320px; border-radius: 16px; }
  .apx-ct-map { padding-bottom: 40px; }
}

/* fixes after the first screenshots */
.apx-cc-hours, .apx-cc-hours tr, .apx-cc-hours th, .apx-cc-hours td { border-left: 0 !important; border-right: 0 !important; }
.apx-cc-hours { border: 0 !important; border-bottom: 1px solid #edf1f7 !important; }
.apx-cc-hours caption { caption-side: top; }
.apx-btn { white-space: nowrap; }
.apx-ct-doc-facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #c9d6e8; display: grid; gap: 8px; font-size: 14.5px; color: #33415c; }
.apx-ct-doc-facts li { position: relative; padding-left: 18px; line-height: 1.45; }
.apx-ct-doc-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #f37021; }
.apx-ct-doc-facts b { color: #0d1b3e; }
@media (max-width: 1024px) {
  .apx-ct-book-grid, .apx-cc-grid { grid-template-columns: minmax(0, 1fr); }
  .apx-ct-doc > ul { grid-column: 1; padding-bottom: 22px; }
}
@media (max-width: 767px) {
  .apx-rc-grid { grid-template-columns: minmax(0, 1fr); }
  .apx-ct-doc-facts { display: none; }
  .apx-btn { padding: 0 16px; font-size: 14.5px; }
  .apx-cc-actions .apx-btn { flex: 1 1 auto; }
}
/* tablet: three narrow cards broke the email address mid-word; stack them (layout audit 31 Oct 2026) */
@media (max-width: 1024px) { .apx-rc-grid { grid-template-columns: minmax(0, 1fr); } }
/* heading-to-text spacing (audit 31 Oct 2026) */
.apx-ct-doc-name { margin-bottom: 10px !important; }
.apx-cc-area { margin-top: 6px !important; }

/* phones: the two clinic map buttons side by side (equal halves, long name wraps to two lines), map right under them (user, 1 Nov 2026) */
@media (max-width: 767px) {
  .apx-map-head { display: block !important; }
  .apx-map-tabs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin: 10px 0 12px !important; width: 100%; }
  .apx-map-tabs > button { width: 100% !important; min-width: 0 !important; min-height: 52px; padding: 8px 10px !important; font-size: 13px !important; line-height: 1.25 !important; white-space: normal !important; text-align: center; border-radius: 14px !important; display: flex; align-items: center; justify-content: center; }
  .apx-map-frame { margin-top: 0 !important; }
}
