
/* =========================================================
   HOMEPAGE + BOOKING SIDEBAR (SLIDE-IN DRAWER)
   Clicking "Book" on any station slides in a right-hand
   panel carrying the full How to Charge -> Date & Time
   -> Duration -> Confirm & Pay flow.
   ========================================================= */

:root {
    --navy: #17234b;
    --ink: #1d2946;
    --muted: #7a8495;
    --muted-2: #8a94a6;
    --line: #e9edf3;
    --panel: #f6f8fb;
    --accent: #ff4b18;
    --fast: #12B76A;
    --slow: #F59E0B;
    --ultra: #FF4B18;
    --page-bg: #f4f6f2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
}

/* =========================================================
   HOMEPAGE (just enough to demo the trigger)
   ========================================================= */

.hp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(22,37,65,.06);
}

.hp-logo { font-size: 18px; font-weight: 800; color: var(--navy); }
.hp-logo span { color: var(--accent); }

.hp-nav-links {
    display: flex;
    gap: 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.hp-hero {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 24px 40px;
}

.hp-hero h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.4px;
    margin: 0;
}

.hp-hero p {
    margin: 12px 0 0;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
}

.hp-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 24px 90px;
}

.hp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hp-section-head h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0; }
.hp-section-head span { font-size: 12.5px; color: var(--muted); }

.hp-station-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hp-station-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(22,37,65,.08);
    transition: .2s ease;
}

.hp-station-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(22,37,65,.14); }

.hp-card-top { display: flex; justify-content: space-between; gap: 10px; }

.hp-station-name { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.hp-station-address { margin-top: 4px; font-size: 11px; color: var(--muted-2); }

.hp-rating {
    flex: 0 0 auto;
    height: 25px;
    padding: 5px 8px;
    border-radius: 15px;
    background: #fff7df;
    color: #df9800;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.hp-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #20aa67;
    font-size: 10.5px;
    font-weight: 700;
}

.hp-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22b96d; }

.hp-tags { display: flex; gap: 5px; margin-top: 9px; }

.hp-tag {
    padding: 4px 8px;
    border-radius: 12px;
    background: #eef2ff;
    color: #5363a3;
    font-size: 9px;
    font-weight: 800;
}

.hp-tag.fast { background: #e7fff2; color: #12945a; }
.hp-tag.slow { background: #fff4df; color: #d57b00; }
.hp-tag.ultra { background: #fff0ea; color: #e54a1b; }

.hp-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.hp-spec { font-size: 10.5px; color: var(--muted); }
.hp-spec strong { color: var(--ink); }

.hp-book-btn {
    border: 0;
    padding: 10px 16px;
    border-radius: 18px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.hp-book-btn:hover { background: var(--accent); }

@media (max-width: 860px) {
    .hp-station-grid { grid-template-columns: 1fr; }
    .hp-nav-links { display: none; }
}

/* =========================================================
   BOOKING SIDEBAR (SLIDE-IN DRAWER)
   ========================================================= */

.bk-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15,20,38,.5);
}

.bk-scrim.open { display: block; }

.bk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 92vw;
    background: var(--page-bg);
    box-shadow: -18px 0 50px rgba(10,15,30,.28);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.bk-scrim.open .bk-drawer { transform: translateX(0); }

/* drawer header */

.bk-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(22,37,65,.06);
    z-index: 2;
}

.bk-drawer-head-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}

.bk-drawer-head-title strong { color: var(--ink); }

.bk-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--panel);
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    flex: 0 0 auto;
}

.bk-drawer-close:hover { background: var(--accent); color: #fff; }

/* drawer scroll body */

.bk-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px 34px;
}

/* ---------- STEPPER ---------- */

.bk-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bk-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.bk-step::before {
    content: "";
    position: absolute;
    top: 15px;
    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: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    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: 7px;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--muted);
}

.bk-step.active .bk-step-label,
.bk-step.done .bk-step-label { color: var(--ink); }

/* ---------- CARDS ---------- */

.bk-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(22,37,65,.08);
    padding: 18px;
}

/* ---------- CHARGER SUMMARY (TOP, full width in the drawer) ---------- */

.bk-summary { margin-bottom: 20px; }

.bk-summary-top { display: flex; justify-content: space-between; gap: 10px; }

.bk-summary-name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.bk-summary-address { margin-top: 5px; font-size: 11.5px; color: var(--muted-2); line-height: 1.4; }

.bk-rating {
    flex: 0 0 auto;
    height: 25px;
    padding: 5px 8px;
    border-radius: 15px;
    background: #fff7df;
    color: #df9800;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.bk-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #20aa67;
    font-size: 10.5px;
    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: 9px; }

.bk-tag {
    padding: 4px 8px;
    border-radius: 12px;
    background: #eef2ff;
    color: #5363a3;
    font-size: 9px;
    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: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bk-spec {
    padding: 9px;
    border-radius: 9px;
    background: var(--panel);
    font-size: 10px;
    color: var(--muted);
}

.bk-spec strong { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink); }

.bk-change-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    background: none;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid var(--line);
    width: 100%;
    cursor: pointer;
}

.bk-change-link:hover { border-color: var(--navy); }

/* ---------- STEP PANELS ---------- */

.bk-panel { display: none; }
.bk-panel.active { display: block; }

.bk-panel-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.bk-panel-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* how-to-charge: vertical list, built for a narrow column */

.bk-howto-heading { text-align: center; padding: 2px 0; }

.bk-howto-heading h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.2px;
}

.bk-howto-heading p {
    margin: 8px auto 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.bk-howto-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
}

.bk-howto-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
}

.bk-howto-row:last-child { border-bottom: 0; }

.bk-howto-visual {
    position: relative;
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
}

.bk-howto-bignum {
    position: absolute;
    top: -10px;
    left: -8px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
    opacity: .08;
    z-index: 0;
}

.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 10px 18px -8px rgba(22,37,65,.35);
}

.bk-howto-blob svg { width: 30px; height: 30px; }

.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-text { text-align: left; }

.bk-howto-title { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.bk-howto-caption { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.bk-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff4df;
    color: #8a5a00;
    font-size: 11.5px;
    line-height: 1.5;
}

/* date picker */

.bk-date-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px;
}

.bk-date-pill {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 9px 5px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.bk-date-pill .d1 { font-size: 9.5px; color: var(--muted); font-weight: 700; }
.bk-date-pill .d2 { margin-top: 3px; font-size: 13.5px; 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; }

.bk-section-label { margin-top: 22px; font-size: 12px; font-weight: 800; color: var(--ink); }

.bk-slot-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bk-slot {
    padding: 10px 4px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    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: 8px; margin-top: 18px; }

.bk-duration-pill {
    padding: 11px 16px;
    border-radius: 24px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 12.5px;
    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: 20px;
    padding: 16px;
    border-radius: 13px;
    background: var(--panel);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bk-estimate-item span { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.bk-estimate-item strong { display: block; margin-top: 4px; font-size: 16px; color: var(--ink); }

/* confirm */

.bk-summary-table { margin-top: 18px; border-top: 1px solid var(--line); }

.bk-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
}

.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: 14px; font-weight: 800; color: var(--ink); }

.bk-pay-row { display: flex; gap: 8px; margin-top: 16px; }

.bk-pay-opt {
    flex: 1;
    padding: 12px 8px;
    border-radius: 11px;
    border: 1.5px solid var(--line);
    text-align: center;
    font-size: 11.5px;
    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: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.bk-btn {
    border: 0;
    padding: 13px 20px;
    border-radius: 26px;
    font-size: 12.5px;
    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: 30px 6px 6px; }
.bk-success.active { display: block; }

.bk-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e7fff2;
    color: #12945a;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-success h2 { margin: 18px 0 6px; font-size: 19px; color: var(--ink); }
.bk-success p { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.bk-success .bk-summary-table { text-align: left; }

.bk-success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 520px) {
    .bk-drawer { width: 100vw; max-width: 100vw; }
}
