/* CPD TAG - CPD HOST JOURNEY
   Add AFTER the existing landing-page and rich CPD journey styles.
   All selectors are scoped to the host journey to leave the Individuals journey intact.
*/

.lp-section--host-journey { background: #EAF2F2; }
.lp-section--host-journey .lp-section-heading--center { margin-bottom: 38px; }
.lp-host-journey-note { margin: 16px 0 0; text-align: right; font-size: 11px; color: var(--text-secondary, #617282); }

/* Five aligned stages; connectors are supplied by the shared .lp-journey-rich CSS */
.lp-host-journey { --hj-ink: var(--text-primary, #16222D); --hj-muted: var(--text-secondary, #617282); --hj-blue: var(--brand-primary, #007C9C); --hj-border: #DCE8EB; --journey-gap: 22px; --journey-connector-surround: #EAF2F2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--journey-gap); align-items: stretch; overflow: visible; }
.lp-host-journey .lp-journey-rich__rail { display: none; }
.lp-host-journey > .lp-journey-card { box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; width: 100%; min-height: 350px; margin: 0; padding: 16px 13px 13px; overflow: visible; border: 0; border-radius: 19px; background: #FFFFFF; box-shadow: 0 11px 28px rgba(11, 75, 92, .065); }
.lp-host-journey > .lp-journey-card::after { content: none; display: none; }
.lp-host-journey .lp-journey-card__top { margin-bottom: 12px; }
.lp-host-journey .lp-journey-card__num { width: 32px; height: 32px; font-size: 14px; }
.lp-host-journey .lp-journey-card__icon { width: 38px; height: 38px; border-radius: 11px; }
.lp-host-journey .lp-journey-card__icon svg { width: 20px; height: 20px; }
.lp-host-journey .lp-journey-card__title { margin-bottom: 7px; font-size: 16px; line-height: 1.2; font-weight: 500;
  font-family: "MuseoSans-700"; }
.lp-host-journey .lp-journey-card__text { margin: 0 0 14px; font-size: 12.5px; line-height: 1.48;}
.lp-host-journey .hj-mini { box-sizing: border-box; flex: 0 0 auto; min-width: 0; min-height: 122px; margin-top: auto; padding: 10px; overflow: hidden; border: 1px solid var(--hj-border); border-radius: 14px; background: #F6FAFB; color: var(--hj-ink); font-size: 11px; }
.lp-host-journey .hj-mini b { font-size: 11px; font-family: "MuseoSans-700"; color: var(--hj-ink); font-weight: 500; }
.lp-host-journey .hj-mini small { display: block; margin-top: 2px; color: var(--hj-muted); font-size: 9px; line-height: 1.3; }
.lp-host-journey .hj-check { display: inline-flex; width: 19px; height: 19px; border-radius: 50%; flex: 0 0 19px; align-items: center; justify-content: center; background: #DDF1E9; color: #16835F; font-size: 12px; font-family: "MuseoSans-700"; font-weight: 500; }

/* 1: Create and publish event */
.lp-host-journey .hj-event-row { display: flex; align-items: center; gap: 8px; }
.lp-host-journey .hj-date { display: flex; flex: 0 0 36px; height: 39px; flex-direction: column; align-items: center; justify-content: center; border-radius: 7px; background: #DFF0F5; }
.lp-host-journey .hj-date b { color: var(--hj-blue); font-size: 15px; line-height: 1; }
.lp-host-journey .hj-date small { margin-top: 1px; font-size: 8px; font-family: "MuseoSans-700"; color: var(--hj-blue); font-weight: 500; }
.lp-host-journey .hj-event-label { min-width: 0; }
.lp-host-journey .hj-event-label b { display: block; font-size: 10px; }
.lp-host-journey .hj-event-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.lp-host-journey .hj-event-pills span { padding: 4px 6px; border-radius: 999px; background: #E6EFF2; color: var(--brand-dark, #0B4B5C); font-size: 9px; }
.lp-host-journey .hj-published { display: flex; align-items: center; gap: 6px; font-size: 10px; font-family: "MuseoSans-700"; color: #237C61; font-weight: 500; }
.lp-host-journey .hj-published .hj-check { width: 16px; height: 16px; flex-basis: 16px; font-size: 10px; }

/* 2: Followers and sharing */
.lp-host-journey .hj-followers { display: flex; align-items: center; gap: 7px; }
.lp-host-journey .hj-follower-icons { display: flex; flex: 0 0 38px; width: 38px; padding-left: 1px; }
.lp-host-journey .hj-follower-icons i { width: 18px; height: 18px; margin-right: -8px; border: 2px solid #F6FAFB; border-radius: 50%; background: #7FAFC1; }
.lp-host-journey .hj-follower-icons i:nth-child(2) { background: #007C9C; }
.lp-host-journey .hj-follower-icons i:nth-child(3) { background: #92CCDE; }
.lp-host-journey .hj-notification { display: flex; align-items: center; gap: 6px; margin: 10px 0 8px; padding: 7px 6px; border-radius: 8px; background: #FFFFFF; color: var(--hj-ink); font-size: 9px; }
.lp-host-journey .hj-notification > span:last-child { min-width: 0; }
.lp-host-journey .hj-notification b { color: #16835F; }
.lp-host-journey .hj-notification-bell { color: var(--hj-blue); font-size: 11px; }
.lp-host-journey .hj-share-link { display: flex; align-items: center; gap: 6px; color: var(--hj-blue); font-size: 9px; font-family: "MuseoSans-700"; font-weight: 500; }
.lp-host-journey .hj-share-link svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* 3: Registrations and waiting list */
.lp-host-journey .hj-attendee-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.lp-host-journey .hj-attendee-totals > div { padding: 7px; border-radius: 8px; background: #FFFFFF; }
.lp-host-journey .hj-attendee-totals b { display: block; font-size: 19px; line-height: 1.1; }
.lp-host-journey .hj-attendee-caption { display: flex; justify-content: space-between; gap: 5px; font-size: 9px; color: var(--hj-muted); }
.lp-host-journey .hj-attendee-progress { height: 6px; overflow: hidden; margin: 5px 0 9px; border-radius: 99px; background: #DCE8EC; }
.lp-host-journey .hj-attendee-progress span { display: block; width: 88%; height: 100%; transform-origin: left; border-radius: inherit; background: var(--hj-blue); }
.lp-host-journey .hj-attendee-bottom { display: flex; align-items: center; gap: 6px; color: #237C61; font-size: 9px; }
.lp-host-journey .hj-attendee-bottom .hj-check { width: 15px; height: 15px; flex-basis: 15px; font-size: 9px; }

/* 4: QR confirmation -> available CPD certificates after the event */
.lp-host-journey .hj-mini--qr { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 9px; align-items: center; }
.lp-host-journey .hj-qr-box { width: 66px; height: 66px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 9px; overflow: hidden; background: transparent; }
.lp-host-journey .hj-qr-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lp-host-journey .hj-qr-status { min-width: 0; }
.lp-host-journey .hj-qr-status b { display: flex; align-items: flex-start; gap: 5px; font-size: 10px; line-height: 1.3; }
.lp-host-journey .hj-qr-status .hj-check { width: 16px; height: 16px; flex-basis: 16px; font-size: 10px; }
.lp-host-journey .hj-qr-status small { margin-top: 7px; font-size: 9px; line-height: 1.4; }

/* 5: Reporting and analytics */
.lp-host-journey .hj-results-head { display: flex; align-items: baseline; gap: 6px; }
.lp-host-journey .hj-results-head b { font-size: 21px; line-height: 1; }
.lp-host-journey .hj-results-head span { color: var(--hj-muted); font-size: 9px; }
.lp-host-journey .hj-results-chart { display: block; width: 100%; height: 43px; margin: 5px 0 4px; overflow: visible; }
.lp-host-journey .hj-result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.lp-host-journey .hj-result-metrics b { display: block; color: var(--hj-blue); font-size: 12px; }
.lp-host-journey .hj-result-metrics small { font-size: 8px; }

/* Mini UI animations start only when the journey enters the viewport */
.lp-host-journey.is-active .hj-attendee-progress span { animation: hjProgress .85s cubic-bezier(.2,.8,.2,1) both .45s; }
.lp-host-journey.is-active .hj-chart-line { animation: hjLine 1.25s ease both .5s; }
.lp-host-journey.is-active .hj-published { animation: hjReveal .6s ease both .35s; }
.lp-host-journey.is-active .hj-notification { animation: hjReveal .6s ease both .55s; }
@keyframes hjProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hjLine { from { stroke-dasharray: 100 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100 100; stroke-dashoffset: 0; } }
@keyframes hjReveal { from { opacity: .15; } to { opacity: 1; } }

/* Three cards per row on compact desktops and tablets */
@media (max-width: 1330px) {
    .lp-host-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); --journey-gap: 16px; }
    .lp-host-journey > .lp-journey-card { min-height: 320px; padding: 17px; }
    .lp-host-journey .lp-journey-card__title { font-size: 17px; }
    .lp-host-journey .lp-journey-card__text { font-size: 13px; }
}

/* Two per row when a three-up layout would be crowded */
@media (max-width: 850px) {
    .lp-host-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* In this range the Host journey is still two-column, so suppress the shared
   mobile downward chevrons (which begin at 760px in the shared stylesheet). */
@media (min-width: 641px) and (max-width: 760px) {
    .lp-host-journey > .lp-journey-card:not(:first-of-type)::before { display: none; }
}

/* Mobile portrait: an efficient two-zone layout inside each stacked card */
@media (max-width: 640px) {
    .lp-section--host-journey .lp-section-heading--center { margin-bottom: 26px; }
    .lp-host-journey { grid-template-columns: minmax(0,1fr); --journey-gap: 24px; }
    .lp-host-journey > .lp-journey-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(115px,.85fr); grid-template-rows: auto auto 1fr; grid-template-areas: 'head preview' 'title preview' 'text preview'; align-content: center; align-items: start; column-gap: 12px; min-height: 155px; padding: 13px; border-radius: 16px; }
    .lp-host-journey > .lp-journey-card .lp-journey-card__top { grid-area: head; margin-bottom: 8px; }
    .lp-host-journey > .lp-journey-card .lp-journey-card__title { grid-area: title; margin: 0 0 6px; font-size: 15px; }
    .lp-host-journey > .lp-journey-card .lp-journey-card__text { grid-area: text; margin: 0; font-size: 11px; line-height: 1.5; }
    .lp-host-journey > .lp-journey-card .lp-journey-card__num { width: 28px; height: 28px; font-size: 12px; }
    .lp-host-journey > .lp-journey-card .lp-journey-card__icon { width: 30px; height: 30px; }
    .lp-host-journey > .lp-journey-card .lp-journey-card__icon svg { width: 17px; height: 17px; }
    .lp-host-journey > .lp-journey-card .hj-mini { grid-area: preview; align-self: stretch; width: 100%; min-height: 124px; margin: 0; padding: 8px; border-radius: 11px; }
    .lp-host-journey > .lp-journey-card .hj-mini b { font-size: 10px; }
    .lp-host-journey > .lp-journey-card .hj-mini small { font-size: 8px; }
    .lp-host-journey .hj-date { flex-basis: 28px; height: 33px; }
    .lp-host-journey .hj-event-row { gap: 5px; }
    .lp-host-journey .hj-event-pills span { font-size: 8px; padding: 3px 5px; }
    .lp-host-journey .hj-mini--qr { grid-template-columns: 48px minmax(0,1fr); gap: 6px; }
    .lp-host-journey .hj-qr-box { width: 48px; height: 48px; padding: 0; }
    .lp-host-journey .hj-qr-status b { font-size: 9px; }
    .lp-host-journey .hj-qr-status small { font-size: 8px; }
    .lp-host-journey .hj-notification { font-size: 8px; padding: 5px 4px; }
    .lp-host-journey .hj-results-head b { font-size: 17px; }
    .lp-host-journey-note { font-size: 10px; text-align: center; }
}

@media (max-width: 355px) {
    .lp-host-journey > .lp-journey-card { grid-template-columns: minmax(0,1fr) minmax(105px,.8fr); gap: 9px; padding: 11px; }
    .lp-host-journey .hj-mini--qr { grid-template-columns: 1fr; }
    .lp-host-journey .hj-qr-box { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-host-journey.is-active .hj-attendee-progress span,
    .lp-host-journey.is-active .hj-chart-line,
    .lp-host-journey.is-active .hj-published,
    .lp-host-journey.is-active .hj-notification { animation: none !important; transform: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}
/* Account-to-Host introduction (separate from the small disclaimer note). */
.lp-host-journey-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 870px;
    margin: 0 auto 28px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid #D7E4E8;
    border-radius: 16px;
}
.lp-host-journey-intro__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    background: rgba(0, 124, 156, 0.10);
    color: var(--brand-primary);
}
.lp-host-journey-intro__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lp-host-journey-intro__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.lp-host-journey-intro__copy strong {
    color: var(--text-primary);
    font-size: 14px;
    font-family: "MuseoSans-700"; font-weight: 500;
}
.lp-host-journey-intro__copy span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .lp-host-journey-intro {
        align-items: flex-start;
        gap: 11px;
        padding: 13px;
        margin-bottom: 20px;
    }
    .lp-host-journey-intro__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .lp-host-journey-intro__copy strong { font-size: 13px; }
    .lp-host-journey-intro__copy span { font-size: 12px; }
}
