/* =============================================================
   Mediabroz Booking Funnel — Premium Redesign
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: #07070a;
    color: #e2e4ef;
    min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────────── */
.bk-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.bk-sidebar {
    width: 340px;
    min-width: 340px;
    background: linear-gradient(160deg, #0d0d18 0%, #111128 60%, #0b0c16 100%);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.bk-sidebar::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(103,84,233,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.bk-logo img { height: 28px; }

.bk-sidebar-text h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 14px;
}
.bk-sidebar-text h2 span { color: #8b7cf0; }
.bk-sidebar-text p { font-size: 14px; line-height: 1.7; color: #7b83a0; }

.bk-trust { display: flex; flex-direction: column; gap: 12px; }
.trust-item { font-size: 13px; color: #8a90aa; display: flex; align-items: center; gap: 10px; }
.trust-item i { color: #6754E9; font-size: 14px; width: 16px; }

.bk-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.25);
    color: #25D366;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.3s;
}
.bk-contact a:hover { background: rgba(37,211,102,0.2); }

/* ── Main Panel ──────────────────────────────────────────────── */
.bk-main {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ── Mobile Header (visible only on mobile, replaces sidebar) ── */
.bk-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0b0c14;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.bk-mobile-header img { height: 24px; }

.bk-mobile-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.25);
    color: #25D366;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
}

/* ── Progress ────────────────────────────────────────────────── */
.bk-progress {
    padding: 16px 48px 14px;
    background: #0b0c14;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bk-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6754E9, #e43480);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.bk-steps-row {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
}

.bk-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #3d4159;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    transition: color 0.3s;
    padding-bottom: 4px;
    white-space: nowrap;
}

.bk-step-label.active { color: #8b7cf0; }
.bk-step-label.done   { color: #1ed760; }

/* ── Steps ───────────────────────────────────────────────────── */
.bk-step {
    display: none;
    flex-direction: column;
    padding: 48px 48px 40px;
    animation: fadeSlide 0.35s ease;
    flex: 1;
}
.bk-step.active { display: flex; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bk-step-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
}

.step-num {
    font-size: 40px;
    font-weight: 800;
    color: rgba(103,84,233,0.25);
    line-height: 1;
    min-width: 54px;
}

.bk-step-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.bk-step-header p { font-size: 14px; color: #7b83a0; }

.opt-tag {
    background: rgba(103,84,233,0.15);
    color: #a394ff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ── Category Grid ───────────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.cat-card {
    background: #0f1018;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 16px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.cat-card:hover {
    border-color: rgba(103,84,233,0.5);
    background: rgba(103,84,233,0.06);
    transform: translateY(-2px);
}

.cat-card.selected {
    border-color: #6754E9;
    background: rgba(103,84,233,0.1);
    box-shadow: 0 0 20px rgba(103,84,233,0.12);
}

.cat-card i {
    font-size: 22px;
    color: #6754E9;
    min-width: 28px;
    text-align: center;
}

.cat-card span {
    font-size: 13px;
    font-weight: 500;
    color: #c5cade;
    line-height: 1.4;
}

/* ── Package Grid ────────────────────────────────────────────── */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.pkg-card {
    background: #0f1018;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pkg-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(103,84,233,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pkg-card:hover::after, .pkg-card.selected::after { opacity: 1; }

.pkg-card:hover {
    border-color: rgba(103,84,233,0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.pkg-card.selected {
    border-color: #6754E9;
    box-shadow: 0 0 0 3px rgba(103,84,233,0.2), 0 12px 40px rgba(0,0,0,0.3);
}

.pkg-card.pkg-featured {
    border-color: rgba(103,84,233,0.4);
    background: linear-gradient(160deg, #10112a 0%, #0f1018 100%);
}

.pkg-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
    background: rgba(103,84,233,0.15);
    color: #a394ff;
    align-self: flex-start;
}

.pkg-badge.badge-pop {
    background: linear-gradient(135deg, #6754E9, #e43480);
    color: #fff;
}

.pkg-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pkg-tagline {
    font-size: 12px;
    color: #5b6282;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pkg-price {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(90deg, #8b7cf0, #e43480);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: -0.5px;
}

.pkg-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex: 1;
}

.pkg-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #c5cade;
    line-height: 1.4;
}

.pkg-features li i {
    color: #6754E9;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pkg-select-btn {
    width: 100%;
    padding: 12px;
    background: rgba(103,84,233,0.12);
    border: 1.5px solid rgba(103,84,233,0.3);
    color: #8b7cf0;
    font-family: 'Outfit';
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.pkg-card.selected .pkg-select-btn {
    background: #6754E9;
    border-color: #6754E9;
    color: #fff;
}

.pkg-select-btn:hover { background: rgba(103,84,233,0.25); }

/* ── Addon List ──────────────────────────────────────────────── */
.addon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 16px;
    margin-bottom: 32px;
    align-items: stretch;
}

@media (max-width: 600px) {
    .addon-list {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

.addon-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    background: #0f1018;
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    min-height: 90px;
}


.addon-item:hover {
    border-color: rgba(103,84,233,0.4);
    background: rgba(103,84,233,0.04);
}

.addon-item.selected {
    border-color: #6754E9;
    background: rgba(103,84,233,0.08);
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: #07070a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.addon-item.selected .addon-checkbox {
    background: #6754E9;
    border-color: #6754E9;
}

.addon-checkbox i { font-size: 11px; color: #fff; display: none; }
.addon-item.selected .addon-checkbox i { display: block; }

.addon-info { flex: 1; }
.addon-name { font-size: 14px; font-weight: 600; color: #e2e4ef; }
.addon-desc { font-size: 12px; color: #5b6282; margin-top: 2px; }

.addon-price {
    font-size: 12px;
    color: #6754E9;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Summary Split Card ────────────────────────────────────────────── */
.summary-split {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.summary-left, .summary-right {
    background: #0f1018;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 24px;
    flex: 1;
}

@media (max-width: 768px) {
    .summary-split {
        flex-direction: column;
    }
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-row:last-child { border: none; }

.summary-row span {
    font-size: 13px;
    color: #7b83a0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row span i { color: #6754E9; }
.summary-row strong { font-size: 14px; color: #fff; font-weight: 600; }

.summary-addons {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: #7b83a0;
}

.addon-tag {
    background: rgba(103,84,233,0.12);
    color: #a394ff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.rv-addon-line {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #c5cade;
    padding: 4px 0;
    gap: 4px;
}


.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 6px;
}

.summary-total-row span:first-child { font-size: 13px; color: #5b6282; }
.stotal { font-size: 14px; color: #1ed760; font-weight: 600; }

/* ── Form ────────────────────────────────────────────────────── */
.bk-form { display: flex; flex-direction: column; }

.bk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.bk-field { display: flex; flex-direction: column; gap: 7px; }
.bk-field-full { grid-column: 1 / -1; }

.bk-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7b83a0;
}

.bk-field label em { color: #e43480; font-style: normal; }

.bk-field input {
    padding: 13px 16px;
    background: #0b0c14;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-family: 'Outfit';
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s;
}

.bk-field input::placeholder { color: #3d4159; }
.bk-field input:focus { border-color: #6754E9; }

#form-message {
    margin-bottom: 16px;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
}
#form-message.error   { display: block; background: rgba(228,52,128,0.1); color: #e43480; border: 1px solid rgba(228,52,128,0.3); }
#form-message.success { display: block; background: rgba(30,215,96,0.1);  color: #1ed760; border: 1px solid rgba(30,215,96,0.3); }

/* ── Footer Buttons ──────────────────────────────────────────── */
.bk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.bk-back {
    background: none;
    border: none;
    color: #5b6282;
    font-family: 'Outfit';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    transition: color 0.2s;
}
.bk-back:hover { color: #c5cade; }

.bk-next {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6754E9, #5042cc);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit';
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 6px 24px rgba(103,84,233,0.35);
}
.bk-next:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(103,84,233,0.5); }

.bk-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, #e43480, #c4246a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit';
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 6px 24px rgba(228,52,128,0.3);
}
.bk-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(228,52,128,0.5); }
.bk-submit:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* ── Success ─────────────────────────────────────────────────── */
.bk-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.success-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(30,215,96,0.12);
    border: 2px solid rgba(30,215,96,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.success-ring i { font-size: 34px; color: #1ed760; }

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.bk-success h3 { font-size: 28px; font-weight: 700; color: #fff; }
.bk-success p { font-size: 15px; color: #7b83a0; max-width: 420px; line-height: 1.7; }

/* ── Loader ──────────────────────────────────────────────────── */
.bk-loader {
    padding: 40px;
    text-align: center;
    color: #3d4159;
    font-size: 20px;
    animation: spin 1s linear infinite;
}

.pkg-features li.feat-platform {
    color: #8b7cf0;
    font-weight: 600;
    font-size: 12px;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(103,84,233,0.15);
}
.pkg-features li.feat-platform i { color: #8b7cf0; }

/* Single-plan grid (Group A) — center the card */
.pkg-grid:has(.pkg-card:only-child) {
    grid-template-columns: minmax(260px, 480px);
    justify-content: center;
}


@media (max-width: 900px) {
    /* Sidebar → hidden; mobile header → shown */
    .bk-sidebar { display: none; }
    .bk-mobile-header { display: flex; }

    /* Push entire page below fixed header */
    body { padding-top: 53px; }

    /* Progress bar: sticky at very top of scroll (fixed header is outside flow) */
    .bk-progress { padding: 12px 20px 10px; }

    /* bk-main should scroll with the page, not clip */
    .bk-main { overflow-y: visible; }
    .bk-wrap { min-height: calc(100vh - 53px); }

    .bk-step { padding: 28px 20px 24px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: 1fr; }
    .bk-form-grid { grid-template-columns: 1fr; }
    .bk-field-full { grid-column: 1; }
    .step-num { font-size: 30px; min-width: 40px; }
    .bk-step-header { gap: 10px; margin-bottom: 22px; }
    .bk-step-header h3 { font-size: 18px; }
    .bk-step-header p { font-size: 13px; }
    .pkg-card { padding: 22px 18px; }
    .summary-split { flex-direction: column; }
    .bk-next, .bk-submit { padding: 13px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
    body { padding-top: 53px; }
    .bk-step { padding: 20px 16px 20px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cat-card { padding: 12px 10px; gap: 8px; }
    .cat-card i { font-size: 17px; }
    .cat-card span { font-size: 11px; }
    .bk-steps-row { gap: 10px; }
    .bk-step-label { font-size: 9px; letter-spacing: 0; }
    .bk-next, .bk-submit { padding: 12px 18px; font-size: 14px; width: 100%; justify-content: center; }
    .bk-foot { flex-direction: column-reverse; gap: 10px; }
    .bk-back { align-self: flex-start; }
    .pkg-price { font-size: 22px; }
    .addon-list { grid-template-columns: 1fr; }
    .bk-form-grid { gap: 12px; }
    .summary-left, .summary-right { padding: 18px; }
    .pkg-name { font-size: 17px; }
    .bk-progress { padding: 10px 16px 8px; }
}
