/* Client Portal page. Base layout, type, hero, cards and CTA come from
   /Software-Features/Online-Booking/css/online-booking.css; this file adds the portal mockups. */

/* Hero placeholder until the photo is ready */
.booking-hero .booking-hero-frame .cp-hero-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 20% 18%, rgba(242, 180, 30, 0.16), transparent 40%),
        radial-gradient(circle at 82% 84%, rgba(41, 184, 199, 0.18), transparent 42%),
        #f7f9fa;
    border: 1px dashed rgba(41, 184, 199, 0.35);
    display: flex;
    justify-content: center;
}

.cp-hero-placeholder span {
    color: #7b8492;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Shared floating card: sits on the frame's bottom edge, over the mockup's empty bottom padding */
.cp-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    bottom: 0;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 18px 36px -12px rgba(30, 60, 80, 0.28);
    display: flex;
    font-family: 'Roboto', sans-serif;
    gap: 12px;
    left: 0;
    padding: 12px 18px 12px 12px;
    position: absolute;
    z-index: 2;
}

.cp-card-ic {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.cp-card-ic svg {
    display: block;
}

.cp-card-green { background: #e8f4ef; color: #3d8b6a; }
.cp-card-rose  { background: #f8e9ec; color: #b4505f; }
.cp-card-gold  { background: #fbf1df; color: #b66d13; }

.cp-card-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cp-card-body small {
    color: #7b8492;
    font-size: 11.5px;
    font-weight: 600;
}

.cp-card-body strong {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.cp-card-body em {
    color: #4f5866;
    font-size: 12px;
    font-style: normal;
}

/* Portal home mock (modeled on the real portal home; 80/20, sample data) */
.cpx-visual {
    margin: 0 auto;
    max-width: 1000px;
    padding-bottom: 40px;
    position: relative;
}

.booking-product-frame.cpx {
    aspect-ratio: auto;
    background: #f5f7fa;
    font-family: 'Roboto', sans-serif;
}

.cpx-inner {
    padding: 18px 22px 36px;
}

.cpx-top {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.booking-product-frame.cpx img.cpx-logo {
    border-radius: 10px;
    flex: 0 0 38px;
    height: 38px;
    object-fit: contain;
    width: 38px;
}

.cpx-hello {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cpx-hello b {
    color: #111827;
    font-size: 15px;
}

.cpx-hello small {
    color: #6b7280;
    font-size: 12.5px;
}

.cpx-av {
    align-items: center;
    background: #e3f4f6;
    border-radius: 50%;
    color: #137f8c;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 12px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
}

.cpx-book {
    align-items: center;
    background: linear-gradient(90deg, #0f172a 0%, #22305a 48%, #7a8299 100%);
    border-radius: 16px;
    box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.5);
    color: #ffffff;
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    padding: 16px 20px;
}

.cpx-book-ic {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 50px;
    height: 50px;
    justify-content: center;
}

.cpx-book-ic svg,
.cpx-ic svg {
    display: block;
}

.cpx-book-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cpx-book-text strong {
    font-size: 18px;
    font-weight: 700;
}

.cpx-book-text small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.cpx-book-go {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 20px;
    font-style: normal;
    height: 34px;
    justify-content: center;
    line-height: 1;
}

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

.cpx-tile {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 14px 12px 14px 14px;
}

.cpx-ic {
    align-items: center;
    border-radius: 11px;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.cpx-blue .cpx-ic   { background: #eaf1fb; color: #3a6fb5; }
.cpx-teal .cpx-ic   { background: #e7f5f1; color: #2f8a76; }
.cpx-violet .cpx-ic { background: #eceefb; color: #4f5bb3; }
.cpx-gold .cpx-ic   { background: #fcf2e1; color: #c27f1c; }
.cpx-rose .cpx-ic   { background: #f9eaee; color: #b4505f; }
.cpx-green .cpx-ic  { background: #e8f5ec; color: #3f8f5a; }
.cpx-gray .cpx-ic   { background: #eef1f4; color: #5b6573; }

.cpx-txt {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    min-width: 0;
}

.cpx-txt b {
    color: #b45f57;
    font-size: 14.5px;
    font-weight: 700;
}

.cpx-txt small {
    color: #4b5563;
    font-size: 12.5px;
}

.cpx-tile i {
    color: #9aa3ae;
    flex: 0 0 auto;
    font-size: 16px;
    font-style: normal;
}

.cpx-card {
    left: auto;
    right: 28px;
}

.portal-page .cp-points {
    margin-top: 44px;
}

/* Appointments and Online Forms mocks */
.cp-visual {
    padding: 0 0 40px 24px;
    position: relative;
}

.cp-visual-right {
    padding: 0 24px 40px 0;
}

.booking-product-frame.cpa,
.booking-product-frame.cpf {
    aspect-ratio: auto;
    background: #ffffff;
    color: #1f2937;
    font-family: 'Roboto', sans-serif;
}

.cpa-inner,
.cpf-inner {
    padding: 18px 18px 38px;
}

.cpa-head,
.cpf-head {
    align-items: center;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.cpa-head strong,
.cpf-head strong {
    color: #111827;
    font-size: 16px;
}

.cpa-tabs {
    background: #f1f4f7;
    border-radius: 9px;
    display: inline-flex;
    font-size: 12px;
    padding: 3px;
}

.cpa-tabs b,
.cpa-tabs i {
    border-radius: 7px;
    font-style: normal;
    padding: 5px 12px;
}

.cpa-tabs b {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
    color: #111827;
}

.cpa-tabs i {
    color: #6b7280;
}

.cpa-row {
    align-items: center;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.cpa-date {
    align-items: center;
    background: #f3f7f8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    padding: 6px 0;
}

.cpa-date small {
    color: #6b7280;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.cpa-date b {
    color: #111827;
    font-size: 19px;
}

.cpa-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    min-width: 0;
}

.cpa-info b {
    font-size: 14px;
}

.cpa-info small {
    color: #6b7280;
    font-size: 12px;
}

.cpa-info em {
    align-items: center;
    color: #137f8c;
    display: inline-flex;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 600;
    gap: 5px;
}

.cpa-info em svg {
    display: block;
}

.cpa-acts {
    display: flex;
    gap: 6px;
}

.cpa-btn {
    border: 1px solid #137f8c;
    border-radius: 8px;
    color: #137f8c;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 10px;
    white-space: nowrap;
}

.cpa-btn-ghost {
    border-color: #e1e6ea;
    color: #6b7280;
}

.portal-page .cpa-label {
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 16px 0 6px;
    text-transform: uppercase;
}

.cpa-past {
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 9px 2px;
}

.cpa-past span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cpa-past b {
    font-size: 13.5px;
}

.cpa-past small {
    color: #6b7280;
    font-size: 12px;
}

.cpa-past em,
.cpf-row em {
    color: #3d8b6a;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.cpf-head small {
    color: #6b7280;
    font-size: 12px;
}

.cpf-prog {
    margin-bottom: 14px;
}

.cpf-prog span {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cpf-prog b {
    font-size: 13px;
}

.cpf-prog small {
    color: #6b7280;
    font-size: 12px;
}

.cpf-prog i {
    background: #eef2f5;
    border-radius: 999px;
    display: block;
    height: 8px;
    overflow: hidden;
}

.cpf-prog u {
    background: linear-gradient(90deg, #29b8c7, #3d8b6a);
    border-radius: 999px;
    display: block;
    height: 100%;
    width: 67%;
}

.cpf-row {
    align-items: center;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px;
}

.cpf-ic {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
}

.cpf-ic svg {
    display: block;
}

.cpf-done .cpf-ic { background: #e8f4ef; color: #3d8b6a; }
.cpf-todo .cpf-ic { background: #fbf1df; color: #b66d13; }

.cpf-todo {
    background: #fffbf3;
    border-color: #f2dfb8;
}

.cpf-name {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cpf-name b {
    font-size: 14px;
}

.cpf-name small {
    color: #6b7280;
    font-size: 12px;
}

.cpf-todo .cpf-name small {
    color: #b66d13;
    font-weight: 600;
}

.cpf-btn {
    background: #137f8c;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    white-space: nowrap;
}

.cpf-card {
    left: auto;
    right: 0;
}

.portal-page .booking-split-copy .booking-button {
    margin-top: 28px;
}

/* Laptops: tighter tiles */
@media (max-width: 1199px) {
    .cpx-tile {
        gap: 10px;
        padding: 12px 10px 12px 12px;
    }

    .cpx-ic {
        flex-basis: 36px;
        height: 36px;
    }

    .cpx-txt b {
        font-size: 13.5px;
    }

    .cpx-txt small {
        font-size: 12px;
    }

    .cpa-btn-ghost {
        display: none;
    }
}

/* Tablets: two columns of tiles (Global Settings hidden to keep rows even) */
@media (max-width: 991px) {
    .cpx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpx-tile:last-child {
        display: none;
    }

    .cp-visual,
    .cp-visual-right {
        margin: 0 auto;
        max-width: 600px;
    }

    .cpa-btn-ghost {
        display: inline-block;
    }
}

/* Phones: one column, first five tiles; cards sit below the mockups */
@media (max-width: 575px) {
    .cpx-visual,
    .cp-visual,
    .cp-visual-right {
        padding: 0;
    }

    .cpx-inner,
    .cpa-inner,
    .cpf-inner {
        padding: 12px;
    }

    .cpx-book {
        gap: 12px;
        padding: 12px 14px;
    }

    .cpx-book-ic {
        flex-basis: 40px;
        height: 40px;
    }

    .cpx-book-text strong {
        font-size: 16px;
    }

    .cpx-book-text small {
        font-size: 12px;
    }

    .cpx-grid {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .cpx-tile:nth-child(n+6) {
        display: none;
    }

    .cpa-row {
        gap: 10px;
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .cpa-acts {
        grid-column: 2;
    }

    .cpa-head small,
    .cpf-head small {
        display: none;
    }

    .cp-card,
    .cpx-card,
    .cpf-card {
        bottom: auto;
        left: auto;
        margin: -18px 12px 0 auto;
        max-width: calc(100% - 24px);
        position: relative;
        right: auto;
        width: max-content;
    }
}

/* Hero summary card: wide enough that labels and values stay on one line */
.portal-page .booking-hero-card-bottom {
    width: 284px;
}

.portal-page .bhc-rows small,
.portal-page .bhc-rows b {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .portal-page .booking-hero-card-bottom {
        width: auto;
    }
}

/* Hero photo: keep the face, phone and hands clear (top card above the head, summary card over the lap) */
@media (min-width: 576px) {
    .portal-page .booking-hero-card-top {
        right: -28px;
        top: -22px;
    }

    .portal-page .booking-hero-card-bottom {
        bottom: -34px;
        left: -28px;
    }
}

/* Hero H1: even line lengths */
.portal-page .booking-hero h1 {
    text-wrap: balance;
}
