/* Reset & Base variables */
.bgwv-container {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    max-width: 1000px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    padding-bottom: 80px;
}
.bgwv-container * { box-sizing: border-box; }

/* Step Headers */
.bgwv-header { text-align: center; padding: 40px 20px 20px; }
.bgwv-header h2 { font-size: 28px; font-weight: 800; color: var(--text-main); margin: 0 0 10px; }
.bgwv-header p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* Filter Tabs Styling */
.bgwv-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
}
.bgwv-tab-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.bgwv-tab-btn:hover { border-color: #cbd5e1; color: var(--text-main); }
.bgwv-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(37,99,235,0.2);
}

/* Grid Layouts */
.bgwv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 40px 30px;
}

/* Type Card (Với Icon/Image) */
.bgwv-type-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bgwv-type-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(37,99,235,0.1); }

/* Hình ảnh đại diện / Placeholder */
.bgwv-card-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}
.bgwv-card-icon-placeholder {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bgwv-type-card h3 { font-size: 17px; margin: 0 0 10px; color: var(--text-main); line-height: 1.4; }
.bgwv-type-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Feature Card */
.bgwv-feature-list { padding: 0 40px 30px; display: flex; flex-direction: column; gap: 15px; }
.bgwv-feature-item {
    background: var(--card-bg); border: 2px solid var(--border); border-radius: 12px;
    padding: 20px; display: flex; align-items: center; cursor: pointer; transition: all 0.2s;
}
.bgwv-feature-item:hover { border-color: #cbd5e1; }
.bgwv-feature-item.checked { border-color: var(--primary); background: #f8fafc; }

.bgwv-checkbox {
    width: 24px; height: 24px; border: 2px solid #cbd5e1; border-radius: 6px;
    margin-right: 20px; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0;
}
.bgwv-feature-item.checked .bgwv-checkbox { background: var(--primary); border-color: var(--primary); }
.bgwv-feature-item.checked .bgwv-checkbox::after { content: "✓"; color: white; font-weight: bold; }

.bgwv-feature-content { flex: 1; }
.bgwv-feature-content h4 { margin: 0 0 5px; font-size: 16px; color: var(--text-main); }
.bgwv-feature-content p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.bgwv-feature-price { font-weight: 700; color: var(--primary); font-size: 16px; margin-left: 15px; white-space: nowrap; }

/* Sticky Bottom Bar */
.bgwv-bottom-bar {
    position: absolute; bottom: 0; left: 0; right: 0; background: white;
    border-top: 1px solid var(--border); padding: 15px 40px; display: flex;
    justify-content: space-between; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,0.05); z-index: 10;
}
.bgwv-total-box span { font-size: 14px; color: var(--text-muted); display: block; }
.bgwv-total-box strong { font-size: 24px; color: #d97706; }

.bgwv-nav-actions { display: flex; gap: 10px; }
.bgwv-btn { padding: 12px 25px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: 0.2s; }
.bgwv-btn-primary { background: var(--primary); color: white; }
.bgwv-btn-primary:hover { background: var(--primary-hover); }
.bgwv-btn-secondary { background: #f1f5f9; color: var(--text-main); }
.bgwv-btn-secondary:hover { background: #e2e8f0; }

/* Lead Form */
.bgwv-form { max-width: 500px; margin: 0 auto; padding: 20px 40px; }
.bgwv-input { width: 100%; padding: 15px; border: 2px solid var(--border); border-radius: 8px; margin-bottom: 15px; font-size: 16px; outline: none; transition: 0.2s; }
.bgwv-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Animation */
.bgwv-fade { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .bgwv-bottom-bar { flex-direction: column; gap: 15px; text-align: center; padding: 15px 20px; }
    .bgwv-container { padding-bottom: 120px; }
    .bgwv-grid { padding: 0 20px 30px; grid-template-columns: 1fr; }
    .bgwv-feature-item { flex-direction: column; align-items: flex-start; }
    .bgwv-feature-price { margin-left: 0; margin-top: 10px; }
}