/* main.css — все кастомные стили, анимации и адаптивные брейкпоинты сайта ASR Klinika */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

.fade-in-right {
    animation: fadeInRight 1s forwards;
}

.fade-out-left {
    animation: fadeOutLeft 1s forwards;
}

/* Doctor cards — redesign */
.doctor-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.doctor-card:hover {
    box-shadow: 0 10px 36px rgba(121,74,198,.20);
    transform: translateY(-5px);
}
.doctor-card-photo {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
}
.doctor-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(79,28,166,.45) 100%);
    pointer-events: none;
}
.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
    transition: transform .4s ease;
}
.doctor-card:hover .doctor-img {
    transform: scale(1.04);
}
.doctor-exp-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(121,74,198,.88);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .28rem .7rem;
    border-radius: 999px;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
}
.doctor-card-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.doctor-name {
    font-size: .9375rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: .3rem;
    padding-right: 3rem; /* prevent overlap with fixed floating buttons */
}
.doctor-spec {
    font-size: .8125rem;
    color: #794AC6;
    font-weight: 600;
    margin-bottom: .9rem;
    letter-spacing: .01em;
}
.doctor-actions {
    margin-top: auto;
    display: flex;
    gap: .5rem;
}
.doctor-btn-book {
    flex: 1;
    background: #794AC6;
    color: #fff;
    font-weight: 700;
    font-size: .8125rem;
    padding: .6rem .5rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: background .15s, transform .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doctor-btn-book:hover { background: #5b2fa8; transform: translateY(-1px); }
.doctor-btn-more {
    flex: 1;
    background: transparent;
    color: #794AC6;
    border: 1.5px solid #794AC6;
    font-weight: 700;
    font-size: .8125rem;
    padding: .6rem .5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.doctor-btn-more:hover {
    background: #794AC6;
    color: #fff;
    transform: translateY(-1px);
}

/* Amenity cards */
.amenity-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(121,74,198,.10);
    transition: box-shadow .2s, transform .2s;
}
.amenity-card:hover {
    box-shadow: 0 6px 24px rgba(121,74,198,.18);
    transform: translateY(-2px);
}
.amenity-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ede9fe;
}
.amenity-body {
    text-align: left;
}
.amenity-name {
    font-size: 1rem;
    font-weight: 600;
    color: #4c1d95;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.amenity-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Disease/conditions carousel cards */
.disease-card {
    width: 12rem;
    flex-basis: 12rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.disease-card:hover {
    box-shadow: 0 6px 24px rgba(121,74,198,.20);
    transform: translateY(-3px);
}

.disease-img {
    width: 100%;
    height: 8.5rem;
    object-fit: cover;
    display: block;
}

.disease-body {
    padding: 0.65rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.disease-title {
    text-align: center;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.disease-btn {
    display: block;
    text-align: center;
    background: #794AC6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.5rem;
    border-radius: 7px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s, background .15s;
    pointer-events: none;
}
.disease-card:hover .disease-btn,
.disease-card:focus-within .disease-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.disease-btn:hover {
    background: #5b2fa8;
}

/* Condition tags — бегущая строка */
.conditions-ticker-wrapper {
    overflow: hidden;
    -webkit-mask: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.conditions-ticker {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: conditions-scroll 35s linear infinite;
    padding: 0.5rem 0;
}
.conditions-ticker:hover {
    animation-play-state: paused;
}
@keyframes conditions-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.condition-tag {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: #f0ecfe;
    color: #5b2fa8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #d9d0f7;
    white-space: nowrap;
    transition: background .2s, color .2s, box-shadow .2s;
    flex-shrink: 0;
}
.condition-tag:hover {
    background: #794AC6;
    color: #fff;
    border-color: #794AC6;
    box-shadow: 0 4px 14px rgba(121,74,198,.3);
}
#admission .admission-box {
    max-width: 1300px;
    margin: 0 auto;
    background: transparent;
}

#admission .admission-text h2 {
    overflow-wrap: break-word;
    word-break: break-word;
}

#admission .admission-text p {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.usg-list {
    height: auto;
    min-height: 0;
    max-height: clamp(10rem, 45vh, 24rem);
    overflow-y: auto;
}

@media (max-width: 1023px) {
    #lang-switcher {
        margin-left: auto;
    }
}

.container {
    width: 100%;
    max-width: 1480px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}
#slider-title {
    font-size: clamp(24px, 3.5vw + 8px, 54px);
    line-height: 1.12;
}

#slider-subtitle {
    font-size: clamp(14px, 1vw + 9px, 19px);
    line-height: 1.55;
    max-width: 60ch;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
nav .flex-shrink-0>img {
    height: 56px;
    width: auto;
    object-fit: contain;
}
img[data-full] {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: .75rem;
}
#doctors .bg-white img {
    height: 18rem;
    object-fit: cover;
}

@media (max-width: 1536px) {
    .container {
        max-width: 1440px;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 1240px;
    }

    nav .flex-shrink-0>img {
        height: 56px;
        width: auto;
        object-fit: contain;
    }

    .nav-trigger {
        display: none;
    }
    #nav-toggle+.container .nav-trigger .close-icon {
        display: none;
    }
    #mobile-menu {
        display: none;
    }
    #doctors .bg-white .mt-auto.flex {
        flex-direction: column;
        gap: .5rem;
    }

    #doctors .bg-white .mt-auto.flex>a,
    #doctors .bg-white .mt-auto.flex>button {
        padding: .5rem .75rem;
        font-size: .9rem;
        width: 100%;
    }
    #doctors .bg-white img {
        height: 16rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    nav .flex-shrink-0>img {
        height: 52px;
    }
    nav>.container>ul {
        display: none;
    }
    .nav-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    #mobile-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid rgba(124, 58, 237, .12);
        transition: max-height .3s ease;
        will-change: max-height;
    }
    #nav-toggle:checked~#mobile-menu {
        max-height: 100vh;
    }
    #nav-toggle:checked+.container .nav-trigger .open-icon {
        display: none;
    }

    #nav-toggle:checked+.container .nav-trigger .close-icon {
        display: inline-block;
    }

    #hospital-info .flex {
        align-items: center;
    }

    #hospital-info .lg\:w-1\/2 {
        width: 100%;
    }

    #hospital-info h2,
    #hospital-info h3,
    #hospital-info h4,
    #hospital-info p,
    #hospital-info ul {
        text-align: center;
    }

    #hospital-info img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    #hospital-info .hospital-caption {
        text-align: center;
    }
    section.bg-gray-50 .flex {
        align-items: center;
    }

    section.bg-gray-50 .lg\:w-1\/2 {
        width: 100%;
    }

    section.bg-gray-50 h3,
    section.bg-gray-50 h4,
    section.bg-gray-50 p,
    section.bg-gray-50 ul {
        text-align: center;
    }

    section.bg-gray-50 img[data-full] {
        margin-left: auto;
        margin-right: auto;
    }

    section.bg-gray-50 .mt-4.text-sm.text-purple-600.text-center.font-medium {
        text-align: center;
    }
    img[data-full] {
        height: 11.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 740px;
    }

    nav .flex-shrink-0>img {
        height: 48px;
    }

    #slider {
        padding-left: 2rem;
        padding-right: 1rem;
    }

    #admission .admission-box {
        flex-direction: column;
    }

    #admission .admission-text,
    #admission .admission-media {
        width: 100% !important;
    }

    #admission .admission-text {
        padding: 1rem 1rem 0 1rem;
        text-align: center;
        align-items: center;
    }

    #admission .admission-media {
        position: relative;
        height: 300px;
    }

    #admission .admission-media img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        display: block;
    }
    #inpatient {
        height: auto;
        min-height: 0;
        flex-direction: column;
    }
    #inpatient>div {
        width: 100% !important;
    }
    #inpatient>div:first-child {
        padding: 1rem 1rem 0 1rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #inpatient>div:first-child h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    #inpatient>div:first-child p {
        font-size: 1rem;
    }
    #inpatient>div:nth-child(2) img {
        height: 300px;
        width: 100%;
        object-fit: cover;
        display: block;
    }
    #inpatient>div:nth-child(2) .absolute {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
    }

    
    .bg-\[\#794AC6\] [class*="grid"] {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .bg-\[\#794AC6\] h1,
    .bg-\[\#794AC6\] h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .bg-\[\#794AC6\] p {
        font-size: 1rem;
        text-align: center;
    }

    .bg-\[\#794AC6\] a {
        display: inline-flex;
        margin: 0 auto;
    }

    #admission .admission-media {
        min-height: 220px;
    }
    section h1,
    section h2,
    section h3,
    section h4,
    section p,
    section ul {
        text-align: center;
    }
    #doctors .bg-white img {
        object-fit: contain;
        object-position: center;
        background-color: #fff;
    }
    img[data-full] {
        height: 11rem;
    }

    .usg-list {
        max-height: clamp(8rem, 40vh, 20rem);
    }

    .usg-list:empty {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 620px;
    }

    nav .flex-shrink-0>img {
        height: 44px;
    }

    section h2 { font-size: 1.625rem; line-height: 1.25; }
    section h3 { font-size: 1.25rem;  line-height: 1.35; }
    section h4 { font-size: 1.0625rem; }
    section p  { font-size: 0.9375rem; line-height: 1.6; }

    #slider {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .group>.absolute.inset-0>span {
        font-size: 1.75rem;
    }

    #inpatient>div:first-child h2 {
        font-size: 1.25rem;
    }

    #inpatient>div:nth-child(2) img {
        height: 260px;
    }
    .bg-\[\#794AC6\] h1,
    .bg-\[\#794AC6\] h2 {
        font-size: 1.35rem;
    }

    .bg-\[\#794AC6\] p {
        font-size: .95rem;
    }
    #doctors .bg-white {
        padding: 1rem;
    }

    #doctors .bg-white img {
        height: 12rem;
        object-fit: contain;
        object-position: center;
        background-color: #fff;
    }

    #doctors .bg-white h3 {
        font-size: 1rem;
    }

    #doctors .bg-white p {
        font-size: .95rem;
    }

    #doctors .bg-white .mt-auto.flex>a,
    #doctors .bg-white .mt-auto.flex>button {
        font-size: .875rem;
        padding: .5rem;
    }
    section.bg-gray-50 .mt-4.text-sm.text-purple-600.text-center.font-medium {
        text-align: center;
    }

    section.bg-gray-50 img[data-full] {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    #eeg-echo [class*="grid"] {
        display: flex;
        flex-direction: column;
    }

    #eeg-echo [class*="grid"]> :first-child {
        order: 2;
    }
    #eeg-echo [class*="grid"]> :nth-child(2) {
        order: 1;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 460px;
    }

    section h2 { font-size: 1.375rem; }
    section h3 { font-size: 1.125rem; }
    section p  { font-size: 0.9375rem; }

    #doctors .bg-white img {
        height: 11rem;
        object-fit: contain;
        object-position: center;
        background-color: #fff;
    }
    img[data-full] {
        height: 10rem;
    }

    
    section h2 {
        margin-bottom: 1rem;
    }

    section h3 {
        margin-bottom: .75rem;
    }

    section p {
        font-size: .95rem;
    }
}

@media (max-width: 768px) {
    #admission .admission-btn-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    #admission .admission-btn-mobile {
        display: none !important;
    }
}

/* Hero CTA button */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    background: #794AC6;
    color: #fff;
    font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
    font-weight: 600;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.hero-cta-btn:hover {
    background: #6a3db5;
    transform: translateY(-2px);
}

/* Navbar CTA visible on scroll */
#nav-cta-btn.nav-cta-visible {
    opacity: 1;
    pointer-events: auto;
}

/* KPI cards */
.kpi-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(121, 74, 198, .10);
    border: 1px solid rgba(121, 74, 198, .10);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(121, 74, 198, .15);
}
.kpi-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f0ecfe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #794AC6;
    margin-bottom: 0.25rem;
}
.kpi-card-icon svg {
    width: 26px;
    height: 26px;
}
.kpi-number {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #794AC6;
    line-height: 1;
}
.kpi-card dt {
    font-size: 0.8125rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.4;
}


/* Clinic open/closed status */
.clinic-status {
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.clinic-status.is-open {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.clinic-status.is-closed {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.clinic-status-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}
.clinic-status-dot.is-open {
    display: block;
    background: #22c55e;
    animation: status-pulse 2s ease-in-out infinite;
}
.clinic-status-dot.is-closed {
    display: block;
    background: #ef4444;
}
@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Doctor modal status badge */
/* Modal must sit above floating phone/telegram buttons */
#doctor-modal { z-index: 9999; }

.modal-status-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}
.modal-status-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.modal-status-badge.on-duty {
    background: rgba(220,252,231,.9);
    color: #15803d;
    border: 1px solid rgba(187,247,208,.8);
}
.modal-status-badge.off-duty {
    background: rgba(243,244,246,.9);
    color: #6b7280;
    border: 1px solid rgba(209,213,219,.8);
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: .7; }
    60%       { box-shadow: 0 0 0 12px transparent; opacity: 0; }
}
@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    position: relative;
    animation: float-bounce 2.8s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    animation-play-state: paused;
}
.float-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: float-pulse 2.4s ease-out infinite;
    color: inherit;
}
.float-btn--tg {
    background: #229ED9;
    animation-delay: 0s;
}
.float-btn--tg::before {
    box-shadow: 0 0 0 0 #229ED9;
    animation: float-pulse 2.4s ease-out infinite;
}
.float-btn--phone {
    background: #25C35E;
    animation-delay: .6s;
}
.float-btn--phone::before {
    box-shadow: 0 0 0 0 #25C35E;
    animation: float-pulse 2.4s ease-out .6s infinite;
}
.float-btn--results {
    background: #059669;
    animation-delay: 1.2s;
}
.float-btn--results::before {
    box-shadow: 0 0 0 0 #059669;
    animation: float-pulse 2.4s ease-out 1.2s infinite;
}
.float-btn--callback {
    background: #7c3aed;
    animation-delay: 1.8s;
}
.float-btn--callback::before {
    box-shadow: 0 0 0 0 #7c3aed;
    animation: float-pulse 2.4s ease-out 1.8s infinite;
}

/* Tooltip label on nav float buttons */
.float-btn--nav {
    overflow: visible;
}
.float-btn-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,30,30,.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.float-btn--nav:hover .float-btn-label,
.float-btn--nav:focus .float-btn-label {
    opacity: 1;
}

@supports (bottom: env(safe-area-inset-bottom)) {
    .float-btn-wrapper {
        bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

/* Nav dropdown */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    z-index: 200;
}
.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown { display: block; }
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.nav-dropdown-item:hover { background: #f5f3ff; color: #7c3aed; }
.nav-dropdown-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-dropdown-arrow { transition: transform .2s; }
.nav-dropdown-wrapper:hover .nav-dropdown-arrow { transform: rotate(180deg); }

/* Callback form — reply method buttons */
.cb-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.cb-method-btn:hover:not([disabled]) {
    border-color: #7c3aed;
    color: #7c3aed;
}
.cb-method-btn.cb-method-selected {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff;
}
.cb-method-btn[disabled] {
    cursor: default;
}

/* Results form method buttons — green theme */
.res-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.res-method-btn:hover:not([disabled]) {
    border-color: #059669;
    color: #059669;
}
.res-method-btn.res-method-selected {
    border-color: #059669;
    background: #059669;
    color: #fff;
}
.res-method-btn[disabled] {
    cursor: default;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-left.revealed {
    opacity: 1;
    transform: none;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════
   MOBILE — INPATIENT SECTION FIX
═══════════════════════════════════════════ */
@media (max-width: 767px) {
    #inpatient {
        flex-direction: column;
        height: auto !important;
    }
    #inpatient > div:first-child {
        width: 100% !important;
        padding: 2rem 1.5rem;
    }
    #inpatient > div:last-child {
        width: 100% !important;
        height: 260px;
    }
}

/* ═══════════════════════════════════════════
   BEDS COUNTER BADGE
═══════════════════════════════════════════ */
.beds-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border: 1.5px solid #6d28d9;
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: pulse-badge 2.5s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.35); }
    50%       { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}

/* ═══════════════════════════════════════════
   BOOKING MODAL — REDESIGN
═══════════════════════════════════════════ */
.bk-modal-header {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    border-radius: 16px 16px 0 0;
    padding: 20px 24px 24px;
    margin: -24px -24px 20px;
    position: relative;
}
.bk-modal-header h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.bk-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 0;
}
.bk-close-btn:hover { background: rgba(255,255,255,0.2); }

/* Progress steps */
.bk-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.bk-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    border: 2px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.6);
    background: transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}
.bk-step-circle.active {
    border-color: #fff;
    color: #7c3aed;
    background: #fff;
}
.bk-step-circle.done {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.bk-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s;
}
.bk-step-line.done {
    background: rgba(255,255,255,0.8);
}
.bk-step-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}
.bk-step-label.active {
    color: #fff;
}

/* Form fields redesign */
.bk-field-group {
    margin-bottom: 14px;
}
.bk-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 5px;
}
.bk-field-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    font-size: 0.9375rem;
    color: #111827;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.bk-field-input:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.bk-field-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.bk-field-input.valid {
    border-color: #10b981;
}
.bk-field-hint {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 3px;
}
.bk-field-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 3px;
    display: none;
}
.bk-field-error.show {
    display: block;
}

/* Step buttons */
.bk-btn-next {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}
.bk-btn-next:hover { opacity: 0.92; transform: translateY(-1px); }
.bk-btn-next:active { transform: translateY(0); }
.bk-btn-back {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 11px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bk-btn-back:hover { background: #e5e7eb; }
.bk-step-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.bk-step-actions .bk-btn-next {
    flex: 1;
    width: auto;
    margin-top: 0;
}

/* Confirmation card */
.bk-confirm-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1.5px solid #c4b5fd;
    border-radius: 14px;
    padding: 16px;
}
.bk-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(196,181,253,0.4);
    font-size: 0.875rem;
}
.bk-confirm-row:last-child { border-bottom: none; }
.bk-confirm-row .lbl { color: #7c3aed; font-weight: 500; }
.bk-confirm-row .val { font-weight: 700; color: #1f2937; text-align: right; max-width: 60%; }

/* Mobile form improvements */
@media (max-width: 480px) {
    #booking-modal > div {
        margin: 0;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        max-height: 92dvh;
        overflow-y: auto;
    }
    .bk-modal-header {
        border-radius: 20px 20px 0 0;
    }
}

/* ═══════════════════════════════════════════
   SERVICE LIST ITEMS (Lab / USG / LOR)
═══════════════════════════════════════════ */
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f0ff;
    cursor: default;
    transition: background .15s, transform .15s;
}
.service-item:last-child { border-bottom: none; }
.service-item:hover {
    background: #f5f3ff;
    transform: translateX(3px);
}
.service-item span:last-child {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
}
.service-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 8px;
}

/* ═══════════════════════════════════════════
   RESULTS & CALLBACK FORM — PURPLE REDESIGN
═══════════════════════════════════════════ */
.form-purple-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(124,58,237,0.13);
    border: 1px solid #ede9fe;
}
.form-purple-header {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    padding: 20px 24px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.form-purple-header-icon {
    font-size: 1.6rem;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.form-purple-header-text h3 {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.form-purple-header-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
}
.form-purple-body {
    padding: 22px 24px 24px;
}
.form-purple-body .fp-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6d28d9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-purple-body input,
.form-purple-body textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e9d5ff;
    border-radius: 12px;
    font-size: 0.92rem;
    color: #1f2937;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #faf5ff;
}
.form-purple-body input:focus,
.form-purple-body textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
    background: #fff;
}
.fp-submit {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    margin-top: 4px;
}
.fp-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.fp-submit:active { transform: translateY(0); }

/* ===== FAQ Section ===== */
.faq-list { border-top: 1px solid #e9d5ff; }
.faq-item { border-bottom: 1px solid #e9d5ff; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1.4;
}
.faq-question:hover { color: #7c3aed; }
.faq-icon-wrap { flex-shrink: 0; color: #a78bfa; display: flex; align-items: center; }
.faq-question:hover .faq-icon-wrap { color: #7c3aed; }
.faq-icon-chevron { display: block; }
.faq-icon-x { display: none; }
.faq-item.open .faq-icon-chevron { display: none; }
.faq-item.open .faq-icon-x { display: block; }
.faq-answer {
  height: 0;
  overflow: hidden;
}
.faq-answer-inner { padding: 0.5rem 0 2rem; }
.faq-answer-inner p { color: #4b5563; line-height: 1.75; }
.faq-answer-inner strong { color: #1f2937; }

/* select + date inside form-purple-body */
.form-purple-body select,
.form-purple-body input[type="date"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e9d5ff;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #1f2937;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #faf5ff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}
.form-purple-body select:focus,
.form-purple-body input[type="date"]:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background-color: #fff;
}

/* FAQ method buttons */
.faq-method-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid #e9d5ff;
  background: #faf5ff;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.faq-method-btn:hover { background: #ede9fe; border-color: #c4b5fd; }
.faq-method-selected {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
}

/* FAQ map/phone action buttons */
.faq-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #7c3aed;
  color: #7c3aed;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.faq-action-btn:hover { background: #7c3aed; color: #fff; }
.faq-action-btn--filled { background: #7c3aed; color: #fff; }
.faq-action-btn--filled:hover { background: #4c1d95; border-color: #4c1d95; }
.faq-action-btn--green { border-color: #16a34a; color: #16a34a; }
.faq-action-btn--green:hover { background: #16a34a; color: #fff; }

.faq-phone-btn { border-color: #7c3aed !important; background: #fff !important; color: #7c3aed !important; transition: all .25s ease !important; }
.faq-phone-btn:hover { background: #7c3aed !important; border-color: #7c3aed !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,.25); }

.faq-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.faq-hours-card {
  background: #faf5ff;
  border: 1.5px solid #e9d5ff;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.faq-hours-card .day { font-size: 0.8rem; color: #6d28d9; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.faq-hours-card .time { font-size: 1.05rem; font-weight: 800; color: #1f2937; }
.faq-hours-card .note { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }

.faq-doctors-list { display: flex; flex-direction: column; gap: 8px; }
.faq-doctor-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #faf5ff; border: 1px solid #e9d5ff; }
.faq-doctor-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.faq-doctor-name { font-size: 0.85rem; font-weight: 600; color: #1f2937; line-height: 1.2; }
.faq-doctor-spec { font-size: 0.75rem; color: #7c3aed; margin-top: 2px; }
.faq-doctor-schedule { font-size: 0.72rem; color: #6b7280; margin-top: 3px; }
.faq-doctor-info { flex: 1; min-width: 0; }
.faq-book-btn { flex-shrink: 0; margin-left: auto; padding: 6px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; border: 1.5px solid #7c3aed; color: #7c3aed; background: #fff; cursor: pointer; transition: all .22s ease; white-space: nowrap; }
.faq-book-btn:hover { background: #7c3aed; color: #fff; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(124,58,237,.2); }
