
/* =========================================================
   EV BOOKING FLOW
   Continues the user journey from ev-charger-map-section.html
   Select Charging Point -> How to Charge -> Book Now
   -> Date & Time -> Duration -> Confirm & Pay
   ========================================================= */

:root {
    --navy: #17234b;
    --navy-deep: #18213d;
    --ink: #1d2946;
    --muted: #7a8495;
    --muted-2: #8a94a6;
    --line: #e9edf3;
    --panel: #f6f8fb;
    --accent: #7FD211;
    --fast: #12B76A;
    --slow: #F59E0B;
    --ultra: #FF4B18;
    --page-bg: #e5eadf;
}

.bk-page-wrapper {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
}

.bk-shell {
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

/* ---------- BREADCRUMB ---------- */

.bk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    padding: 0 19px;
    height: 38px;
    border-radius: 20px;
    background: #fff;
    color: #7a8495;
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(22,37,65,.10);
    margin-bottom: 22px;
}

.bk-breadcrumb strong { color: var(--ink); }
.bk-breadcrumb span { color: #c3c9d4; }

/* ---------- STEPPER ---------- */

.bk-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 6px;
}

.bk-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.bk-step::before {
    content: "";
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.bk-step:first-child::before { display: none; }

.bk-step.done::before,
.bk-step.active::before {
    background: var(--accent);
}

.bk-step-dot {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.bk-step.active .bk-step-dot {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.bk-step.done .bk-step-dot {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.bk-step-label {
    margin-top: 9px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .1px;
}

.bk-step.active .bk-step-label,
.bk-step.done .bk-step-label { color: var(--ink); }

/* ---------- LAYOUT ---------- */

.bk-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

.bk-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22,37,65,.10);
    padding: 22px;
}

/* ---------- CHARGER SUMMARY (LEFT) ---------- */

.bk-grid .bk-summary { position: sticky; top: 24px; }

.bk-summary-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bk-summary-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
}

.bk-summary-address {
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted-2);
    line-height: 1.4;
}

.bk-rating {
    flex: 0 0 auto;
    height: 26px;
    padding: 5px 8px;
    border-radius: 15px;
    background: #fff7df;
    color: #df9800;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.bk-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #20aa67;
    font-size: 11px;
    font-weight: 700;
}

.bk-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22b96d;
}

.bk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.bk-tag {
    padding: 4px 8px;
    border-radius: 12px;
    background: #eef2ff;
    color: #5363a3;
    font-size: 9.5px;
    font-weight: 800;
}

.bk-tag.fast { background: #e7fff2; color: #12945a; }
.bk-tag.slow { background: #fff4df; color: #d57b00; }
.bk-tag.ultra { background: #fff0ea; color: #e54a1b; }

.bk-spec-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bk-spec {
    padding: 10px;
    border-radius: 9px;
    background: var(--panel);
    font-size: 10.5px;
    color: var(--muted);
}

.bk-spec strong {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ink);
}

.bk-change-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.bk-change-link:hover { border-color: var(--navy); }

/* ---------- STEP PANELS (RIGHT) ---------- */

.bk-panel { display: none; }
.bk-panel.active { display: block; }

.bk-panel-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
}

.bk-panel-sub {
    margin-top: 5px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* how-to-charge steps: illustrated 3-up layout */

.bk-howto-heading {
    text-align: center;
    padding: 4px 0 2px;
}

.bk-howto-heading h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.3px;
}

.bk-howto-heading p {
    margin: 8px auto 0;
    max-width: 380px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.bk-howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.bk-howto-col {
    text-align: center;
    padding: 0 6px;
}

.bk-howto-grid .bk-howto-visual {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto;
}

.bk-howto-grid .bk-howto-bignum {
    position: absolute;
    top: -18px;
    left: -6px;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
    opacity: .07;
    z-index: 0;
    user-select: none;
}

.bk-howto-grid .bk-howto-blob {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
    box-shadow: 0 14px 26px -10px rgba(22,37,65,.35);
}

.bk-howto-grid .bk-howto-blob svg { width: 52px; height: 52px; }

.bk-howto-blob.c1 { background: linear-gradient(150deg, #16c477, var(--fast)); }
.bk-howto-blob.c2 { background: linear-gradient(150deg, #ffb63d, var(--slow)); }
.bk-howto-blob.c3 { background: linear-gradient(150deg, #ff7248, var(--ultra)); }

.bk-howto-title {
    margin: 20px 0 6px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
}

.bk-howto-caption {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 170px;
    margin-inline: auto;
}

.bk-howto-connector {
    display: none;
}

.bk-note {
    margin: 26px auto 0;
    max-width: 460px;
    padding: 13px 15px;
    border-radius: 10px;
    background: #fff4df;
    color: #8a5a00;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* date picker */

.bk-date-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 20px;
    padding-bottom: 4px;
}

.bk-date-pill {
    flex: 0 0 auto;
    min-width: 68px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.bk-date-pill .d1 { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.bk-date-pill .d2 { margin-top: 3px; font-size: 15px; font-weight: 800; color: var(--ink); }

.bk-date-pill.selected {
    border-color: var(--navy);
    background: var(--navy);
}
.bk-date-pill.selected .d1,
.bk-date-pill.selected .d2 { color: #fff; }

/* time slots */

.bk-section-label {
    margin-top: 26px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
}

.bk-slot-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.bk-slot {
    padding: 11px 6px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.bk-slot:hover { border-color: var(--navy); }

.bk-slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.bk-slot.booked {
    background: var(--panel);
    color: #b9c0cc;
    border-color: var(--line);
    cursor: not-allowed;
    text-decoration: line-through;
}

/* duration */

.bk-duration-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.bk-duration-pill {
    padding: 12px 18px;
    border-radius: 24px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
}

.bk-duration-pill.selected {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.bk-estimate {
    margin-top: 22px;
    padding: 18px;
    border-radius: 13px;
    background: var(--panel);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bk-estimate-item span {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 700;
}

.bk-estimate-item strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    color: var(--ink);
}

/* confirm */

.bk-summary-table {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.bk-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.bk-summary-row span:first-child { color: var(--muted); }
.bk-summary-row span:last-child { color: var(--ink); font-weight: 700; }

.bk-summary-row.total span {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

.bk-pay-row {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.bk-pay-opt {
    flex: 1;
    padding: 13px 10px;
    border-radius: 11px;
    border: 1.5px solid var(--line);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
}

.bk-pay-opt.selected {
    border-color: var(--accent);
    background: #fff0ea;
    color: #e54a1b;
}

/* footer nav */

.bk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.bk-btn {
    border: 0;
    padding: 14px 22px;
    border-radius: 26px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.bk-btn.primary {
    background: var(--navy);
    color: #fff;
}

.bk-btn.primary:hover { background: var(--accent); }

.bk-btn.primary:disabled {
    background: #c9cfda;
    cursor: not-allowed;
}

.bk-btn.ghost {
    background: transparent;
    color: var(--muted);
}

.bk-btn.ghost:hover { color: var(--ink); }

/* success screen */

.bk-success {
    display: none;
    text-align: center;
    padding: 50px 20px 10px;
}

.bk-success.active { display: block; }

.bk-success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e7fff2;
    color: #12945a;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-success h2 {
    margin: 20px 0 6px;
    font-size: 21px;
    color: var(--ink);
}

.bk-success p {
    margin: 0 0 26px;
    font-size: 13px;
    color: var(--muted);
}

.bk-success .bk-summary-table { text-align: left; }

.bk-success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

/* =========================================================
   RESPONSIVE EV BOOKING FLOW
   ========================================================= */

/* ---------- TABLET ---------- */

@media (max-width: 900px) {

    .bk-shell {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .bk-grid {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 16px;
    }

    .bk-card {
        min-width: 0;
    }

    .bk-summary {
        min-width: 0;
    }

    .bk-summary-name {
        overflow-wrap: anywhere;
    }

    .bk-slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    /* ---------- PAGE / MAIN CONTAINER ---------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .bk-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 16px 12px 50px;
        overflow: hidden;
    }


    /* ---------- BREADCRUMB ---------- */

    .bk-breadcrumb {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 36px;
        padding: 8px 12px;
        gap: 6px;

        font-size: 10px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        margin-bottom: 16px;
    }

    .bk-breadcrumb strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* ---------- STEPPER ---------- */

    .bk-stepper {
        width: 100%;
        padding: 0;
        margin-bottom: 18px;
    }

    .bk-step {
        min-width: 0;
    }

    .bk-step::before {
        top: 16px;
        height: 2px;
    }

    .bk-step-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Keep mobile labels hidden */
    .bk-step-label {
        display: none;
    }


    /* ---------- MAIN GRID ---------- */

    .bk-grid {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }


    /* ---------- CARDS ---------- */

    .bk-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 18px 15px;
        border-radius: 14px;

        overflow: hidden;
    }


    /* ---------- CHARGER SUMMARY ---------- */

    .bk-summary {
        position: static;
        width: 100%;
    }

    .bk-summary-top {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .bk-summary-top > div:first-child {
        min-width: 0;
        flex: 1;
    }

    .bk-summary-name {
        font-size: 15px;
        line-height: 1.3;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .bk-summary-address {
        font-size: 11px;
        line-height: 1.4;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .bk-rating {
        flex-shrink: 0;
        font-size: 10px;
        padding: 5px 7px;
    }

    .bk-tags {
        flex-wrap: wrap;
    }

    .bk-tag {
        font-size: 9px;
    }

    .bk-spec-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bk-spec {
        min-width: 0;
        padding: 9px;
    }


    /* =====================================================
       RIGHT CONTENT / ALL STEPS
       ===================================================== */

    .bk-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bk-panel-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .bk-panel-sub {
        font-size: 12px;
        line-height: 1.5;
    }


    /* =====================================================
       STEP 1 - HOW TO CHARGE
       ===================================================== */

    .bk-howto-heading {
        padding: 0;
    }

    .bk-howto-heading h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .bk-howto-heading p {
        max-width: 100%;
        font-size: 12px;
        padding: 0 4px;
    }

    .bk-howto-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 24px;
    }

    .bk-howto-col {
        width: 100%;
        padding: 0;
    }

    .bk-howto-caption {
        max-width: 240px;
    }

    .bk-note {
        width: 100%;
        max-width: 100%;
        margin-top: 22px;
        padding: 11px 12px;
        font-size: 11px;
    }


    /* =====================================================
       STEP 2 - DATE & TIME
       ===================================================== */

    .bk-date-row {
        width: 100%;
        max-width: 100%;

        display: flex;
        gap: 7px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 2px 2px 8px;
        margin-top: 16px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bk-date-row::-webkit-scrollbar {
        display: none;
    }

    .bk-date-pill {
        min-width: 62px;
        padding: 9px 5px;
        flex: 0 0 62px;
    }

    .bk-date-pill .d1 {
        font-size: 9px;
    }

    .bk-date-pill .d2 {
        font-size: 14px;
    }


    /* ---------- TIME SLOTS ---------- */

    .bk-section-label {
        margin-top: 22px;
        font-size: 12px;
    }

    .bk-slot-grid {
        width: 100%;
        max-width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bk-slot {
        width: 100%;
        min-width: 0;

        padding: 11px 5px;
        font-size: 11px;

        white-space: nowrap;
    }


    /* =====================================================
       STEP 3 - DURATION
       ===================================================== */

    .bk-duration-row {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;

        margin-top: 16px;
    }

    .bk-duration-pill {
        width: 100%;
        min-width: 0;

        padding: 11px 8px;
        font-size: 12px;

        text-align: center;
    }

    /* Last duration option can span full width */
    .bk-duration-pill:last-child {
        grid-column: span 2;
    }


    /* ---------- ESTIMATE ---------- */

    .bk-estimate {
        width: 100%;
        max-width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;

        margin-top: 18px;
        padding: 13px;
    }

    .bk-estimate-item {
        min-width: 0;
    }

    .bk-estimate-item span {
        font-size: 9.5px;
    }

    .bk-estimate-item strong {
        font-size: 15px;
        overflow-wrap: anywhere;
    }


    /* =====================================================
       STEP 4 - CONFIRM & PAY
       ===================================================== */

    .bk-summary-table {
        width: 100%;
        max-width: 100%;
        margin-top: 18px;
    }

    .bk-summary-row {
        width: 100%;
        min-width: 0;

        display: flex;
        align-items: flex-start;
        gap: 12px;

        padding: 11px 2px;
        font-size: 12px;
    }

    .bk-summary-row span:first-child {
        flex: 0 0 40%;
        min-width: 0;
    }

    .bk-summary-row span:last-child {
        flex: 1;
        min-width: 0;

        text-align: right;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .bk-summary-row.total span {
        font-size: 14px;
    }


    /* ---------- PAYMENT OPTIONS ---------- */

    .bk-pay-row {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;

        margin-top: 15px;
    }

    .bk-pay-opt {
        width: 100%;
        min-width: 0;

        padding: 12px 5px;
        font-size: 11px;
    }


    /* =====================================================
       BOTTOM ACTION BUTTONS
       ===================================================== */

    .bk-actions {
        width: 100%;
        max-width: 100%;

        display: flex;
        align-items: stretch;
        justify-content: space-between;

        gap: 10px;

        margin-top: 22px;
        padding-top: 16px;
    }

    .bk-actions .bk-btn {
        min-width: 0;
        max-width: 100%;
    }

    /* Back button */
    .bk-actions .bk-btn.ghost {
        flex: 0 0 auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Main action */
    .bk-actions .bk-btn.primary {
        flex: 1 1 auto;

        min-width: 0;

        padding-left: 12px;
        padding-right: 12px;

        font-size: 11.5px;

        white-space: normal;
        line-height: 1.25;
    }


    /* =====================================================
       SUCCESS SCREEN
       ===================================================== */

    .bk-success {
        width: 100%;
        max-width: 100%;

        padding: 35px 15px 10px;
    }

    .bk-success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .bk-success h2 {
        font-size: 19px;
        line-height: 1.3;
    }

    .bk-success p {
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .bk-success-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;

        margin-top: 22px;
    }

    .bk-success-actions .bk-btn {
        width: 100%;
        text-align: center;
    }

}


/* =========================================================
   VERY SMALL PHONES
   360px / 375px / etc.
   ========================================================= */

@media (max-width: 400px) {

    .bk-shell {
        padding-left: 9px;
        padding-right: 9px;
    }

    .bk-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .bk-stepper {
        padding: 0 2px;
    }

    .bk-step-dot {
        width: 29px;
        height: 29px;
        font-size: 11px;
    }

    .bk-step::before {
        top: 14px;
    }

    .bk-summary-name {
        font-size: 14px;
    }

    .bk-rating {
        font-size: 9px;
        padding: 4px 6px;
    }

    .bk-slot-grid {
        gap: 6px;
    }

    .bk-slot {
        padding: 10px 3px;
        font-size: 10px;
    }

    .bk-duration-pill {
        font-size: 11px;
        padding: 10px 5px;
    }

    .bk-summary-row {
        font-size: 11px;
        gap: 8px;
    }

    .bk-actions {
        gap: 6px;
    }

    .bk-actions .bk-btn {
        font-size: 10.5px;
    }

}


/* =========================================================
   EXTRA SAFETY - PREVENT CONTENT OVERFLOW
   ========================================================= */

.bk-shell img,
.bk-shell svg,
.bk-shell button,
.bk-shell a,
.bk-shell div {
    max-width: 100%;
}

.bk-shell button {
    font-family: inherit;
}

.bk-shell svg {
    flex-shrink: 0;
}

