/* assets/css/style.css - Frontend Landing Page Styles */
:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --bg: #ffffff;
    --card: #f6f6f7;
    --tx: #16171a;
    --mu: #5d6068;
    --red: #e4002b;
    --red-hover: #c70025;
    --bd: #e2e3e6;
    --gold: #fff4d6;
    --gold-bd: #e5b93c;
    --green: #25d366;
}

/* Pure clean light mode */
:root {
    --bg: #ffffff;
    --card: #f8fafc;
    --tx: #0f172a;
    --mu: #64748b;
    --red: #e4002b;
    --red-hover: #c70025;
    --bd: #e2e8f0;
    --gold: #fffbeb;
    --gold-bd: #fde68a;
    --green: #22c55e;
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--tx);
    font-family: "Tiro Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, serif;
    line-height: 1.6;
}

.w {
    max-width: 580px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Header & Logo */
.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    text-align: center;
}
#lg {
    color: #fff;
    background: #16171a;
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-block;
    margin: 0 auto 10px;
}
.logo-wrap { text-align: center; width: 100%; padding: 10px 0 4px; }
.logo-wrap img { display: block; margin: 0 auto; max-height: 52px; max-width: 220px; object-fit: contain; }
.logo b { color: var(--red); }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { animation: rise .65s ease var(--d, 0ms) both; }
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; animation: none; }
}

h1 {
    font-size: 26px;
    line-height: 1.35;
    margin: 14px 0 10px;
    text-align: center;
    font-weight: 700;
}
h1 span { color: var(--red); }
h2 { font-size: 20px; margin: 0 0 10px; font-weight: 700; }
p { color: var(--mu); margin: 0 0 12px; font-size: 15px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s, transform .1s;
}
.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.btn:hover { opacity: 0.95; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn.wa { background: #22c55e; color: #fff; }
.btn.cl { background: #0f172a; color: #fff; border: 1px solid var(--bd); }

.cw { display: flex; gap: 10px; margin-top: 12px; }
.cw .btn { flex: 1; padding: 13px 6px; font-size: 15px; }

/* Cards & Badges */
.card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 18px;
    margin: 14px 0;
}
.card.gold { background: var(--gold); border-color: var(--gold-bd); }
.badges { display: flex; gap: 10px; margin-top: 14px; }
.badges .card { flex: 1; margin: 0; text-align: center; }
.big { font-size: 24px; font-weight: 800; color: var(--red); }
.sm { font-size: 13px; color: var(--mu); }

/* Form Elements */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 6px;
}
input, select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--bg);
    color: var(--tx);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
input:focus, select:focus {
    border-color: var(--red);
}
input[type=range] {
    padding: 0;
    accent-color: var(--red);
    height: 8px;
    background: var(--bd);
    border-radius: 4px;
    cursor: pointer;
}

/* Steps list */
.steps { counter-reset: s; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; padding: 8px 0 8px 44px; position: relative; font-size: 15px; }
.steps li:before {
    content: counter(s, bengali);
    position: absolute;
    left: 0;
    top: 7px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-align: center;
    line-height: 32px;
}
.si { border-radius: 12px; overflow: hidden; margin: 0 0 12px; background: var(--bg); border: 1px dashed #e5b93c; }
.si img { width: 100%; display: block; }
.si .ph { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--mu); font-size: 14px; }
.fv { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.fv .vi { flex: 0 0 82%; scroll-snap-align: start; }
.fv .vb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--bd); }
.fv .vb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fv .vb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.fv .vi span { display: block; font-size: 13px; font-weight: 700; margin-top: 6px; }
.tick { padding: 0; list-style: none; margin: 0; }
.tick li { margin: 8px 0; color: var(--mu); font-size: 15px; }

/* Calendar Date Selector */
.cal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.d {
    border: 1px solid var(--bd);
    background: var(--bg);
    color: var(--tx);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all .2s;
}
.d b { display: block; font-size: 18px; margin: 2px 0; }
.d:hover { border-color: var(--red); }
.d.on {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Bike Grid */
.bg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}
.bc {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bi {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: var(--card);
}
.bc div.bt { padding: 10px; flex: 1; }
.bc b { display: block; font-size: 15px; }
.bc small { color: var(--mu); font-size: 12px; }
.bc a {
    margin: 0 10px 10px;
    padding: 9px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Video Player */
.vid {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    margin: 12px 0 16px;
    border: 1px solid var(--bd);
}
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* EMI Calculator */
.emi-box {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}
.emi-result {
    text-align: center;
    background: var(--gold);
    border: 1px solid var(--gold-bd);
    border-radius: 10px;
    padding: 14px;
    margin-top: 14px;
}
.emi-amount { font-size: 28px; font-weight: 800; color: var(--red); }

/* Sticky Floating Contact Bar */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--bd);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}
.sticky-bar .w { padding: 0; max-width: 580px; margin: 0 auto; }

/* Footer */
.ft {
    background: var(--card);
    border-top: 1px solid var(--bd);
    margin-top: 20px;
    padding-bottom: 70px; /* Space for sticky bar */
}
.ft p { margin: 0 0 10px; }
.ft a { color: var(--red); text-decoration: none; font-weight: 600; }
.mp {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bd);
    margin: 10px 0;
    background: var(--bg);
}
.mp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Unlimited Calendar Date Picker */
.date-picker-box {
    margin: 8px 0 10px;
}
.date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.date-input-wrap svg {
    position: absolute;
    left: 14px;
    pointer-events: none;
    color: var(--red);
}
.date-input-wrap input[type=date] {
    padding-left: 44px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--bd);
    background: #ffffff;
    transition: all .2s;
}
.date-input-wrap input[type=date]:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.1);
}
.selected-date-display {
    font-size: 14px;
    color: var(--red);
    font-weight: 700;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}
.q-btn {
    padding: 7px 14px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--bd);
    color: var(--tx);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.q-btn:hover {
    border-color: var(--red);
    color: var(--red);
}
.q-btn.on {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Dialog Modal */
dialog {
    border: 1px solid var(--bd);
    border-radius: 16px;
    background: var(--bg);
    color: var(--tx);
    max-width: min(520px, 92vw);
    max-height: 80vh;
    overflow: auto;
    padding: 20px;
    font-family: inherit;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
