/* ==========================================================================
   CENAVY — pages.css
   Visual layer on top of Bootstrap (style.css). One design system for all
   pages: tokens → base → components → page sections → footer.
   Palette and type scale follow the CENAVY Brand Book (Ed. 1.4):
   #0E2230 titles · #123B4A subtitles · #355565 body · #00A3C4 accents ·
   #C0C9D0 separators. Functional text never sits cyan-on-white.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --petrol-deep: #0E2230;
    --petrol: #123B4A;
    --petrol-soft: #355565;
    --cyan: #00A3C4;
    --cyan-tint: #E8F6F9;
    --silver: #C0C9D0;
    --line: #DCE3E8;
    --surface: #F4F7F9;
    --white: #FFFFFF;

    --ink: var(--petrol-deep);
    --accent: var(--cyan);
    --muted: var(--petrol-soft);

    --container: 1280px;
    --gutter: 24px;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(14, 34, 48, .04), 0 4px 16px rgba(14, 34, 48, .04);
    --shadow: 0 2px 6px rgba(14, 34, 48, .04), 0 18px 40px rgba(14, 34, 48, .08);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 88px;

    --bs-body-font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    --bs-body-color: var(--petrol-deep);
    --bs-fg-body: var(--petrol-deep);
    --bs-body-bg: var(--white);
    --bs-bg-body: var(--white);
    --bs-border-color: var(--silver);
}

@media (min-width: 768px) {
    :root { --gutter: 40px; }
}

/* Brand button theme: cyan surface carries petrol text (5.45:1), per brand book. */
.theme-primary {
    --bs-theme-base: var(--cyan);
    --bs-theme-bg: var(--cyan);
    --bs-theme-contrast: var(--petrol-deep);
    --bs-theme-fg: var(--petrol-deep);
    --bs-theme-border: var(--cyan);
    --bs-theme-focus-ring: rgba(0, 163, 196, .35);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--petrol-deep);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    overflow: clip;
}

h1, h2, h3, h4 {
    font-family: inherit;
    color: var(--petrol-deep);
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 2.7vw, 38px);
    line-height: 1.18;
    letter-spacing: -.03em;
}

h3 {
    margin: 0 0 12px;
    font-size: clamp(19px, 1.6vw, 22px);
    line-height: 1.3;
    letter-spacing: -.015em;
}

h4 {
    margin: 28px 0 8px;
    font-size: 17px;
    line-height: 1.4;
    color: var(--petrol);
}

main p,
main li {
    color: var(--petrol-soft);
}

main :is(h1, h2) em,
main h1 span {
    font-style: normal;
    color: var(--cyan);
}

a {
    color: var(--petrol);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s ease;
}

a:hover {
    color: var(--petrol-deep);
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--petrol-deep);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--cyan-tint);
    color: var(--petrol-deep);
}

.small {
    font-size: 13px;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Shared container: every page aligns to the same column */
.content-container,
.patients-container,
.contact-container,
.wrap {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.skip {
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--petrol-deep);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.skip:focus {
    top: 16px;
    color: var(--white);
}

/* Small uppercase label with a cyan rule */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--petrol) !important;
}

.kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--cyan);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons & links
   -------------------------------------------------------------------------- */


.btn-solid.theme-primary {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--petrol-deep);
}

.btn-solid.theme-primary:hover {
    background: #12B4D4;
    border-color: #12B4D4;
    color: var(--petrol-deep);
    box-shadow: 0 8px 24px rgba(0, 163, 196, .28);
}

.btn-solid.theme-primary:active {
    transform: translateY(1px);
}

.btn-solid.theme-primary svg {
    width: 22px;
    height: 22px;
    transition: transform .25s var(--ease);
}

.btn-solid.theme-primary:hover svg {
    transform: translateX(3px);
}



.btn-outline.theme-primary:hover {
    background: var(--cyan-tint);
    border-color: var(--cyan);
    color: var(--petrol-deep);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--cyan);
}
.action-button.btn-lg {
    min-height: 56px;
    padding: 14px 28px;
    font-size: 16px;
    gap: 16px;
}

.text-link {
    gap: 10px;
    color: var(--petrol-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--silver);
    padding-bottom: 4px;
    transition: border-color .2s ease, gap .2s var(--ease);
}

.text-link:hover {
    color: var(--petrol-deep);
    border-color: var(--cyan);
    gap: 14px;
}

.text-link > span,
.text-link svg {
    color: var(--cyan);
}

.text-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Săgeți pentru linkurile din secțiunile builderului (textul linkului se editează, săgeata rămâne). */
.link-arrow-down::after,
.link-arrow-right::after,
.stage-copy::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--cyan);
    -webkit-mask: var(--arrow) center / contain no-repeat;
    mask: var(--arrow) center / contain no-repeat;
}

.link-arrow-down,
.stage-copy {
    --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16m-6-6 6 6 6-6'/%3E%3C/svg%3E");
}

.link-arrow-right {
    --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
/* Sticky "glass" header: translucent white + blur; compacts on scroll
   (main.js toggles .is-scrolled). */
.sticky-header {
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(220, 227, 232, .4);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.sticky-header.is-scrolled {
    background: rgba(255, 255, 255, .78);
    border-bottom-color: rgba(192, 201, 208, .55);
    box-shadow: 0 8px 30px rgba(14, 34, 48, .08);
}

.sticky-header .header {
    width: min(100% - 2 * var(--gutter), var(--container));
    height: var(--header-h);
    flex-wrap: nowrap;
    gap: 32px;
    transition: height .3s ease;
}

.sticky-header.is-scrolled .header {
    height: 68px;
}

.brand {
    min-width: 0;
    border-radius: 6px;
}

.brand-logo {
    width: 240px;
    max-width: 58vw;
    aspect-ratio: 1559 / 364;
    object-position: left center;
    transition: width .3s ease;
}

.sticky-header.is-scrolled .brand-logo {
    width: 196px;
}

#navigation.desktop-navigation {
    display: none !important;
    margin-left: auto;
    justify-content: flex-end;
    gap: 20px;
}

#navigation .nav-link {
    position: relative;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--petrol);
    text-decoration: none;
}

#navigation .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

#navigation .nav-link:hover {
    color: var(--petrol-deep);
}

#navigation .nav-link:hover::after,
#navigation .nav-link[aria-current=page]::after {
    transform: scaleX(1);
}

#navigation .nav-link[aria-current=page] {
    color: var(--petrol-deep);
    font-weight: 600;
}

#navigation .header-appointment {
    margin-left: 8px;
    padding-inline: 22px 18px;
    white-space: nowrap;
}

/* Header + drawer CTA: white label on cyan (as approved on the design canvas). */
.btn-solid.theme-primary.header-appointment,
.btn-solid.theme-primary.header-appointment:hover {
    color: var(--white);
}

.btn-solid.theme-primary.header-appointment:hover {
    background: #0093B1;
    border-color: #0093B1;
}

.menu-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--silver);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--petrol-deep);
    font: 600 14px/1 var(--bs-body-font-family);
}

.menu-toggle:hover {
    border-color: var(--cyan);
    background: var(--cyan-tint);
}

@media (min-width: 1280px) {
    #navigation.desktop-navigation { display: flex !important; }
    .menu-toggle { display: none !important; }
}

@media (max-width: 640px) {
    :root { --header-h: 72px; --radius: 12px; }
    .sticky-header.is-scrolled .header { height: 64px; }
    .brand-logo,
    .sticky-header.is-scrolled .brand-logo { width: 196px; }
    .menu-toggle { padding: 10px 14px; }
}

@media (max-width: 360px) {
    :root { --gutter: 16px; }
    .brand-logo { width: 196px; }
    .sticky-header .header { gap: 12px !important; }
    .menu-toggle { padding: 8px 12px; gap: 6px; }
}

/* Mobile drawer */
.mobile-drawer {
    --bs-drawer-width: 380px;
    --bs-drawer-bg: var(--white);
    --bs-drawer-color: var(--petrol);
    --bs-drawer-inset: 0px;
    --bs-drawer-border-radius: 0;
    max-width: calc(100vw - 32px);
    max-height: 100dvh;
    padding: 0;
    border: 0;
    box-shadow: 24px 0 64px rgba(14, 34, 48, .18);
    color: var(--petrol);
}

.mobile-drawer::backdrop {
    background: rgba(14, 34, 48, .4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-drawer .drawer-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
}

.mobile-drawer .drawer-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.mobile-drawer .drawer-body {
    padding: 24px 28px;
}

.mobile-drawer .eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--petrol-soft);
}

.mobile-navigation .nav-link {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 500;
    color: var(--petrol);
    text-decoration: none;
    transition: padding .2s var(--ease), color .2s ease;
}

.mobile-navigation .nav-link:hover {
    padding-left: 6px;
    color: var(--petrol-deep);
}

.mobile-navigation .nav-link[aria-current=page] {
    padding-left: 16px;
    color: var(--petrol-deep);
    font-weight: 600;
}

.mobile-navigation .nav-link[aria-current=page]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
    border-radius: 3px;
    background: var(--cyan);
    transform: translateY(-50%);
}

.mobile-navigation .header-appointment {
    margin-top: 28px;
    padding: 16px 22px;
    border-radius: 999px;
    font-size: 16px;
    text-decoration: none;
}

.mobile-navigation .header-appointment svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mobile-navigation .header-appointment svg.bi {
    fill: currentColor;
    stroke: none;
}

.mobile-drawer .drawer-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--line);
}

.mobile-drawer .drawer-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--petrol-soft);
}

/* --------------------------------------------------------------------------
   5. Editorial hero (inner pages)
   -------------------------------------------------------------------------- */
/* Full-bleed image; copy stays aligned to the page container. */
.editorial-hero.content-container {
    position: relative;
    isolation: isolate;

    align-items: center;
    width: 100%;
    max-width: none;
    height: clamp(420px, 40vw, 560px);
    margin-bottom: clamp(48px, 6vw, 80px);
    overflow: hidden;
    background: var(--surface);
}

/* Soft white veil keeps the headline readable over the photo. */
.editorial-hero::after,
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .88) 32%, rgba(255, 255, 255, .35) 58%, rgba(255, 255, 255, 0) 78%);
}

.editorial-copy {
    position: relative;
    z-index: 2;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-block: 56px;
}

.editorial-copy > * {
    max-width: 600px;
}

.editorial-copy h1 {
    font-size: clamp(36px, 4vw, 56px);
}

.editorial-lead {
    max-width: 34em;
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--petrol-soft);
}

.editorial-copy .text-link {
    align-self: flex-start;
    margin-top: 32px;
}

.editorial-visual {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    margin: 0;
}

.editorial-visual > img {
    height: 100%;
    object-position: center;
}

.patients-page .editorial-visual > img { object-position: 70% 30%; }
.contact-page .editorial-visual > img { object-position: 70% center; }

.desktop-break { display: none; }

@media (min-width: 1100px) {
    .desktop-break { display: inline; }
}

/* Mobile: headline on white first, photo below fading into white
   at the top and bottom (no text over the image). */
@media (max-width: 700px) {
    .homepage .home-hero,
    .editorial-hero.content-container {
        height: auto;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
    }

    .editorial-hero::after,
    .home-hero::before {
        display: none;
    }

    .homepage .home-hero-content,
    .editorial-copy {
        order: 1;
        padding-block: 40px 0;
    }

    .homepage .hero-photo,
    .editorial-visual {
        position: relative !important;
        inset: auto;
        order: 2;
        width: 100%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 78%, transparent 100%);
    }

    .homepage .hero-photo {
        height: clamp(320px, 100vw, 480px);
        background-size: 180%;
    }

    .editorial-lead {
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   6. Shared section patterns
   -------------------------------------------------------------------------- */
.section-heading {
    align-items: flex-end;
    gap: 16px 40px;
    margin-bottom: 40px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading > p {
    margin: 0;
    max-width: 28em;
    color: var(--petrol-soft);
}

.border-top {
    border-top: 1px solid var(--line) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--line) !important;
}

/* Lists inside content: cyan markers */
main ul.ps-7 {
    padding-left: 22px !important;
    margin: 0 0 16px;
}

main ul.ps-7 li {
    padding-left: 4px;
    margin-bottom: 10px;
}

main ul li::marker {
    color: var(--cyan);
}

/* Image frames */
.rounded-7 {
    border-radius: var(--radius) !important;
}

/* Category cards (home + catalog) */
.category {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--petrol-deep);
    text-decoration: none;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s ease, box-shadow .3s var(--ease), transform .3s var(--ease);
}

.category.btn {
    padding: 0;
    min-height: 0;
    font: inherit;
    font-weight: 400;
    white-space: normal;
    align-items: stretch;
}

.category:hover {
    border-color: rgba(0, 163, 196, .55);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    color: var(--petrol-deep);
}

.category:focus-visible {
    outline: 2px solid var(--petrol-deep);
    outline-offset: 4px;
}

.category .anatomy {
    height: 168px;
    object-fit: cover !important;
    background: var(--petrol-deep);
}

.category-copy {
    flex: 1;
    padding: 18px 18px 20px;
    border-top: 1px solid var(--line);
}

.category-copy strong {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: var(--petrol-deep);
}

.category-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--petrol-soft);
    flex: 1;
}


@media (min-width: 1200px) {
    #investigatii section.row > div,
    .catalog-grid > div {
        flex: 0 0 auto;
        width: 16.6667%;
    }
}

.card-arrow,
.quick-link > svg {
    width: 40px;
    height: 40px;
    margin-top: 12px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    flex-shrink: 0;
    transition: background-color .25s ease, color .25s ease, transform .3s var(--ease);
}

.card-arrow svg {
    width: 18px;
    height: 18px;
}

.category:hover .card-arrow {
    background: var(--cyan);
    color: var(--petrol-deep);
    transform: translateX(4px);
}

/* Light labels on the cyan hero CTA and the booking button (set on the design canvas). */
.home-hero .action-button,
.home-hero .action-button:hover,
.send-button.btn-solid.theme-primary {
    color: #EEF2F4;
}

/* --------------------------------------------------------------------------
   7. Homepage
   -------------------------------------------------------------------------- */
/* Full-screen hero: photo covers the whole viewport width. */
.home-hero {
    isolation: isolate;
    display: flex;
    align-items: center;
    height: min(calc(100vh - var(--header-h)), 920px);
    min-height: 600px;
    background: var(--surface);
}

.hero-photo {
    z-index: 0;
    inset: 0;
    background: var(--surface) url('../image/hero-gradina-alb-larg.jpeg') 70% center / cover no-repeat;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-block: 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-hero h1 {
    max-width: 640px;
    font-size: clamp(40px, 4.6vw, 68px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

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

@media (max-width: 700px) {
    .home-hero h1 {
        font-size: clamp(38px, 10vw, 52px);
    }
}

/* Quick links */
.quick-links {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin: 56px auto 0 !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.quick-links > .quick-link {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 28px 28px;
    align-items: center !important;
    color: var(--petrol-deep);
    text-decoration: none;
    transition: background-color .25s ease;
}

.quick-link + .quick-link {
    border-left: 1px solid var(--line);
}

.quick-link:hover {
    background: var(--surface);
    color: var(--petrol-deep);
}

.service-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--cyan-tint);
    color: var(--petrol);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.quick-link > span {
    flex: 1;
    min-width: 0;
}

.quick-link strong {
    display: block;
    font-size: 17px;
    letter-spacing: -.01em;
}

.quick-link > span > small {
    font-size: 14px;
    color: var(--petrol-soft);
}

.quick-link > svg {
    margin: 0;
    padding: 10px;
}

.quick-link:hover > svg {
    background: var(--cyan);
    color: var(--petrol-deep);
    transform: translateX(4px);
}

@media (max-width: 1000px) {
    .quick-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-link + .quick-link {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .quick-links > .quick-link {
        padding: 22px 24px;
    }
}

.homepage main > .content-container > section {
    padding-block: clamp(64px, 8vw, 112px) !important;
}

.homepage main > .content-container > section:first-child {
    border-top: 0 !important;
}

/* Exam steps */
#etape article {
    position: relative;
    padding-top: 28px;
}

#etape article::before,
#etape article::after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(var(--bs-gutter-x) * .5);
    height: 2px;
}

#etape article::after {
    right: calc(var(--bs-gutter-x) * .5);
    height: 1px;
    background: var(--line);
}

#etape article::before {
    z-index: 1;
    width: 48px;
    background: var(--cyan);
}

#etape article > span {
    display: block;
    margin-bottom: 20px;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--cyan);
}

#etape article ul {
    list-style: none;
    padding: 0 !important;
}

#etape article li {
    padding: 0;
    font-size: 16px;
}

/* Two-column feature rows (technology / about) */
#tehnologie img,
#despre img {
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

#despre img {
    aspect-ratio: 5 / 4;
    object-position: center 20%;
}

#tehnologie h2,
#despre h2 {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.12;
}

#tehnologie p:not(.kicker),
#despre p:not(.kicker) {
    margin: 0 0 32px;
    max-width: 30em;
    font-size: 18px;
    line-height: 1.65;
}

#despre figcaption {
    color: var(--petrol);
}

@media (min-width: 1024px) {
    #despre figure { order: 2; }
}

/* Homepage contact block */
#contact h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--petrol);
    margin-bottom: 12px;
}

#contact .col-12 > p,
#contact .col-12 > a {
    margin: 0 0 8px;
    display: block;
}

/* Consent placeholder for external maps (home + contact) */
.border.rounded-7.overflow-hidden {
    border-color: var(--line) !important;
    background: var(--surface);
}

/* Embedded Google map (home + contact) */
.border.rounded-7 iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

main figure img[src*="exterior"] {
    border-radius: var(--radius);
    aspect-ratio: 2041 / 770;
}

/* --------------------------------------------------------------------------
   8. Investigations catalog
   -------------------------------------------------------------------------- */
.catalog-grid {
    width: min(100% - 2 * var(--gutter) + var(--bs-gutter-x), var(--container) + var(--bs-gutter-x));
    padding-bottom: 32px;
}

.tech-band {
    gap: 24px;
    margin-block: clamp(48px, 7vw, 96px);
    padding: clamp(32px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--petrol-deep);
}

.tech-band h2 {
    margin: 0;
    color: var(--white);
}

.tech-band h2 span {
    color: var(--cyan);
}

.tech-band a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.tech-band a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--petrol-deep);
}

.tech-band a svg {
    width: 20px;
    height: 20px;
}

.tech-band a::after {
    background: currentColor;
}

.tech-band a:focus-visible {
    outline-color: var(--cyan);
}

.investigations-page noscript p {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin: 0 auto 48px;
}

/* Category dialog */
#category-dialog {
    width: min(640px, calc(100% - 32px));
    max-height: 86dvh;
    padding: 32px;
    border: 0;
    border-radius: var(--radius-lg);
    color: var(--petrol-deep);
    box-shadow: 0 40px 120px rgba(14, 34, 48, .28);
}

#category-dialog::backdrop {
    background: rgba(14, 34, 48, .8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: none;
}

.dialog-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--petrol);
}

.close-dialog {
    width: 44px !important;
    height: 44px;
    min-height: 44px !important;
    padding: 0 !important;
    font-size: 26px !important;
    line-height: 1 !important;
}

#category-dialog h2 {
    margin: 20px 0 8px;
    font-size: clamp(26px, 3vw, 32px);
}

#catalog-note {
    margin: 0;
    font-size: 15px;
    color: var(--petrol-soft);
}

#investigation-list {
    list-style: none;
    margin: 24px 0 28px;
    padding: 0;
    border-top: 1px solid var(--line);
}

#investigation-list li {
    padding: 16px 4px 16px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--petrol-deep);
    position: relative;
}

#investigation-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    transform: translateY(-50%);
}

#investigation-list a {
    color: inherit;
}

body.dialog-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    #category-dialog { padding: 24px 20px; }
}

/* --------------------------------------------------------------------------
   9. Technology
   -------------------------------------------------------------------------- */
.tech-topics {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
    padding-block: 24px !important;
}

.tech-topics .text-link {
    padding: 12px 8px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color .2s ease;
}

.tech-topics .text-link:hover {
    background: var(--surface);
}

.tech-topics .text-link img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 11px;
    border-radius: 14px;
    background: var(--cyan-tint);
    object-fit: contain;
}

/* Secțiunile „titlu + text” și „imagine + text” din builder, separate printr-o linie. */
.split-section,
.media-split {
    border-top: 1px solid var(--line);
}

.pb-wrap:has(.tech-topics) + .pb-wrap > .split-section {
    border-top: 0;
}

.split-section h3,
.media-split h3 {
    margin-top: 0;
    font-size: 20px;
}

.split-section h3 ~ h3,
.media-split h3 ~ h3 {
    margin-top: 16px;
}

.split-section p,
.split-section li,
.media-split p,
.media-split li {
    font-size: 17px;
    line-height: 1.7;
}

.media-split img {
    border-radius: 72px var(--radius) var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

details[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */
.about-page .split-section p:not(.kicker) {
    font-size: 19px;
}

.about-team {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 96px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 56px) !important;
}

.about-doctor-photo {
    border-radius: 96px var(--radius) var(--radius) var(--radius);
    background: var(--silver);
}

.about-doctor-photo > img {
    aspect-ratio: 4 / 5;
    max-height: 600px;
    object-position: center top;
}

.about-doctor-copy h2 {
    font-size: clamp(30px, 3vw, 44px);
}

.about-doctor-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}

.about-pillars article {
    position: relative;
    padding-top: 28px;
}

.about-pillars article::after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(var(--bs-gutter-x) * .5);
    right: calc(var(--bs-gutter-x) * .5);
    height: 1px;
    background: var(--line);
}

.about-pillars article::before {
    content: '';
    position: absolute;
    top: -1px;
    left: calc(var(--bs-gutter-x) * .5);
    z-index: 1;
    width: 48px;
    height: 2px;
    background: var(--cyan);
}

.about-pillars article p {
    margin: 0;
    line-height: 1.7;
}

.about-pillars .row {
    --bs-gutter-y: 40px;
}

@media (max-width: 900px) {
    .about-page .split-section p:not(.kicker) { font-size: 17px; }

    .about-team {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-doctor-photo {
        max-width: 440px;
        border-radius: 64px var(--radius) var(--radius) var(--radius);
    }

    .about-doctor-copy p { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   11. Patients
   -------------------------------------------------------------------------- */
.patient-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: clamp(56px, 8vw, 112px);
}

.patient-stage {
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--petrol-deep);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s ease, box-shadow .3s var(--ease), transform .3s var(--ease);
}

.patient-stage:hover {
    border-color: rgba(0, 163, 196, .55);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    color: var(--petrol-deep);
}

.patient-stage .tile-icon {
    width: 64px !important;
    height: 64px;
    padding: 12px;
    border-radius: 16px;
    background: var(--cyan-tint);
    color: var(--cyan);
    object-fit: contain !important;
}

.stage-copy {
    position: relative;
    flex: 1;
    min-width: 0;
    gap: 4px;
    padding-right: 36px;
}

.stage-number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--petrol-soft);
}

.stage-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.stage-copy::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .3s var(--ease);
}

.patient-stage:hover .stage-copy::after {
    transform: translateY(-30%);
}

.patient-faq {
    max-width: 920px;
    padding-bottom: clamp(64px, 9vw, 128px);
}

.faq-intro {
    margin: 0 0 32px;
    font-size: 17px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.patient-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--petrol-deep);
    transition: color .2s ease;
}

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

.patient-faq summary:hover {
    color: var(--petrol);
}

.faq-plus {
    width: 40px;
    height: 40px;
    border: 1px solid var(--silver);
    border-radius: 50%;
    transition: background-color .25s ease, border-color .25s ease, transform .3s var(--ease);
}

.faq-plus::before,
.faq-plus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--petrol-deep);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease);
}

.faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.patient-faq summary:hover .faq-plus {
    border-color: var(--cyan);
}

.patient-faq details[open] .faq-plus {
    background: var(--cyan);
    border-color: var(--cyan);
}

.patient-faq details[open] .faq-plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    padding: 0 64px 24px 0;
}

.faq-answer li {
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .patient-stages {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .patient-stage { padding: 18px 20px; }
    .patient-stage .tile-icon { width: 52px !important; height: 52px; padding: 10px; }
    .faq-answer { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact-container.row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
    width: min(100% - 2 * var(--gutter) + 20px, var(--container) + 20px);
    padding-block: 0 clamp(48px, 6vw, 80px) !important;
}

.contact-item {
    gap: 20px;
}

.contact-item > svg,
.message-section .row svg {
    width: 52px;
    height: 52px;
    padding: 13px;
    border-radius: 14px;
    background: var(--cyan-tint);
    color: var(--cyan);
    flex-shrink: 0;
}

.contact-item h2,
.message-section .row h3 {
    margin: 4px 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--petrol-soft);
}

.contact-item p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--petrol-deep);
}

.contact-item a,
.message-section .row a {
    color: var(--petrol-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--silver);
    transition: border-color .2s ease;
}

.contact-item a:hover,
.message-section .row a:hover {
    border-color: var(--cyan);
}

.contact-columns {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(64px, 9vw, 128px);
    border-top: 1px solid var(--line);
}

.contact-page .location-map {
    height: 340px;
}

.message-section {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.message-section > p {
    margin: 0;
    font-size: 17px;
}

.message-section .row {
    margin-inline: 0;
    padding-block: 24px;
    border-block: 1px solid var(--line);
}

.message-section .row svg {
    background: var(--white);
}

.message-section .row > div {
    padding-inline: 0 16px;
}

#appointment-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--petrol);
}

.form-control,
.form-select {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--silver);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--petrol-deep);
    font: 400 16px/1.4 var(--bs-body-font-family);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #9FB0BB;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0, 163, 196, .18);
    outline: none;
}

#appointment-form .small {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 14px;
    line-height: 1.65;
}

#appointment-form .small a {
    font-weight: 600;
}

.send-button {
    min-width: 220px;
}

.send-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#booking-status {
    margin: 16px 0 0;
    padding: 0;
    background: none;
    color: var(--petrol-soft);
}

@media (max-width: 900px) {
    .contact-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   13. Legal documents
   -------------------------------------------------------------------------- */
.legal-page main.narrow {
    padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 128px);
}

.legal-page main h1 {
    margin-bottom: 24px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.15;
}

.legal-page main h2 {
    margin: 56px 0 16px !important;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.25;
}

.legal-page main section > h2:first-child {
    margin-top: 24px !important;
}

.legal-page main h3 {
    margin: 40px 0 12px !important;
    font-size: 20px;
}

.legal-page main p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.75 !important;
}

.legal-page main ul {
    margin: 4px 0 20px;
    padding-left: 22px;
}

.legal-page main li {
    margin-bottom: 6px;
    line-height: 1.7 !important;
}

.legal-page main section {
    padding-block: 0 !important;
}

.note {
    display: block;
    margin: 0 0 24px;
    padding: 16px 20px;
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--cyan-tint);
    font-size: 14px;
    line-height: 1.65;
    color: var(--petrol);
}

.legal-page main details {
    display: block !important;
    margin: 32px 0 48px !important;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.legal-page main details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--petrol-deep);
}

.legal-page main details > summary::-webkit-details-marker {
    display: none;
}

.legal-page main details > summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .3s var(--ease);
}

.legal-page main details[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.legal-page main details > ol {
    margin: 0;
    padding: 4px 24px 20px 44px;
    border-top: 1px solid var(--line);
}

.legal-page main details ol ol {
    padding-left: 20px;
    margin: 4px 0 8px;
    list-style: none;
}

.legal-page main details li {
    margin: 0;
    font-size: 15px;
}

.legal-page main details a {
    text-decoration: none;
    color: var(--petrol);
}

.legal-page main details a:hover {
    color: var(--petrol-deep);
    text-decoration: underline;
}

.legal-page main details > ol > li {
    padding-top: 12px;
}

/* Placeholders still to be completed before launch */
.legal-page main p.legal-review {
    margin: 8px 0 14px;
    padding: 12px 16px;
    border: 1px dashed var(--cyan);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--petrol);
}

/* Cookie categories */
.cookie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.cookie-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.legal-page main .cookie-card p:last-child {
    margin-bottom: 0;
}

.legal-page main .cookie-card-title {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--petrol-deep);
}

/* Short redirect-style legal page */
.legal-callout {
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.legal-callout-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--white);
    color: var(--cyan);
}

.legal-page main .legal-callout p {
    flex: 1 1 360px;
    margin: 0;
    font-size: 17px;
    color: var(--petrol-deep);
}

.legal-callout a {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: clamp(56px, 7vw, 96px) 0 32px;
    background: var(--petrol-deep);
    color: var(--white);
}

.footer-grid {
    --bs-gutter-x: 32px;
    --bs-gutter-y: 32px;
    width: min(100% - 2 * var(--gutter) + 32px, var(--container) + 32px);
    margin-inline: auto !important;
}

.footer-word {
    display: inline-block;
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .18em;
    text-decoration: none;
}

.footer-word span {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    color: var(--silver);
}

.site-footer p {
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--silver);
}

.site-footer h2 {
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--silver);
}

.footer-grid > div > a:not(.footer-word) {
    display: block;
    width: fit-content;
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.footer-grid nav {
    gap: 12px 28px !important;
}

.footer-grid nav h2 {
    margin-bottom: 4px;
}

.footer-grid nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--cyan);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline-color: var(--cyan);
}

.btn-solid.light-button {
    --bs-theme-bg: transparent;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-solid.light-button:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--petrol-deep);
}

.footer-bottom {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-wrap: wrap;
    gap: 12px 32px !important;
    font-size: 13px;
    color: var(--silver);
}

.footer-bottom span {
    margin-right: auto;
}

.footer-bottom a {
    color: var(--silver);
    text-decoration: none;
}

@media (max-width: 640px) {
    .footer-bottom span { width: 100%; }
}

/* --------------------------------------------------------------------------
   15. Motion (subtle, optional)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes cenavy-rise {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: none; }
    }

    .home-hero-content,
    .editorial-copy {
        animation: cenavy-rise .7s var(--ease) both;
    }

    @supports (animation-timeline: view()) {
        .category,
        .patient-stage,
        #etape article,
        .contact-item,
        .about-page article {
            animation: cenavy-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .category,
    .patient-stage,
    .quick-links {
        border: 1px solid CanvasText;
    }
}

/* --------------------------------------------------------------------------
   16. Privacy preferences dialog (injected by content.js)
   -------------------------------------------------------------------------- */
#privacy-settings {
    width: min(560px, calc(100% - 32px));
    max-height: 86dvh;
    padding: 32px;
    border: 0;
    border-radius: var(--radius-lg);
    color: var(--petrol-deep);
    box-shadow: 0 40px 120px rgba(14, 34, 48, .28);
}

#privacy-settings::backdrop {
    background: rgba(14, 34, 48, .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#privacy-settings .dialog-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

#privacy-settings h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

#privacy-settings .dialog-body {
    padding: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--petrol-soft);
}

#privacy-settings .dialog-body p {
    margin: 0;
}

#privacy-settings .dialog-body a {
    font-weight: 600;
}

#privacy-settings label {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 600;
    color: var(--petrol-deep);
    cursor: pointer;
}

#privacy-settings .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--cyan);
}

#privacy-settings .dialog-footer {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.map-placeholder[hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    #privacy-settings { padding: 24px 20px; }
}

/* Bootstrap's .dialog keeps closed dialogs at display:flex (only visibility:hidden).
   A closed dialog appended at the end of <body> (e.g. #privacy-settings) therefore
   still took up space below the footer. Take closed dialogs out of the flow. */
dialog.dialog:not([open]) {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

/* Formularul de programare: câmpuri cu erori și calendarul flatpickr în culorile site-ului. */
#appointment-form [aria-invalid="true"] {
    border-color: #C0392B;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, .12);
}

#appointment-form .flatpickr-input[readonly] {
    cursor: pointer;
    background-color: var(--white);
}

.flatpickr-calendar {
    font-family: var(--bs-body-font-family);
    border-radius: var(--radius-sm);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: var(--cyan);
    border-color: var(--cyan);
}

.flatpickr-day.today {
    border-color: var(--petrol-soft);
}
