/* =====================================================================
   Genus Dental: the Book Appointment landing page (/appointment).
   Only appointment.php loads this file, after app.css (Tailwind + custom.css),
   so the site's header, footer and WhatsApp widget keep their own look.
   Every rule here sits under .ap (or .is-appointment on the body) and every
   class starts with ap-, so nothing leaks into the rest of the site.

   The layout follows the Sarvdrishti booking page: dark hero with a slider,
   a facts card across its bottom edge, doctors, reviews, a dark
   booking section and FAQs, plus a booking bar on phones. The booking form
   keeps the site's own Tailwind classes, so it looks as it always has.

   Colours are the site's brand greens (includes/tailwind.config.json), with
   mint as the accent on dark backgrounds.

   Corners use the same even radii as the rest of the site (Tailwind's
   rounded-lg / -xl / -2xl / -3xl / -full), so the page feels like part of it.
   ===================================================================== */

.ap,
.is-appointment {
    --ap-dark: #052b22;        /* brand-dark: hero and booking backgrounds */
    --ap-deep: #06372b;        /* brand-900 */
    --ap-green: #084334;       /* brand-800: the site's main green */
    --ap-green-2: #0d5440;     /* brand-700 */
    --ap-leaf: #16a34a;        /* brand-500 */
    --ap-mint: #86efac;        /* brand-300: accent on dark */
    --ap-mint-2: #4ade80;      /* brand-400 */
    --ap-mint-soft: #dcfce7;   /* brand-100 */
    --ap-tint: #eef7f1;        /* pale green section background */
    --ap-tint-2: #dcefe3;
    --ap-ink: #0f172a;
    --ap-ink-2: #475569;
    --ap-line: #dde9e2;
    --ap-amber: #f59e0b;       /* stars */

    /* Corners: the main site's Tailwind radii */
    --r-xl: 24px;              /* rounded-3xl: big panels */
    --r-lg: 16px;              /* rounded-2xl: cards, photos */
    --r-md: 16px;              /* rounded-2xl: images inside panels */
    --r-sm: 12px;              /* rounded-xl: buttons, icon tiles, FAQs */
    --r-xs: 8px;               /* rounded-lg: small buttons and links */
    --r-pill: 9999px;          /* rounded-full: badges on photos */

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow: 0 22px 54px rgba(5, 43, 34, 0.14);
    --shadow-sm: 0 4px 18px rgba(5, 43, 34, 0.07);
    --gutter: 32px;            /* matches the header's px-8 */
}

.ap {
    color: var(--ap-ink);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
}

/* Same width as the header and footer (max-w-7xl with px-4 / px-6 / px-8) */
.ap-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.ap-sec {
    position: relative;
    padding: 88px 0;
}

.ap .ico {
    vertical-align: -0.125em;
}

/* --- Buttons --- */
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 16px 28px;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease,
        background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ap-btn .ico {
    font-size: 0.9em;
}

.ap-btn:hover {
    transform: translateY(-2px);
}

.ap-btn:focus-visible {
    outline: 3px solid var(--ap-mint);
    outline-offset: 3px;
}

.ap-btn-sm {
    font-size: 0.82rem;
    padding: 11px 18px;
    border-radius: var(--r-xs);
}

.ap-btn-mint {
    background: linear-gradient(180deg, #a7f3c4 0%, var(--ap-mint-2) 100%);
    color: var(--ap-dark);
    box-shadow: 0 10px 26px rgba(74, 222, 128, 0.25);
}

.ap-btn-mint:hover {
    box-shadow: 0 14px 32px rgba(74, 222, 128, 0.38);
}

.ap-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.ap-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.ap-btn-green {
    background: var(--ap-green);
    color: #fff;
    box-shadow: 0 10px 26px rgba(8, 67, 52, 0.22);
}

.ap-btn-green:hover {
    background: var(--ap-deep);
}

.ap-btn-green:focus-visible,
.ap-btn-line:focus-visible {
    outline-color: var(--ap-green);
}

.ap-btn-line {
    background: #fff;
    border-color: var(--ap-line);
    color: var(--ap-green);
}

.ap-btn-line:hover {
    border-color: var(--ap-green);
}

/* --- Rings: soft circles spreading out from a tooth, behind the dark sections ---
   Each use sets its own size and place. */
.ap-rings {
    --gap: 36px;
    position: absolute;
    z-index: 0;
    aspect-ratio: 1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
    mask-image: radial-gradient(closest-side, #000 45%, transparent);
}

.ap-rings::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 calc(var(--gap) - 2px), rgba(134, 239, 172, 0.075) calc(var(--gap) - 2px) var(--gap));
    -webkit-mask-image: radial-gradient(circle, transparent calc(var(--gap) * 1.5), #000 calc(var(--gap) * 1.5));
    mask-image: radial-gradient(circle, transparent calc(var(--gap) * 1.5), #000 calc(var(--gap) * 1.5));
}

.ap-rings .ico {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    font-size: calc(var(--gap) * 1.5);
    color: rgba(134, 239, 172, 0.13);
}

/* --- Hero --- */
.ap-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: 72px 0 160px;
    background:
        radial-gradient(900px 520px at 88% 8%, rgba(22, 163, 74, 0.42) 0%, transparent 62%),
        radial-gradient(640px 420px at -6% 104%, rgba(134, 239, 172, 0.14) 0%, transparent 60%),
        var(--ap-dark);
}

/* Centred under the slider card, in the band the bottom padding leaves above
   the facts card. --card: the card's width (460px, or its column if narrower) */
.ap-hero-rings {
    --card: min(460px, (min(100%, 1280px) - 128px) * 0.44);
    right: calc(max(var(--gutter), (100% - 1216px) / 2) + var(--card) / 2);
    bottom: calc(62px + (160px - 62px) / 2);
    width: 1000px;
    translate: 50% 50%;
}

.ap-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 64px;
    align-items: center;
}

.ap-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.ap-hero h1 em {
    font-style: normal;
    color: var(--ap-mint);
}

.ap-lead {
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.74);
    max-width: 560px;
    margin-bottom: 26px;
}

.ap-concerns-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.ap-concerns {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.ap-concerns a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px 8px 13px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ap-concerns a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-mint-2);
    flex-shrink: 0;
}

.ap-concerns a:hover,
.ap-concerns a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(134, 239, 172, 0.55);
}

.ap-concerns a:focus-visible {
    outline: 2px solid var(--ap-mint);
    outline-offset: 2px;
}

.ap-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Section marker ---
   Icon tile plus label. The label pulls into focus (blur to sharp) and the
   icon settles in when the marker scrolls into view (appointment.js). */
.ap-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ap-mark-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    color: #fff;
    background: var(--ap-green);
    border-radius: var(--r-xs);
}

.ap-mark-text {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ap-green);
}

.ap-mark-dark .ap-mark-icon {
    background: var(--ap-mint);
    color: var(--ap-dark);
}

.ap-mark-dark .ap-mark-text {
    color: #fff;
}

.js .ap-mark .ap-mark-text {
    filter: blur(5px);
    opacity: 0.35;
    transition: filter 0.9s ease 0.15s, opacity 0.9s ease 0.15s;
}

.js .ap-mark .ap-mark-icon .ico {
    transform: scale(0.4) rotate(-30deg);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}

.js .ap-mark.is-focused .ap-mark-text {
    filter: none;
    opacity: 1;
}

.js .ap-mark.is-focused .ap-mark-icon .ico {
    transform: none;
    opacity: 1;
}

/* --- Before / after slider --- */
.ap-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.ap-result {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-xl);
    padding: 18px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.ap-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 8px 14px 14px;
}

.ap-result-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.ap-result-hint {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.ap-result-hint .ico {
    color: var(--ap-mint);
    font-size: 0.8em;
}

.ap-result-hint .ico + .ico {
    margin: 0 5px 0 -3px;
}

.ap-stage {
    --pos: 55%;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--ap-deep);
    user-select: none;
    -webkit-user-select: none;
}

.ap-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ap-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-layer-before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ap-label {
    position: absolute;
    bottom: 14px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    padding: 6px 12px 5px;
    border-radius: var(--r-pill);
    pointer-events: none;
}

.ap-label-before {
    left: 14px;
    background: rgba(5, 43, 34, 0.8);
    color: #fff;
}

.ap-label-after {
    right: 14px;
    background: var(--ap-mint);
    color: var(--ap-dark);
}

.ap-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(5, 43, 34, 0.12), 0 0 18px rgba(5, 43, 34, 0.3);
    z-index: 3;
    pointer-events: none;
}

.ap-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ap-mint-2);
    color: var(--ap-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    box-shadow: 0 6px 20px rgba(5, 43, 34, 0.3);
}

.ap-handle .ico + .ico {
    margin-left: 1px;
}

.ap-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
}

.ap-stage:focus-within .ap-handle {
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.55), 0 6px 20px rgba(5, 43, 34, 0.3);
}

.ap-result-foot {
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    padding: 14px 8px 2px 14px;
}

/* --- Facts card ---
   Pulled up so it straddles the bottom edge of the hero. */
.ap-facts-wrap {
    --overlap: 62px;           /* how far the card sits up over the hero */
    position: relative;
    z-index: 2;
    margin-top: calc(var(--overlap) * -1);
    /* Below the hero, the same pale green as the doctors section that follows */
    background: linear-gradient(transparent var(--overlap), var(--ap-tint) 0);
}

.ap-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ap-fact {
    position: relative;
    padding: 28px 28px 26px 32px;
    border-left: 1px solid var(--ap-line);
    transition: background 0.25s ease;
}

.ap-fact:first-child {
    border-left: none;
}

.ap-fact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 28px;
    height: 3px;
    background: var(--ap-mint-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.ap-fact:hover {
    background: var(--ap-tint);
}

.ap-fact:hover::before {
    transform: none;
}

.ap-fact-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ap-green);
    transition: color 0.25s ease, transform 0.35s var(--ease-out);
}

.ap-fact:hover .ap-fact-value {
    color: var(--ap-green-2);
    transform: translateX(3px);
}

.ap-fact-value .ico {
    font-size: 0.62em;
    color: var(--ap-amber);
    vertical-align: 0.14em;
}

.ap-fact-label {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ap-ink-2);
    margin-top: 6px;
}

/* --- Section headings --- */
.ap-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: end;
    margin-bottom: 44px;
}

.ap-head-center {
    display: block;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.ap-h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--ap-ink);
}

.ap-h2 em {
    font-style: normal;
    color: var(--ap-green-2);
    background: linear-gradient(transparent 62%, rgba(134, 239, 172, 0.55) 62%, rgba(134, 239, 172, 0.55) 90%, transparent 90%);
}

.ap-h2-light {
    color: #fff;
}

.ap-h2-light em {
    color: var(--ap-mint);
    background: none;
}

.ap-sec-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ap-ink-2);
}

.ap-head-center .ap-sec-lead {
    margin-top: 14px;
}

/* --- Doctors --- */
.ap-doctors {
    background: var(--ap-tint);
}

.ap-docs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.ap-doc {
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.35s ease,
        border-color 0.3s ease;
}

.ap-doc:hover {
    transform: translateY(-8px);
    border-color: var(--ap-mint);
    box-shadow: var(--shadow);
}

.ap-doc-figure {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ap-tint-2);
}

/* The photo, or the initials placeholder for a doctor without one (doctor_photo() in partials.php) */
.ap-doc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.7s var(--ease-out);
}

.ap-doc:hover .ap-doc-img {
    transform: scale(1.05);
}

/* Shade at the foot of the photo for the figure */
.ap-doc-figure::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(to top, rgba(5, 43, 34, 0.85) 0%, rgba(5, 43, 34, 0.35) 55%, transparent 100%);
    pointer-events: none;
}

.ap-doc-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ap-dark);
    background: var(--ap-mint);
    padding: 8px 12px 7px;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 16px rgba(5, 43, 34, 0.22);
}

.ap-doc-badge {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.ap-doc-badge strong {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ap-doc-badge span {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

.ap-doc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 20px;
}

.ap-doc-name {
    font-size: 1.24rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ap-ink);
}

.ap-doc-role {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ap-green-2);
    margin-top: 4px;
}

.ap-doc-creds {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--ap-ink-2);
    margin-top: 10px;
    margin-bottom: 18px;
}

.ap-doc-book {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--ap-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ap-green);
}

.ap-doc-book .ico {
    font-size: 0.8rem;
    transition: transform 0.25s var(--ease-out);
}

.ap-doc-book:hover {
    color: var(--ap-green-2);
}

.ap-doc-book:hover .ico {
    transform: translateX(4px);
}

.ap-also {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 48px;
}

.ap-also-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ap-ink);
}

.ap-also-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ap-also-list a {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ap-green);
    background: #fff;
    border: 1px solid var(--ap-line);
    padding: 6px 14px;
    border-radius: var(--r-xs);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ap-also-list a span {
    font-weight: 500;
    color: var(--ap-ink-2);
    transition: color 0.2s;
}

.ap-also-list a:hover {
    background: var(--ap-green);
    border-color: var(--ap-green);
    color: #fff;
}

.ap-also-list a:hover span {
    color: rgba(255, 255, 255, 0.75);
}

/* --- Reviews --- */
.ap-reviews {
    background: #fff;
}

.ap-ratings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ap-ratings a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ap-ink);
    background: #fff;
    border: 1px solid var(--ap-line);
    padding: 7px 13px;
    border-radius: var(--r-xs);
    transition: border-color 0.2s, background 0.2s;
}

.ap-ratings a .ico {
    color: var(--ap-amber);
}

.ap-ratings a strong {
    font-weight: 800;
}

.ap-ratings a span {
    font-weight: 500;
    color: var(--ap-ink-2);
}

.ap-ratings a:hover {
    border-color: var(--ap-mint-2);
    background: var(--ap-tint);
}

.ap-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ap-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ap-tint);
    border: 1px solid var(--ap-line);
    border-radius: var(--r-lg);
    padding: 28px 26px 22px;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease,
        background 0.3s ease, border-color 0.3s ease;
}

.ap-quote:hover {
    transform: translateY(-6px);
    background: #fff;
    border-color: var(--ap-mint);
    box-shadow: var(--shadow);
}

.ap-quote-mark {
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ap-mint-2);
    opacity: 0.6;
}

.ap-quote-stars {
    color: var(--ap-amber);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.ap-quote-text {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--ap-ink);
    margin-bottom: 22px;
}

.ap-quote-who {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--ap-line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-quote-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ap-green);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-quote-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ap-ink);
}

.ap-quote-src {
    display: block;
    font-size: 0.76rem;
    color: var(--ap-ink-2);
}

.ap-more {
    text-align: center;
    margin-top: 36px;
}

.ap-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ap-green);
    border-bottom: 2px solid var(--ap-mint);
    padding-bottom: 2px;
    transition: border-color 0.2s, gap 0.25s var(--ease-out);
}

.ap-link .ico {
    font-size: 0.78rem;
}

.ap-link:hover {
    gap: 12px;
    border-color: var(--ap-green);
}

/* --- Booking --- */
.ap-booking {
    background:
        radial-gradient(820px 520px at 6% 0%, rgba(22, 163, 74, 0.4) 0%, transparent 62%),
        var(--ap-dark);
    color: #fff;
    /* clip, not hidden: a hidden box can be scrolled, and the jump to #form
       inside it would scroll the section's own content */
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
}

/* The tooth under the copy, in the space the (taller) form leaves free */
.ap-booking-rings {
    left: calc(max(var(--gutter), (100% - 1216px) / 2) + 56px);
    bottom: 110px;
    width: 1000px;
    translate: -50% 50%;
}

.ap-booking-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
    gap: 64px;
    align-items: start;
}

/* Stays in view beside the long form */
.ap-booking-copy {
    position: sticky;
    top: 112px;
    padding-top: 12px;
}

.ap-booking-desc {
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    max-width: 470px;
    margin: 16px 0 32px;
}

.ap-perks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 34px;
}

.ap-perk {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ap-perk-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: rgba(134, 239, 172, 0.12);
    border: 1px solid rgba(134, 239, 172, 0.32);
    color: var(--ap-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.ap-perk:hover .ap-perk-icon {
    background: var(--ap-mint);
    color: var(--ap-dark);
}

.ap-perk-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.ap-perk-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
}

.ap-booking-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.62);
}

.ap-booking-contact p {
    flex-basis: 100%;
    margin-bottom: 2px;
}

.ap-booking-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}

.ap-booking-contact a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.ap-booking-contact a .ico {
    color: var(--ap-mint);
}

.ap-booking-contact a.is-wa .ico {
    color: #25d366;
}

/* The form (its own Tailwind look): only a deeper shadow on the dark background,
   and room under the sticky header when a link jumps to #form */
.ap-booking-form {
    scroll-margin-top: 100px;
}

.ap-booking-form > div {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* A reason or doctor just picked from a link above (appointment.js) */
.ap-flash {
    animation: apPop 0.7s var(--ease-out);
}

@keyframes apPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* --- FAQ + visit --- */
.ap-faq {
    background: var(--ap-tint);
}

.ap-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 56px;
    align-items: start;
}

.ap-faq .ap-h2 {
    margin-bottom: 28px;
}

.ap-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-faq-item {
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: var(--r-sm);
    transition: border-color 0.2s, box-shadow 0.25s;
}

.ap-faq-item[open] {
    border-color: var(--ap-mint);
    box-shadow: var(--shadow-sm);
}

.ap-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ap-ink);
}

.ap-faq-item summary::-webkit-details-marker {
    display: none;
}

.ap-faq-item summary .ico {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--ap-green);
    transition: transform 0.25s ease;
}

.ap-faq-item[open] summary .ico {
    transform: rotate(180deg);
}

.ap-faq-item summary:focus-visible {
    outline: 2px solid var(--ap-green);
    outline-offset: -2px;
    border-radius: inherit;
}

.ap-faq-item p {
    padding: 0 22px 20px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ap-ink-2);
}

.ap-place {
    position: sticky;
    top: 112px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.ap-place-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--ap-line);
}

.ap-place-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--ap-mint-soft);
    color: var(--ap-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.ap-place-name {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ap-ink);
}

.ap-place-addr {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--ap-ink-2);
    margin-top: 4px;
}

.ap-place-mark {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 3px;
}

.ap-hours {
    width: 100%;
    font-size: 0.84rem;
    border-collapse: collapse;
}

.ap-hours td {
    padding: 6px 0;
    color: var(--ap-ink-2);
}

.ap-hours td:last-child {
    text-align: right;
}

.ap-hours .is-today td {
    font-weight: 700;
    color: var(--ap-green);
}

.ap-hours td span {
    margin-left: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--ap-green);
    background: var(--ap-mint-soft);
    padding: 2px 6px;
    border-radius: 4px;
}

.ap-hours .is-closed {
    font-weight: 700;
    color: #e11d48;
}

.ap-place-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ap-line);
}

.ap-place-links .ap-btn {
    flex: 1 1 auto;
}

/* --- Booking bar (phones only) --- */
.ap-bar {
    display: none;
}

/* --- Scroll reveal (appointment.js; only while JS is running) --- */
.js .ap-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* appointment.js drops the reveal classes once the fade is over, so cards
   get their own hover transitions back */
.js .ap-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* --- Load-in --- */
@keyframes apFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ap-hero-content > * {
    animation: apFadeUp 0.7s ease both;
}

.ap-hero-content > :nth-child(2) { animation-delay: 0.08s; }
.ap-hero-content > :nth-child(3) { animation-delay: 0.16s; }
.ap-hero-content > :nth-child(4) { animation-delay: 0.24s; }
.ap-hero-content > :nth-child(5) { animation-delay: 0.32s; }

.ap-result {
    animation: apFadeUp 0.8s 0.25s ease both;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1100px) {
    .ap-hero-inner {
        gap: 44px;
    }

    .ap-hero-rings {
        --card: min(460px, (100% - 108px) * 0.44);
    }

    .ap-booking-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
        gap: 44px;
    }

    .ap-docs {
        gap: 20px;
    }

    .ap-doc-body {
        padding: 20px 20px 18px;
    }

    .ap-doc-badge strong {
        font-size: 2.1rem;
    }
}

/* Tablets: below the header's desktop menu (lg) */
@media (max-width: 1023px) {
    .ap,
    .is-appointment {
        --gutter: 24px;
    }

    .ap-sec {
        padding: 72px 0;
    }

    .ap-booking-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .ap-booking-copy {
        position: static;
        padding-top: 0;
    }

    /* One column: the tooth sits beside the short section label */
    .ap-booking-rings {
        left: auto;
        right: 60px;
        top: calc(72px + 17px);
        bottom: auto;
        translate: 50% -50%;
    }

    .ap-booking-desc {
        max-width: 600px;
    }

    .ap-perks {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ap-booking-form {
        scroll-margin-top: 88px;
    }

    .ap-faq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .ap-place {
        position: static;
        max-width: 560px;
    }
}

@media (max-width: 960px) {
    .ap-hero {
        padding: 52px 0 148px;
    }

    .ap-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .ap-hero-visual {
        justify-content: flex-start;
    }

    /* The card now starts at the left */
    .ap-hero-rings {
        right: auto;
        left: calc(var(--gutter) + min(460px, 100% - var(--gutter) * 2) / 2);
        bottom: calc(62px + (148px - 62px) / 2);
        translate: -50% 50%;
    }

    .ap-facts {
        grid-template-columns: 1fr 1fr;
    }

    .ap-fact:nth-child(3) {
        border-left: none;
    }

    .ap-fact:nth-child(n + 3) {
        border-top: 1px solid var(--ap-line);
    }

    .ap-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 36px;
    }



    .ap-docs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Third card sits centred under the first two */
    .ap-doc:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }

    .ap-quotes {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    /* Phones zoom into fields with text under 16px; keep the form's fields at 16px */
    .ap-booking-form input,
    .ap-booking-form select,
    .ap-booking-form textarea,
    .is-appointment .select2-container .select2-selection--single,
    .is-appointment .select2-search__field {
        font-size: 16px;
    }

    .ap-perks {
        display: flex;
    }

    .ap-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45; /* under the header's menu (50) and the WhatsApp widget (54+) */
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--ap-dark);
        border-top: 2px solid var(--ap-mint-2);
        box-shadow: 0 -8px 28px rgba(5, 43, 34, 0.3);
        visibility: hidden;
        transform: translateY(110%);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .ap-bar.is-visible {
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }

    .ap-bar-text {
        flex: 1;
        min-width: 0;
        line-height: 1.2;
    }

    .ap-bar-title {
        font-size: 0.95rem;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: #fff;
    }

    .ap-bar-sub {
        margin-top: 3px;
        font-size: 0.74rem;
        color: rgba(255, 255, 255, 0.62);
    }

    .ap-bar-call {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: var(--r-xs);
        border: 1px solid rgba(255, 255, 255, 0.24);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .ap-bar .ap-btn {
        padding: 13px 18px;
        font-size: 0.88rem;
    }

    /* While the bar shows (appointment.js sets has-booking-bar), the WhatsApp
       button moves up above it, and the footer's last line stays clear of both */
    .is-appointment .gdw-fab {
        transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s, opacity 0.25s, bottom 0.3s ease;
    }

    .is-appointment.has-booking-bar .gdw-fab {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .is-appointment > footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 639px) {
    .ap,
    .is-appointment {
        --gutter: 16px;
    }

    .ap-sec {
        padding: 56px 0;
    }

    .ap-hero {
        padding: 36px 0 140px;
    }

    /* The card runs the full width; the facts card overlaps 56px here */
    .ap-hero-rings {
        left: 50%;
        bottom: calc(56px + (140px - 56px) / 2);
    }

    .ap-booking-rings {
        right: 40px;
        top: calc(56px + 15px);
    }

    .ap-mark {
        gap: 10px;
        margin-bottom: 14px;
    }

    .ap-mark-icon {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    .ap-mark-text {
        font-size: 0.88rem;
    }

    .ap-hero h1 {
        font-size: 2.15rem;
        line-height: 1.14;
        margin-bottom: 16px;
    }

    .ap-lead {
        font-size: 0.98rem;
        margin-bottom: 22px;
    }

    .ap-concerns {
        gap: 8px;
        margin-bottom: 26px;
    }

    .ap-concerns a {
        font-size: 0.84rem;
        padding: 8px 13px 8px 11px;
    }

    .ap-hero-ctas .ap-btn {
        flex: 1 1 100%;
    }

    .ap-result {
        max-width: 100%;
        padding: 12px;
    }

    .ap-result-head {
        padding: 4px 6px 12px 10px;
    }

    .ap-result-title {
        font-size: 0.88rem;
    }

    .ap-facts-wrap {
        --overlap: 56px;
    }

    .ap-fact {
        padding: 20px 16px 18px 20px;
    }

    .ap-fact::before {
        left: 20px;
        right: 16px;
    }

    .ap-fact-value {
        font-size: 1.45rem;
    }

    .ap-fact-label {
        font-size: 0.78rem;
    }








    /* Doctors and reviews swipe sideways, the next card peeking in */
    .ap-docs,
    .ap-quotes {
        display: flex;
        gap: 14px;
        max-width: none;
        margin: 0 calc(var(--gutter) * -1);
        padding: 8px var(--gutter) 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .ap-docs::-webkit-scrollbar,
    .ap-quotes::-webkit-scrollbar {
        display: none;
    }

    .ap-doc,
    .ap-doc:last-child {
        flex: 0 0 78%;
        width: auto;
        scroll-snap-align: start;
    }

    .ap-quote {
        flex: 0 0 86%;
        scroll-snap-align: start;
        padding: 24px 22px 20px;
    }

    /* Just the rating and the platform, two to a row */
    .ap-ratings a span {
        display: none;
    }

    .ap-also {
        margin-top: 24px;
    }

    .ap-more {
        margin-top: 20px;
    }

    .ap-booking-contact a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .ap-faq-item summary {
        padding: 16px 18px;
        font-size: 0.94rem;
    }

    .ap-faq-item p {
        padding: 0 18px 18px;
    }

    .ap-place {
        padding: 22px 20px;
    }
}

@media (max-width: 380px) {
    .ap-hero h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 340px) {
    .ap-result-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap *,
    .ap *::before,
    .ap *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .ap-reveal {
        opacity: 1;
        transform: none;
    }

    .js .ap-mark .ap-mark-text,
    .js .ap-mark .ap-mark-icon .ico {
        filter: none;
        opacity: 1;
        transform: none;
    }
}

@media print {
    .ap-bar,
    .ap-rings {
        display: none;
    }
}
