/* ============================================================================
   checkin.css — shared styles for the redesigned DCI check-in flow.
   Loaded by _LayoutFrontEnd.cshtml for:
     FindMe, PatientInfo, PatientInfoAddress, FinancialResponsibleContact,
     EmergencyContact, AdditionalInfo, InsuranceInfo, LoadForms, Completed.

   Self-contained: this file REPLACES main.css/mobile.css/kendo/ui-grid for the
   front-end flow (do not also load main.css from _LayoutFrontEnd). The base
   globals below are carried over from main.css so pages keep their typography
   and validation styling without it.
   ============================================================================ */

/* ---------- Base globals (carried from main.css) ---------- */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
    background: #F8FAFC;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #28558e;
    margin: 0;
}
label { font-size: 16px; font-weight: 500; }
h1 { color: #375588; font-size: 22px; }
h2 { font-size: 24px; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }
:-ms-input-placeholder { color: #ccc; }
::-moz-placeholder { color: #ccc; }
::-webkit-input-placeholder { color: #ccc; }
input[type=checkbox], input[type=radio] { cursor: pointer; }
input[type=radio] { position: relative; top: 2px; }
/* Raw (non-.btn) buttons keep the brand look used by the privacy dialog etc. */
input[type=button], input[type=submit], button {
    background: #28558e; border: 1px solid #375588; border-radius: 10px; color: #eee; padding: 5px 10px;
}
input[type=button]:hover, input[type=submit]:hover, button:hover { background: #8ac0e9; }
/* Keep disabled fields legible (e.g. guarantor "same as patient") */
:disabled { color: #28558ec4; -webkit-text-fill-color: currentcolor; opacity: 1; }

/* ---------- Layout utilities (carried from main.css) ---------- */
.center { text-align: center; }
.right { text-align: right; }
.padTop-10 { padding-top: 10px; }
.padTop-20 { padding-top: 20px; }
.padRight-20 { padding-right: 20px; }
.modal-open .modal { overflow-x: auto; }

/* ---------- MVC validation ---------- */
.field-validation-valid, .validation-summary-valid { display: none; }
input.input-validation-error, select.input-validation-error, .input-validation-error { border: 1px solid #e80c4d !important; }
.validation-summary-errors { color: #e80c4d; font-weight: bold; font-size: 1.1em; }

/* ---------- Shared modal helpers (privacy policy + session timeout) ---------- */
.vertical-alignment-helper { display: table; height: 100%; width: 100%; }
.vertical-align-center { display: table-cell; vertical-align: middle; }
.vertical-align-top { display: table-cell; vertical-align: top; }
.modal-body p { word-wrap: break-word; color: #28558e; }
.modal-header { color: #ffffff; background-color: #28558e; font-size: large; }

/* ============================================================================
   Check-in card layout system (.pi-*)
   ============================================================================ */
.pi-container { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-height: 0 !important; padding: 0 !important; }

/* Sticky top header with wordmark on the left, language/timeout on the right */
.pi-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; padding: 12px 20px;
    background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid #d9e2ec; }
.pi-topbar .input-group { width: auto; }
.pi-wordmark {
    font-weight: 700;
    font-size: 21.12px;
    letter-spacing: -.02em;
    color: #2a5f97;
}
.pi-wordmark .pl360 { color: #16283a; }
.pi-topbar-right { display: flex; align-items: center; gap: 12px; }

.pi-content { max-width: 1020px; margin: 0 auto; padding: 4px 4px 100px; }
.pi-content.pi-narrow { max-width: 600px; }
.pi-page-head { margin: 8px 2px 20px; }
.pi-page-head.pi-center { text-align: center; }
.pi-page-head img { display: block; max-width: 280px; height: auto; margin: 0 auto 14px; }
.pi-page-head h1 { font-size: 26px; font-weight: 700; color: #1e3a5f; margin: 0 0 6px; }
.pi-page-head p { color: #5f7284; font-size: 16px; margin: 0; }
.pi-legend { color: #5f7284; font-size: 14px; margin: 4px 2px 22px; }

.pi-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20,40,60,.05), 0 8px 24px -14px rgba(20,40,60,.15); margin-bottom: 18px; }

.pi-card-yellow {
    background: #fcf8e3;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20,40,60,.05), 0 8px 24px -14px rgba(20,40,60,.15);
    margin-bottom: 18px;
}

.pi-card-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 18px; }
.pi-card-head.pi-flow {
    display: block;
}
.pi-notify-body.pi-flow {
    display: block;
}
.pi-ico {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #e8f0f8;
    color: #28558e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pi-ico svg { width: 20px; height: 20px; }
.pi-card-head h2 { font-size: 18px; font-weight: 700; color: #1e3a5f; margin: 0; }
.pi-card-body { display: grid; grid-template-columns: 1fr; gap: 16px 20px; padding: 14px 22px 22px; }
.pi-card-body .form-group { margin-bottom: 0; min-width: 0; }
    .pi-card-body .form-control {
        min-height: 48px;
        height: auto;
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 1.2em !important;
        /*color: #1e3a5f !important; dark blue*/
        color: #000;
    }
.pi-card-body label { margin-bottom: 6px; }
@media (min-width: 640px) { .pi-card-body { grid-template-columns: 1fr 1fr; } }
.pi-card-body .pi-col-2 { grid-column: 1 / -1; }

/* Patient name row: First | MI (narrow) | Last on one line so the name reads as a unit
   (the 1-char MI no longer eats a half column). Spans the full card body, so the next
   field (DOB) drops to its own line. Stacks on small screens. */
.pi-card-body .pi-name-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 96px 1fr; /* MI column is wide enough for its label ("MI" + Required/Optional tag) to stay on one line */
    gap: 16px 14px;
    align-items: end; /* keep the three inputs aligned even if a label wraps */
}
@media (max-width: 560px) {
    .pi-card-body .pi-name-row { grid-template-columns: 1fr; }
}

.pi-card-body.pi-flow { display: block; }
.pi-card-body.pi-flow .form-group { margin-bottom: 16px; }
.pi-card-body.pi-flow .form-group:last-child { margin-bottom: 0; }

/* WCAG "REQUIRED" / "Optional" tags (appended to labels by page script) */
.pi-optional { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: #4F586E; letter-spacing: .04em; }
.pi-required { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: #215F45; text-transform: uppercase; letter-spacing: .04em; }

/* Fixed footer action bar (Back / step / Continue) */
.pi-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid #d9e2ec; padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.pi-actionbar-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.pi-step-text { color: #5f7284; font-size: 18px; font-weight: 600; }
.pi-back { background: transparent; border: 1.5px solid #c3d1e0; color: #16283a; border-radius: 12px;
    padding: 14px 28px; min-height: 52px; font-size: 18px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; }
.pi-back:hover { border-color: #2a5f97; color: #2a5f97; }
.pi-back .glyphicon { font-size: 12px; }
.pi-continue { width: auto; margin-left: auto; min-height: 52px; border-radius: 12px; padding: 15px 24px; font-size: 18px;
    display: inline-flex; align-items: center; gap: 8px; }
.pi-continue .glyphicon { margin-left: 0; font-size: 15px; }
.pi-continue:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
    .pi-step-text { display: none; }
    .pi-actionbar .pi-continue { flex: 1; justify-content: center; }
}
@media (min-width: 768px) {
    .pi-step-text { display: none; }
}

/* ---------- Confirmed identity rows + SSN reveal (PatientInfo) ---------- */
.pi-confirmed { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 14px;
    background: #f5f8fb; border: 1px solid #d9e2ec; border-radius: 10px; padding: 12px 16px; }
.pi-confirmed .k { grid-column: 1; font-size: .78rem; color: #5f7284; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pi-confirmed .v { grid-column: 1; font-size: 1.1rem; font-weight: 600; color: #16283a; }
.pi-confirmed .check { grid-row: 1/3; grid-column: 2; color: #2f8f6a; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.pi-confirmed .check svg { width: 18px; height: 18px; }
.pi-confirm-note { display: flex; gap: 9px; align-items: flex-start; color: #5f7284;  margin-top: 10px; }
.pi-confirm-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: #2f8f6a; }
.pi-ssn-row { display: flex; gap: 10px; align-items: stretch; }
.pi-ssn-row .form-control { flex: 1; }
.pi-reveal { border: 1.5px solid #c3d1e0; background: #fff; color: #5f7284; border-radius: 10px;
    padding: 0 14px; font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px; }
.pi-reveal:hover { border-color: #2a5f97; color: #2a5f97; }
.pi-reveal svg { width: 18px; height: 18px; }
#maskedSSN.ssn-invalid { border: 1.5px solid #e80c4d !important; }

/* ---------- Lookup modals (Practitioner / Employer) ---------- */
.pi-lookup .modal-content { border: none; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(22,40,58,.22); width: auto; height: auto; margin: 0; }
.pi-lookup .modal-header { background: #fff; border-bottom: 1px solid #e4ebf2; padding: 18px 22px; display: flex; align-items: center; }
.pi-lookup .modal-title {  font-weight: 700; color: #16283a; display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.pi-lookup .modal-title .pi-ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: #e8f0f8; color: #28558e; display: inline-flex; align-items: center; justify-content: center; }
.pi-lookup .modal-title .pi-ico svg { width: 19px; height: 19px; }
.pi-lookup .modal-header .close { margin-left: auto; color: #8496a8; opacity: 1; font-size: 26px; font-weight: 400; text-shadow: none; }
.pi-lookup .modal-header .close:hover { color: #16283a; }
.pi-lookup .modal-body { padding: 20px 22px; background: #f7f9fc; }
.pi-lookup .modal-footer { background: #fff; border-top: 1px solid #e4ebf2; padding: 14px 22px; display: flex; align-items: center; }

.pi-search { display: flex; gap: 10px; margin-bottom: 16px; }
.pi-search .form-control, .pi-search .customText { flex: 1; height: 46px; border: 1.5px solid #c3d1e0; border-radius: 10px; padding: 0 14px;  box-shadow: none; outline: none; }
.pi-search .form-control:focus, .pi-search .customText:focus { border-color: #28558e; box-shadow: 0 0 0 3px rgba(40,85,142,.12); }
.pi-search-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 20px;
    background: #28558e; color: #fff; border: none; border-radius: 10px; font-weight: 600;  cursor: pointer; }
.pi-search-btn:hover { background: #1e4574; }
.pi-search-btn:disabled { background: #a9b8c8; cursor: not-allowed; }
.pi-search-btn svg { width: 18px; height: 18px; }
.pi-search-btn .Default, .pi-search-btn .Spanish { color: inherit; }

/* Result list — used with either .tblHeader/.tblContainer classes or #tblHeader/#tblContainer ids */
.pi-lookup .tblHeader { display: flex; width: auto; margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #5f7284; background: transparent; border: none; padding: 2px 14px 8px; }
.pi-lookup .tblHeader .pi-col-name { width: 32%; }
.pi-lookup .tblHeader .pi-col-addr { width: 68%; padding-left: 20px; }
.pi-lookup .tblContainer { height: 300px; width: auto; margin: 0; overflow-y: auto; background: #fff; border: 1px solid #e4ebf2; border-radius: 10px; padding: 6px; }
.pi-lookup .divs { display: flex; align-items: flex-start; padding: 11px 12px; border-radius: 8px; cursor: pointer; border-bottom: 1px solid #eef2f6; }
.pi-lookup .divs:last-child { border-bottom: none; }
.pi-lookup .divs:hover { background: #eef4fb; }
.pi-lookup .divs.highlight-color { background: #dcebfb; box-shadow: inset 0 0 0 1.5px #28558e; }
.pi-lookup .divs span:first-child { font-weight: 600; color: #16283a; }
.pi-lookup #tblNoRecords span, .pi-lookup #tblNoRecordsE span { display: block; padding: 14px 12px; color: #c0392b; font-weight: 500; }
.pi-lookup .modal-footer .pull-left, .pi-lookup #divNoEmployer, .pi-lookup #divNoProvider { line-height: 1.9; color: #45596b;  text-align: left; }
.pi-lookup .modal-footer .pull-left input[type=radio], .pi-lookup #divNoEmployer input[type=radio] { margin-right: 4px; }
.pi-lookup .modal-footer .btn-default, .pi-lookup .btn-close-lookup { margin-left: auto; border: 1.5px solid #c3d1e0; background: #fff; color: #45596b; border-radius: 10px; padding: 9px 22px; font-weight: 600; }
.pi-lookup .modal-footer .btn-default:hover, .pi-lookup .btn-close-lookup:hover { border-color: #8496a8; background: #f5f8fb; }
.highlight-color { background: #dcebfb; }

/* Inline "search employer" trigger on the guarantor page */
.pi-input-search { position: relative; }
.pi-input-search .form-control { padding-right: 46px; cursor: pointer; }
.pi-input-search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: none; background: #e8f0f8; color: #28558e; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pi-input-search-btn:hover { background: #d7e6f5; }
.pi-input-search-btn svg { width: 17px; height: 17px; }

/* ---------- "Same as patient" / "no emergency contact" check line ---------- */
.pi-checkline { background: #fff; border: 1px solid #d9e2ec; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.pi-checkline label { font-weight: 600; color: #28558e; margin: 0; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.pi-checkline input[type=checkbox] { width: 18px; height: 18px; margin: 0; }

/* ---------- InsuranceInfo ---------- */
.pi-readrow { display: grid; grid-template-columns: 210px 1fr; gap: 4px 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #eef2f6; }
.pi-readrow:last-child { border-bottom: none; }
    .pi-readrow .k { /*font-size: .78rem;*/
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #5f7284;
    }
    .pi-readrow .v { /*font-size: 1.05rem;*/
        font-weight: 600;
        color: #16283a;
        word-break: break-word;
    }
.pi-readrow .v:empty::before { content: "\2014"; color: #b0bccb; }
@media (max-width: 560px) { .pi-readrow { grid-template-columns: 1fr; gap: 2px; } }
.pi-confirm-q { /*font-size: 1.05rem;*/ font-weight: 700; color: #16283a; margin: 4px 2px 12px; }

.pi-choicecards { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.pi-optcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 0;
    border: 1.5px solid #c3d1e0; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400;
    transition: border-color .12s, background .12s, box-shadow .12s; }
.pi-optcard:hover { border-color: #8fb0d4; background: #f7fafd; }
.pi-optcard input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.pi-optcard-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pi-optcard-title { /*font-size: 1.05rem; */
    font-weight: 700;
    color: #16283a;
}
.pi-optcard-sub { /*font-size: .9rem;*/
    color: #5f7284;
}
.pi-optcard-ind { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c3d1e0;
    display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pi-optcard-ind svg { width: 14px; height: 14px; opacity: 0; }
.pi-optcard.selected { border-color: #28558e; background: #eef4fb; box-shadow: 0 0 0 3px rgba(40,85,142,.12); }
.pi-optcard.selected .pi-optcard-ind { border-color: #28558e; background: #28558e; }
.pi-optcard.selected .pi-optcard-ind svg { opacity: 1; }
.pi-optcard input[type=radio]:focus-visible + .pi-optcard-main { outline: 2px solid #28558e; outline-offset: 3px; border-radius: 4px; }

.pi-notify { border: 1px solid #cfe8dd; border-left: 4px solid #2f8f6a; background: #f3faf7; }
    .pi-notify .pi-notify-body {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 18px 22px;
        color: #234; /*font-size: 1.02rem; */
        font-weight: 500;
    }
.pi-notify .pi-notify-body svg { width: 22px; height: 22px; flex: 0 0 auto; color: #2f8f6a; margin-top: 2px; }
/* Text sits in a single column to the right of the icon */
.pi-notify .pi-notify-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Modern dialogs (FindMe: appointment / confirm / not-found) ---------- */
.pi-modal .modal-dialog { margin-top: 46px; }
.pi-modal .modal-content { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(22,40,58,.28); }
.pi-modal .modal-header { background: #fff; border-bottom: 1px solid #e8edf3; padding: 20px 24px; display: flex; align-items: center; gap: 12px; }
.pi-modal .modal-title { /*font-size: 1.2rem;*/ font-weight: 700; color: #16283a; display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.pi-modal .modal-header .close { margin-left: auto; color: #8496a8; opacity: 1; font-size: 26px; font-weight: 400; text-shadow: none; }
.pi-modal .modal-header .close:hover { color: #16283a; }
.pi-modal .modal-body { padding: 22px 24px; color: #334155; /*font-size: 1.05rem;*/ line-height: 1.5; }
.pi-modal .modal-body p { color: #334155; }
.pi-modal .modal-body .form-group { margin: 16px 0 0; }
.pi-modal .modal-body .form-control { min-height: 46px; height: auto; border-radius: 10px; padding: 10px 14px; }
.pi-modal .modal-footer { background: #fff; border-top: 1px solid #e8edf3; padding: 16px 24px; display: flex; justify-content: flex-end; gap: 10px; }
.pi-modal .modal-footer .btn { border-radius: 10px; padding: 11px 24px; font-weight: 600; min-height: 46px; margin: 0; }
.pi-modal .modal-footer .btn-primary { background: #28558e; border: 1.5px solid #28558e; color: #fff; }
.pi-modal .modal-footer .btn-primary:hover { background: #1e4574; border-color: #1e4574; }
.pi-modal .modal-footer .btn-default { background: #fff; border: 1.5px solid #c3d1e0; color: #45596b; }
.pi-modal .modal-footer .btn-default:hover { border-color: #8496a8; background: #f5f8fb; }
/* Danger variant tints the icon tile red (patient-not-found dialogs) */
.pi-modal.pi-modal-danger .pi-ico { background: #fdecec; color: #c0392b; }

/* ---------- Completed ---------- */
#customContentLink, #customContentLink:active { color: #2369b4; text-decoration: none; }
#customContentLink:hover, #customContentLink:visited { color: #8ac0e9; text-decoration: none; }
.pi-success { text-align: center; padding: 12px 0 6px; }
.pi-success-check { width: 88px; height: 88px; margin: 4px auto 20px; border-radius: 50%; background: #e6f6ee; color: #2f8f6a; display: flex; align-items: center; justify-content: center; }
.pi-success-check svg { width: 48px; height: 48px; }
.pi-success-logo img { max-width: 240px; max-height: 90px; height: auto; margin: 0 auto 20px; display: block; }
.pi-success h1, .pi-success h2 { color: #1e3a5f; font-weight: 700; margin-top: 0; }
.pi-success p, .pi-success span { color: #45596b; font-size: 1.05rem; }
.pi-summary b { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5f7284; margin-bottom: 3px; }
.pi-summary [id$="Details"] { line-height: 1.7; color: #16283a; padding-top: 2px; }
#AllDone.pi-restart { border: 1.5px solid #c3d1e0; background: #fff; color: #28558e; border-radius: 10px;
    padding: 10px 20px; font-weight: 600;  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; }
#AllDone.pi-restart:hover { border-color: #28558e; background: #f2f7fc; }

/* ---------- Legacy JS-driven highlights + file input (kept; harmless if unused) ---------- */
.highlight-required { background: #F8D32C; }
.glyphicon-folder-open { display: none !important; }
.bootstrap-filestyle.input-group { padding-bottom: 0; }
.group-span-filestyle .btn { padding: 6px 15px 5px; }

/* ---------- ConfirmAppointment: confirm/cancel buttons + appointment layout ---------- */
.confirmBtn, .cancelBtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0;
    border-radius: 10px; padding: 12px 22px; font-weight: 600; cursor: pointer;
    border: 1.5px solid transparent; min-height: 48px;
}
.confirmBtn { background: #22a06b; border-color: #22a06b; color: #fff; }
.confirmBtn:hover { background: #1c885a; border-color: #1c885a; color: #fff; }
.cancelBtn { background: #fff; border-color: #d8b4b0; color: #b23e35; }
.cancelBtn:hover { border-color: #c0392b; background: #fdf4f3; color: #b23e35; }
.confirmBtn:active, .cancelBtn:active { transform: translateY(1px); }
.disabledBtn, .disabledBtn:hover { background: #e6ebf1 !important; border-color: #e6ebf1 !important; color: #8496a8 !important; cursor: default; }

/* Date banner: calendar icon + weekday date, sits above the appointment cards */
.pi-appt-banner {
    display: flex; align-items: center; justify-content: center; gap: 11px;
    background: #eef4fb; border: 1px solid #dde8f4; border-radius: 12px;
    padding: 13px 18px; margin: 0 0 20px; color: #1e3a5f; font-weight: 700; font-size: 1.6em;
}
.pi-appt-banner svg { width: 20px; height: 20px; color: #28558e; flex: 0 0 auto; }
.pi-appt-date { font-size: 20px; font-weight: 700; color: #1e3a5f; text-align: center; margin: 0 0 4px; }

/* Appointment card: tinted time column on the left, details + actions on the right.
   NOTE: no overflow:hidden here — it would clip the "Add to Calendar" dropdown.
   The time-column corners are rounded directly instead. */
.pi-appt-card { padding: 0; }
.pi-appt-card .pi-appt-inner { display: flex; align-items: stretch; }
.pi-appt-timecol {
    flex: 0 0 118px; background: linear-gradient(160deg, #f2f7fc 0%, #e9f1fa 100%);
    border-right: 1px solid #e6eef7; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 20px 12px; gap: 1px;
    border-radius: 13px 0 0 13px;
}
.pi-appt-timecol .pi-appt-label {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: #6b8bb0; margin-bottom: 3px;
}
    .pi-appt-timecol .pi-appt-hh {
        font-size: 2em;
        font-weight: 700;
        color: #1e3a5f;
        line-height: 1;
    }
.pi-appt-timecol .pi-appt-ampm {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5f7284;
}
.pi-appt-detailcol { flex: 1 1 auto; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.pi-appt-detail { display: flex; align-items: flex-start; gap: 10px; color: #16283a; min-width: 0; }
.pi-appt-detail svg { width: 18px; height: 18px; color: #28558e; flex: 0 0 auto; margin-top: 1px; }
.pi-appt-provider { font-weight: 700; color: #16283a;  word-break: break-word; }
.pi-appt-loc { color: #5f7284; white-space: pre-line; }
.pi-appt-actions { display: flex; gap: 12px; margin-top: 5px; flex-wrap: wrap; }
.pi-appt-actions .confirmBtn, .pi-appt-actions .cancelBtn { flex: 1 1 auto; min-width: 140px; }
.confirmBtn svg, .cancelBtn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Prominent full-width "Confirm all" action above the list */
.pi-appt-confirmall { margin: 0 0 18px; }
.pi-appt-confirmall .confirmBtn { width: 100%; min-height: 52px;  }

/* "Add to Calendar" secondary action + provider dropdown menu */
.pi-cal { position: relative; text-align: center; margin-top: 12px; }
.pi-addcal {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; border: 1.5px solid #c3d1e0; color: #28558e; border-radius: 10px;
    padding: 11px 20px; min-height: 46px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.pi-addcal:hover, .pi-addcal[aria-expanded="true"] { background: #f2f7fc; border-color: #28558e; color: #28558e; }
.pi-addcal svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pi-cal-menu {
    position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); z-index: 30;
    min-width: 236px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 10px 30px -8px rgba(20,40,60,.28); padding: 6px; text-align: left;
}
.pi-cal-opt {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 8px;
    color: #16283a; font-size: 14px; font-weight: 500; text-decoration: none;
}
.pi-cal-opt:hover, .pi-cal-opt:focus { background: #f2f7fc; color: #28558e; text-decoration: none; }
.pi-cal-opt svg { width: 18px; height: 18px; flex: 0 0 auto; color: #28558e; }

/* Inconspicuous cancel hyperlink: separated below the Confirm button, muted, low-emphasis */
.pi-cancel-wrap { text-align: center; margin-top: 16px; }
.pi-cancel-link {
    display: inline-block; background: none !important; border: 0 !important; padding: 2px 4px; min-height: 0;
    color: #97a4b3; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px;
    cursor: pointer;
}
.pi-cancel-link:hover, .pi-cancel-link:focus { background: none !important; color: #b23e35; text-decoration: underline; }
/* When JS marks a sibling confirmed/cancelled it adds .disabledBtn + sets the text — keep it plain, muted, no link chrome */
.pi-cancel-link.disabledBtn, .pi-cancel-link.disabledBtn:hover {
    background: none !important; border: 0 !important; color: #8496a8 !important; text-decoration: none; cursor: default;
}

/* Soft-tinted "how to cancel" note */
.pi-appt-cancelnote {
    background: #fbfcfe; border: 1px solid #e6eef7; border-radius: 12px;
    padding: 15px 18px; text-align: center; color: #45596b; margin: 4px 0 0;
}
.pi-appt-cancelnote strong { color: #1e3a5f; }

@media (max-width: 480px) {
    .pi-appt-card .pi-appt-inner { flex-direction: column; }
    .pi-appt-timecol {
        flex-direction: row; gap: 8px; flex-basis: auto; justify-content: center;
        border-right: none; border-bottom: 1px solid #e6eef7; padding: 12px;
        border-radius: 13px 13px 0 0;
    }
    .pi-appt-timecol .pi-appt-label { margin-bottom: 0; margin-right: 2px; }
    .pi-appt-actions .confirmBtn, .pi-appt-actions .cancelBtn { flex-basis: 100%; }
}

/* ---------- Completed page: celebratory "all done" hero ---------- */
.pi-done-hero { text-align: center; padding: 10px 0 2px; }
.pi-done-check {
    width: 96px; height: 96px; margin: 6px auto 20px; border-radius: 50%;
    background: #e6f6ee; color: #2f8f6a; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 9px rgba(47,143,106,.10);
    animation: piDonePop .5s cubic-bezier(.34,1.4,.5,1) both;
}
.pi-done-check svg { width: 50px; height: 50px; }
@keyframes piDonePop { 0% { transform: scale(.55); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pi-done-check { animation: none; } }
.pi-done-hero h1 { color: #1e3a5f; font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.pi-done-hero p { color: #45596b; font-size: 16px; margin: 0 auto; max-width: 460px; }
.pi-done-logo img { max-width: 210px; max-height: 76px; height: auto; margin: 20px auto 0; display: block; }

/* Warm custom message from the clinic (optional, template-driven) */
.pi-done-message {
    background: #f2f7fc; border: 1px solid #dde8f4; border-radius: 12px;
    padding: 16px 20px; color: #2f4763; line-height: 1.55; text-align: center;
}
.pi-done-message p:last-child { margin-bottom: 0; }

/* ---------- Kendo notification (unsupported-browser warning on video visits) ---------- */
.notification-title { font-weight: bold; display: flex; align-items: center; }
.notification-title, .notification-title > .k-icon { font-size: 1.25em; }

.k-loading-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}