:root {
    --pranyx-primary: #155eef;
    --pranyx-primary-dark: #0d47c8;
    --pranyx-ink: #172b4d;
    --pranyx-surface: #f5f8ff;
    --pranyx-border: #dfe5ef;
}

body {
    color: var(--pranyx-ink);
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea {
    scroll-margin-top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(21 94 239 / 28%);
    outline-offset: 2px;
}

.text-primary,
.navbar-brand {
    color: var(--pranyx-primary) !important;
}

.btn-primary {
    --bs-btn-bg: var(--pranyx-primary);
    --bs-btn-border-color: var(--pranyx-primary);
    --bs-btn-hover-bg: var(--pranyx-primary-dark);
    --bs-btn-hover-border-color: var(--pranyx-primary-dark);
}

.btn-lg {
    min-height: 3.25rem;
}

.pranyx-wordmark {
    display: inline-flex;
    align-items: baseline;
    color: var(--pranyx-ink);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-decoration: none;
}

.pranyx-wordmark:hover {
    color: var(--pranyx-primary);
}

.pranyx-wordmark small {
    color: var(--pranyx-primary);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero {
    background:
        radial-gradient(circle at 85% 20%, rgb(21 94 239 / 12%), transparent 30%),
        linear-gradient(180deg, var(--pranyx-surface), #fff);
}

.hero .card {
    border-radius: 1.25rem;
}

.landing-navbar {
    min-height: 4.5rem;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: 40rem;
}

.landing-hero::after {
    position: absolute;
    z-index: 0;
    top: 8%;
    right: -9rem;
    width: 27rem;
    height: 27rem;
    border: 1px solid rgb(21 94 239 / 12%);
    border-radius: 50%;
    box-shadow:
        0 0 0 4rem rgb(21 94 239 / 3%),
        0 0 0 8rem rgb(21 94 239 / 2%);
    content: "";
    pointer-events: none;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.landing-kicker {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border: 1px solid #cfdcff;
    border-radius: 999px;
    color: var(--pranyx-primary);
    background: rgb(255 255 255 / 78%);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-heading {
    max-width: 11ch;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.landing-copy {
    max-width: 39rem;
}

.landing-capabilities {
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 1.25rem 3.5rem rgb(23 43 77 / 12%) !important;
}

.landing-feature-list {
    display: grid;
    gap: 0;
}

.landing-feature-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--pranyx-border);
    color: #344563;
    font-weight: 500;
}

.landing-feature-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.landing-feature-list span {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #087443;
    background: #e7f8ef;
    font-size: 0.8rem;
    font-weight: 800;
}

.landing-compliance-note {
    padding: 1rem 1.1rem;
    border: 1px solid #cfdcff;
    border-radius: 0.85rem;
    background:
        radial-gradient(circle at 95% 10%, rgb(21 94 239 / 10%), transparent 35%),
        #f7f9ff;
}

.landing-compliance-note .fw-semibold {
    color: #173c70;
}

.letter-spacing {
    letter-spacing: 0.08em;
}

.clinic-hero {
    background:
        radial-gradient(circle at 85% 30%, rgb(21 94 239 / 16%), transparent 32%),
        linear-gradient(145deg, #f4f7ff, #fff 70%);
}

.clinic-heading {
    max-width: 12ch;
    letter-spacing: -0.035em;
}

.clinic-trust-pill {
    padding: 0.45rem 0.75rem;
    border: 1px solid #cfdcff;
    border-radius: 999px;
    color: #31527c;
    background: rgb(255 255 255 / 78%);
    font-size: 0.875rem;
    font-weight: 600;
}

.trust-dot,
.status-dot-warning {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-radius: 50%;
}

.trust-dot {
    background: #198754;
}

.clinic-mark {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: min(18rem, 70vw);
    aspect-ratio: 1;
    margin-inline: auto;
    padding: 2rem;
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 75% 20%, rgb(255 255 255 / 25%), transparent 25%),
        linear-gradient(145deg, #0d47c8, #6d8fff);
}

.clinic-mark-initials {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.clinic-mark-copy {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 38%);
}

.clinic-mark-copy span {
    color: rgb(255 255 255 / 78%);
}

.clinic-banner-card {
    overflow: hidden;
    width: min(34rem, 100%);
    margin-inline: auto;
    border: 1px solid rgb(21 94 239 / 14%);
    border-radius: 1.25rem;
    background: #fff;
}

.clinic-banner-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 583 / 356;
    object-fit: contain;
    background: #07163f;
}

.clinic-banner-card figcaption {
    display: flex;
    gap: 0.15rem;
    flex-direction: column;
    padding: 1rem 1.25rem;
    color: var(--pranyx-ink);
}

.clinic-banner-card figcaption span {
    color: #667085;
    font-size: 0.9rem;
}

.booking-benefits {
    background: #fff;
}

.benefit-item {
    display: flex;
    min-height: 7rem;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    border-left: 1px solid var(--pranyx-border);
}

.benefit-item:last-child {
    border-right: 1px solid var(--pranyx-border);
}

.benefit-item span {
    color: #667085;
    font-size: 0.9rem;
}

.clinic-card,
.selection-card {
    border-radius: 1rem;
}

.doctor-avatar {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--pranyx-primary);
    background: #e9f0ff;
    font-weight: 700;
}

.booking-container {
    max-width: 50rem;
}

.booking-steps {
    position: relative;
    gap: 0;
}

.booking-steps li {
    position: relative;
    flex: 1;
    padding-top: 2.25rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.booking-steps li::before {
    position: absolute;
    z-index: 0;
    top: 1rem;
    right: 50%;
    left: -50%;
    height: 2px;
    background: #d8deea;
    content: "";
}

.booking-steps li:first-child::before {
    display: none;
}

.booking-steps li span {
    position: absolute;
    z-index: 1;
    top: 0;
    left: calc(50% - 1rem);
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 2px solid #d8deea;
    border-radius: 50%;
    background: #fff;
    font-weight: 700;
}

.booking-steps li.active {
    color: var(--pranyx-primary);
    font-weight: 600;
}

.booking-steps li.active::before {
    background: var(--pranyx-primary);
}

.booking-steps li.active span {
    border-color: var(--pranyx-primary);
    color: #fff;
    background: var(--pranyx-primary);
}

.booking-with {
    padding: 1rem 1.25rem;
    border: 1px solid #d8e2fb;
    border-radius: 1rem;
    background: #fff;
}

.selection-card {
    border: 2px solid transparent;
    box-shadow: 0 0.25rem 1rem rgb(23 43 77 / 7%);
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.selection-card:hover,
.selection-card:focus-visible {
    border-color: #9ab5ff;
    box-shadow: 0 0.5rem 1.5rem rgb(23 43 77 / 12%);
    transform: translateY(-1px);
}

.selection-card.selected {
    border-color: var(--pranyx-primary);
    background-color: #f7f9ff;
}

.duration-pill {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    color: var(--pranyx-primary);
    background: #e9f0ff;
    font-size: 0.875rem;
    font-weight: 600;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
}

.slot-button {
    min-height: 3rem;
    font-weight: 600;
}

.selected-slot {
    padding: 1rem 1.25rem;
    border: 1px solid #b9cbff;
    border-radius: 0.75rem;
    background: #f7f9ff;
}

.confirmation-container {
    max-width: 46rem;
}

.confirmation-check {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #198754;
    font-size: 2rem;
    font-weight: 700;
}

.confirmation-details {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #f8f9fa;
}

.login-container {
    max-width: 30rem;
}

.admin-stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgb(23 43 77 / 7%);
}

.admin-stat-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgb(23 43 77 / 12%);
}

.status-card-warning {
    border: 1px solid #f3d58c;
    background: #fffaf0;
}

.status-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #6c5700;
    font-size: 0.875rem;
}

.status-dot-warning {
    background: #f0ad00;
}

.appointment-card-list {
    display: grid;
    gap: 1rem;
}

.appointment-mobile-card {
    padding: 1rem;
    border: 1px solid var(--pranyx-border);
    border-radius: 0.9rem;
    background: #fff;
}

.appointment-mobile-card.sync-failed {
    border-color: #e9c46a;
    background: #fffaf0;
}

.compact-details {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.compact-details dt {
    color: #667085;
    font-weight: 500;
}

.compact-details dd {
    margin: 0;
}

.sensitive-text {
    white-space: pre-wrap;
}

.audit-event {
    padding-block: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.audit-event:last-child {
    border-bottom: 0;
}

.doctor-navbar {
    background: #173c70;
}

.doctor-profile-avatar {
    display: grid;
    width: 6rem;
    height: 6rem;
    place-items: center;
    border-radius: 1.5rem;
    color: #fff;
    background: linear-gradient(145deg, #155eef, #4f7ff4);
    font-size: 2rem;
    font-weight: 700;
}

.doctor-settings-container {
    max-width: 58rem;
}

.availability-row {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(8rem, 0.8fr) minmax(8rem, 0.8fr) minmax(10rem, 1fr);
    gap: 1rem;
    align-items: center;
    padding-block: 0.85rem;
    border-bottom: 1px solid #e9ecef;
}

.calendar-status-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border-radius: 0.8rem;
    color: #fff;
    background: #4285f4;
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .navbar .container {
        padding-inline: 1rem;
    }

    .landing-navbar .navbar-text {
        display: none;
    }

    .landing-hero {
        min-height: auto;
    }

    .landing-heading {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .landing-hero::after {
        display: none;
    }

    .clinic-heading {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .clinic-mark {
        width: 100%;
        max-width: none;
        min-height: 14rem;
        aspect-ratio: auto;
    }

    .benefit-item,
    .benefit-item:last-child {
        min-height: auto;
        padding: 1rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--pranyx-border);
        border-left: 0;
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }

    .booking-container {
        padding-inline: 1rem;
    }

    .booking-steps li {
        font-size: 0.78rem;
    }

    .selection-card .card-body {
        padding: 1rem !important;
    }

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

    .booking-submit {
        position: sticky;
        z-index: 10;
        bottom: 0;
        margin-inline: -1.5rem;
        padding: 0.75rem 1.5rem calc(0.75rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--pranyx-border);
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 -0.5rem 1.5rem rgb(23 43 77 / 8%);
    }

    .booking-submit .btn {
        width: 100%;
    }

    .confirmation-details {
        padding: 1rem;
    }

    .availability-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
