/* =====================================================================
   Booking landing page (/appointment): appointment.php.
   Loaded after style.css, so it uses that file's colour tokens, fonts,
   buttons and form fields. No colour is named here; every one is a token.
   ===================================================================== */

/* ---------- Shared parts ---------- */
/* Section marker: an icon tile and a short label above a heading. */
.ap-mark { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 650 .95rem/1.3 var(--f-body); color: var(--c-primary); }
.ap-mark__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary); color: var(--c-on-dark); }
.ap-mark__icon .i { width: 18px; height: 18px; }
.ap-mark--dark { color: var(--c-on-dark); }
.ap-mark--dark .ap-mark__icon { background: var(--c-accent); color: var(--c-on-dark); }

.ap-section { padding-block: clamp(64px, 9vw, 104px); }
.ap-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 44px); }
.ap-head .ap-mark { margin-bottom: 14px; }
.ap-head--center { text-align: center; justify-items: center; max-width: 700px; margin-inline: auto; }
.ap-h2 { font-size: clamp(1.8rem, 5.2vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.018em; color: var(--c-primary); text-wrap: balance; }
.ap-h2 em { font-style: normal; color: var(--c-accent); }
.ap-h2--light { color: var(--c-on-dark); }
.ap-h2--light em { color: var(--c-on-dark-accent); }
.ap-lead { margin: 0; max-width: 60ch; color: var(--c-muted); font-size: 1.02rem; line-height: 1.75; }

/* ---------- Hero ---------- */
.ap-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--c-on-dark);
  padding: calc(var(--header-h) + 31px) 0 104px;
  background:
    radial-gradient(900px 520px at 88% 0%, rgb(var(--c-light-rgb) / .6) 0%, transparent 62%),
    radial-gradient(640px 440px at -6% 104%, rgb(var(--c-accent-rgb) / .24) 0%, transparent 60%),
    var(--c-darkest);
}
/* The iris (iris_rings()), large and faint behind the slider card. */
.ap-hero__ring { position: absolute; z-index: -1; width: 760px; height: 760px; right: -330px; top: 90px; color: rgb(var(--c-on-dark-rgb) / .09); pointer-events: none; }
.ap-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.ap-hero__copy > * { animation: apFadeUp .7s var(--ease) both; }
.ap-hero__copy > :nth-child(2) { animation-delay: .08s; }
.ap-hero__copy > :nth-child(3) { animation-delay: .16s; }
.ap-hero__copy > :nth-child(4) { animation-delay: .24s; }
.ap-hero__copy > :nth-child(5) { animation-delay: .32s; }
.ap-hero__copy > :nth-child(6) { animation-delay: .4s; }
.ap-hero__title { color: var(--c-on-dark); font-size: clamp(2.1rem, 7.2vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; max-width: 17ch; text-wrap: balance; }
.ap-hero__title em { display: block; font-style: normal; color: var(--c-on-dark-accent); }
.ap-hero__lead { margin: 16px 0 0; max-width: 52ch; text-wrap: pretty; font-size: 1.05rem; line-height: 1.6; color: rgb(var(--c-on-dark-rgb) / .72); }
/* The senior surgeon: face, name and council registration, linking to his profile. */
.ap-senior {
  display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin-top: 24px; padding: 10px 18px 10px 10px;
  border-radius: 20px; background: rgb(var(--c-on-dark-rgb) / .07); border: 1px solid rgb(var(--c-on-dark-rgb) / .14);
  color: var(--c-on-dark); text-decoration: none; transition: background .2s, border-color .2s;
}
.ap-senior:hover { color: var(--c-on-dark); background: rgb(var(--c-on-dark-rgb) / .11); border-color: rgb(var(--c-accent-rgb) / .7); }
.ap-senior__photo { flex: none; width: 60px; height: 60px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px var(--c-accent); }
.ap-senior__photo picture { display: block; height: 100%; }
.ap-senior__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.75); transform-origin: 48% 24%; }
.ap-senior__text { display: grid; gap: 2px; min-width: 0; }
.ap-senior__text strong { font: 700 1.05rem/1.25 var(--f-display); }
.ap-senior__text > span { font-size: .86rem; line-height: 1.35; color: rgb(var(--c-on-dark-rgb) / .72); }
.ap-senior__text small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .76rem; line-height: 1.3; color: var(--c-on-dark-accent); }
.ap-senior__text small .i { flex: none; width: 14px; height: 14px; }
.ap-senior__go { flex: none; width: 18px; height: 18px; margin-left: 4px; color: var(--c-on-dark-accent); transition: transform .2s; }
.ap-senior:hover .ap-senior__go { transform: translateX(3px); }
@media (max-width: 419px) {
  .ap-senior { gap: 12px; padding-right: 14px; }
  .ap-senior__photo { width: 52px; height: 52px; }
}
/* Three short reasons to book now: a plain row of ticks, no boxes. */
.ap-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 28px; padding: 0; }
.ap-ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 650; line-height: 1.3; color: var(--c-on-dark); }
.ap-ticks .i { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-dark); }
.ap-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-hero :focus-visible, .ap-book :focus-visible { outline-color: var(--c-focus-on-dark); }
.ap-card :focus-visible { outline-color: var(--c-focus); }

/* The street slider (vision_sim(true), styled as .simc in features.css): full width on phones, centred below
   the copy on tablets, the right-hand column on wide screens. */
.ap-hero__visual { min-width: 0; animation: apFadeUp .8s .25s var(--ease) both; }

@keyframes apFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Facts strip, half over the hero ---------- */
.ap-facts { position: relative; z-index: 2; margin-top: -64px; }
.ap-facts__grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.ap-fact { position: relative; padding: 20px 18px; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); transition: background .25s; }
.ap-fact:nth-child(-n+2) { border-top: 0; }
.ap-fact:nth-child(odd) { border-left: 0; }
.ap-fact::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.ap-fact:hover { background: var(--c-surface); }
.ap-fact:hover::before { transform: none; }
.ap-fact strong { display: block; font: 800 clamp(1.45rem, 5vw, 2rem)/1.1 var(--f-display); letter-spacing: -0.018em; color: var(--c-primary); transition: transform .35s var(--ease); }
.ap-fact:hover strong { transform: translateX(3px); }
.ap-fact span { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.45; color: var(--c-muted); }

/* ---------- Doctors ---------- */
.ap-docs { background: var(--c-surface); }
.ap-docs__grid { display: grid; gap: 22px; max-width: 1100px; margin-inline: auto; }
.ap-doc {
  display: flex; flex-direction: column; overflow: hidden; background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .35s;
}
.ap-doc:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.ap-doc__figure { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-tint); }
.ap-doc__figure picture { position: absolute; inset: 0; }
.ap-doc__figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .7s var(--ease); }
.ap-doc:hover .ap-doc__figure img { transform: scale(1.05); }
.ap-doc__figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, rgb(var(--c-darkest-rgb) / .82) 0%, rgb(var(--c-darkest-rgb) / .3) 55%, transparent 100%); pointer-events: none; }
.ap-doc__tag { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 8px 12px; border-radius: 8px; background: var(--c-accent); color: var(--c-btn-text); font: 700 .76rem/1 var(--f-body); box-shadow: 0 6px 16px rgb(var(--c-darkest-rgb) / .22); }
.ap-doc__exp { position: absolute; left: 20px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 10px; color: var(--c-on-dark); }
.ap-doc__exp strong { font: 300 2.6rem/1 var(--f-display); letter-spacing: -0.018em; }
.ap-doc__exp span { font-size: .78rem; line-height: 1.3; color: rgb(var(--c-on-dark-rgb) / .86); }
.ap-doc__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px; }
.ap-doc__name { font-size: 1.24rem; letter-spacing: -0.02em; }
.ap-doc__name a { color: inherit; text-decoration: none; }
.ap-doc__name a:hover { text-decoration: underline; }
.ap-doc__role { margin: 4px 0 0; font-size: .9rem; font-weight: 650; line-height: 1.4; color: var(--c-accent-text); }
.ap-doc__creds { margin: 10px 0 16px; font-size: .84rem; line-height: 1.6; color: var(--c-muted); }
.ap-doc__where { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: .86rem; color: var(--c-muted); }
.ap-doc__where .i { width: 18px; height: 18px; color: var(--c-accent); }
.ap-doc__book { margin-top: 12px; font-size: .94rem; color: var(--c-primary); }
.ap-doc--help {
  justify-content: center; padding: 30px 26px; border: 0; color: var(--c-on-dark);
  background: radial-gradient(420px 300px at 100% 0%, rgb(var(--c-light-rgb) / .7) 0%, transparent 65%), var(--c-primary);
}
.ap-doc--help h3 { margin-bottom: 12px; color: var(--c-on-dark); font-size: 1.45rem; letter-spacing: -0.02em; }
.ap-doc--help p { color: rgb(var(--c-on-dark-rgb) / .74); font-size: .95rem; line-height: 1.6; }
.ap-doc--help .btn { align-self: start; margin-top: 6px; }
.ap-doc__help-icon { width: 52px; height: 52px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 14px; background: rgb(var(--c-accent-rgb) / .2); color: var(--c-on-dark-accent); }
.ap-doc__help-icon .i { width: 26px; height: 26px; }

.ap-also { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 44px; }
.ap-also__label { font-size: .95rem; font-weight: 700; color: var(--c-primary); }
.ap-also__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ap-also__list a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border-radius: 10px;
  background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-primary); font-size: .86rem; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.ap-also__list .i { width: 16px; height: 16px; color: var(--c-accent-text); transition: color .2s; }
.ap-also__list a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.ap-also__list a:hover .i { color: var(--c-on-dark-accent); }

/* ---------- Booking questions ---------- */
.ap-faq__grid { display: grid; gap: 24px; }
.ap-faq__head .ap-lead { margin-top: 12px; }
.ap-faq__head .btn { margin-top: 18px; }
.ap-faq__cols { display: grid; gap: 10px; align-items: start; }
.ap-faq .faq summary { font-size: 1rem; padding: 14px 14px 14px 18px; }

/* ---------- Booking band and form ---------- */
.ap-book {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: var(--c-on-dark);
  padding-block: clamp(64px, 9vw, 104px);
  background:
    radial-gradient(820px 520px at 6% 0%, rgb(var(--c-light-rgb) / .6) 0%, transparent 62%),
    radial-gradient(600px 420px at 100% 100%, rgb(var(--c-accent-rgb) / .18) 0%, transparent 60%),
    var(--c-darkest);
}
.ap-book__ring { position: absolute; z-index: -1; width: 820px; height: 820px; left: -320px; bottom: -360px; color: rgb(var(--c-on-dark-rgb) / .08); pointer-events: none; }
.ap-book__grid { display: grid; gap: 36px; align-items: start; }
.ap-book__text { margin: 16px 0 28px; max-width: 46ch; font-size: 1.02rem; line-height: 1.75; color: rgb(var(--c-on-dark-rgb) / .72); }
.ap-perks { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.ap-perks li { display: flex; align-items: flex-start; gap: 16px; }
.ap-perks__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgb(var(--c-accent-rgb) / .14); border: 1px solid rgb(var(--c-accent-rgb) / .4); color: var(--c-on-dark-accent); transition: background .3s, color .3s; }
.ap-perks li:hover .ap-perks__icon { background: var(--c-accent); color: var(--c-btn-text); }
.ap-perks strong { display: block; color: var(--c-on-dark); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.ap-perks p { margin: 2px 0 0; font-size: .9rem; line-height: 1.55; color: rgb(var(--c-on-dark-rgb) / .62); }
.ap-book__call { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 24px; border-top: 1px solid rgb(var(--c-on-dark-rgb) / .12); font-size: .9rem; color: rgb(var(--c-on-dark-rgb) / .62); }
.ap-book__call > span { flex-basis: 100%; }
.ap-book__call a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 12px;
  background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .18);
  color: var(--c-on-dark); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.ap-book__call a:hover { color: var(--c-on-dark); background: rgb(var(--c-on-dark-rgb) / .12); border-color: rgb(var(--c-on-dark-rgb) / .4); transform: translateY(-2px); }
.ap-book__call .i { color: var(--c-on-dark-accent); }
.ap-book__call b { font-weight: 700; margin-right: 4px; }

.ap-card { overflow: hidden; background: var(--c-card); color: var(--c-text); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgb(var(--c-scrim-rgb) / .4); }
.ap-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 18px 18px; background: var(--c-surface); border-top: 4px solid var(--c-accent); border-bottom: 1px solid var(--c-line); }
.ap-card__title { font-size: 1.25rem; letter-spacing: -0.02em; }
.ap-card__sub { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .84rem; color: var(--c-muted); }
.ap-card__sub .i { width: 16px; height: 16px; color: var(--c-accent); }
.ap-card__price { flex: none; padding: 7px 12px; border-radius: 999px; background: rgb(var(--c-accent-rgb) / .1); color: var(--c-accent-text); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.ap-card__body { padding: 20px 16px 24px; }
.ap-card .notice { margin-bottom: 16px; }
.ap-form { margin-top: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .ap-docs__grid { grid-template-columns: 1fr 1fr; }
  .ap-card__head { padding: 22px 28px 20px; }
  .ap-card__body { padding: 26px 28px 28px; }
  .ap-book__call > span { flex-basis: auto; }
}
@media (min-width: 720px) {
  .ap-hero__visual { width: 100%; max-width: 580px; justify-self: center; }
  .ap-facts__grid { grid-template-columns: repeat(4, 1fr); }
  .ap-fact { padding: 26px 24px 24px 28px; border-top: 0; }
  .ap-fact:nth-child(odd) { border-left: 1px solid var(--c-line); }
  .ap-fact:first-child { border-left: 0; }
  .ap-fact::before { left: 28px; right: 24px; }
}
@media (min-width: 960px) {
  .ap-hero { padding: calc(var(--header-h) + 61px) 0 150px; }
  .ap-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .ap-hero__visual { max-width: none; }
  .ap-hero__ring { width: 980px; height: 980px; right: -250px; top: auto; bottom: -330px; }
  .ap-docs__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .ap-faq__grid { grid-template-columns: minmax(0, .75fr) minmax(0, 2fr); gap: 48px; align-items: start; }
  .ap-faq__cols { grid-template-columns: 1fr 1fr; }
  .ap-book__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; }
  .ap-book__copy { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-hero__copy > *, .ap-hero__visual { animation: none; }
}
