/* Bangladesh Visa Checker – Public Widget Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.bvc-widget * { box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }

/* ── Widget wrapper ──────────────────────────────────── */
.bvc-widget {
    max-width: 820px;
    margin: 0 auto;
    color: #1a1a1a;
}

/* ── Hero / Search card ──────────────────────────────── */
.bvc-hero {
    background: linear-gradient(145deg, #003d1f 0%, #006b38 55%, #1a8a52 100%);
    border-radius: 24px;
    padding: 52px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(0,61,31,.4);
    margin-bottom: 28px;
}
.bvc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212,175,55,.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.07) 0%, transparent 50%);
    pointer-events: none;
}
.bvc-hero-badge {
    display: inline-block;
    background: rgba(212,175,55,.25);
    color: #f5d87a;
    border: 1px solid rgba(212,175,55,.4);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 20px;
}
.bvc-hero-title {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -.5px;
}
.bvc-hero-sub {
    color: rgba(255,255,255,.72);
    font-size: 16px;
    margin: 0 0 36px;
    line-height: 1.5;
}

/* ── Search box ──────────────────────────────────────── */
.bvc-search-container { position: relative; max-width: 540px; margin: 0 auto; }
.bvc-select-wrap {
    position: relative;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.bvc-select-flag { font-size: 26px; margin-right: 10px; flex-shrink: 0; }
.bvc-select-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    background: transparent;
    padding: 10px 0;
}
.bvc-select-input::placeholder { color: #9ca3af; font-weight: 400; }
.bvc-select-arrow { font-size: 12px; color: #9ca3af; padding: 0 12px; }

.bvc-dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}
.bvc-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; cursor: pointer; font-size: 14px; color: #374151;
    border-bottom: 1px solid #f3f4f6; transition: background .12s;
}
.bvc-dropdown-item:last-child { border-bottom: none; }
.bvc-dropdown-item:hover { background: #f0fdf4; color: #0a3d2b; }
.bvc-dropdown-item .di-flag { font-size: 20px; flex-shrink: 0; }
.bvc-dropdown-item .di-name { flex: 1; font-weight: 500; }
.bvc-dropdown-item .di-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.bvc-dropdown-no-result { padding: 20px; text-align: center; color: #9ca3af; font-size: 14px; }

.bvc-check-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37, #c9a227);
    color: #003d1f;
    border: none; cursor: pointer;
    padding: 15px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(212,175,55,.4);
}
.bvc-check-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e8c547, #d4af37);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,175,55,.5);
}
.bvc-check-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bvc-btn-icon { font-size: 18px; transition: transform .2s; }
.bvc-check-btn:hover:not(:disabled) .bvc-btn-icon { transform: translateX(4px); }

/* ── Loading ─────────────────────────────────────────── */
.bvc-loading { text-align: center; padding: 40px; color: #6b7280; }
.bvc-spinner {
    width: 36px; height: 36px;
    border: 3px solid #d1d5db;
    border-top-color: #1a6b45;
    border-radius: 50%;
    animation: bvc-spin .8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes bvc-spin { to { transform: rotate(360deg); } }

/* ── Error ───────────────────────────────────────────── */
.bvc-error-box {
    background: #fff5f5; border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    border-radius: 12px; padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: #b91c1c; margin-bottom: 20px;
}

/* ── Results card ────────────────────────────────────── */
.bvc-result {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    animation: bvc-fadeIn .4s ease;
}
@keyframes bvc-fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.bvc-result-header {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 28px 32px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #d1fae5;
    flex-wrap: wrap; gap: 16px;
}
.bvc-result-country { display: flex; align-items: center; gap: 16px; }
.bvc-result-flag { font-size: 52px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.bvc-result-country h3 { font-size: 22px; font-weight: 800; color: #0a3d2b; margin: 0 0 6px; }
.bvc-result-type { font-size: 14px; color: #6b7280; font-weight: 500; font-style: italic; }

.bvc-result-badge {
    display: inline-block; padding: 5px 14px;
    border-radius: 20px; font-size: 13px; font-weight: 700;
}
.bvc-result-badge.status-required      { background: #fee2e2; color: #991b1b; }
.bvc-result-badge.status-visa_on_arrival { background: #fef3c7; color: #92400e; }
.bvc-result-badge.status-visa_free     { background: #d1fae5; color: #065f46; }
.bvc-result-badge.status-e_visa        { background: #dbeafe; color: #1e40af; }

/* Detail cards */
.bvc-result-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; border-bottom: 1px solid #f3f4f6;
}
.bvc-detail-card {
    padding: 24px 28px;
    border-right: 1px solid #f3f4f6;
    text-align: center;
}
.bvc-detail-card:last-child { border-right: none; }
.bvc-detail-icon { font-size: 28px; margin-bottom: 8px; }
.bvc-detail-label { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.bvc-detail-value { font-size: 17px; font-weight: 700; color: #0a3d2b; }

/* Requirements */
.bvc-requirements-section { padding: 28px 32px; border-bottom: 1px solid #f3f4f6; }
.bvc-requirements-section h4 { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 16px; }
.bvc-req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bvc-req-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: #374151; line-height: 1.5;
    padding: 12px 16px; background: #f9fafb; border-radius: 10px;
    border-left: 3px solid #1a6b45;
}
.bvc-req-list li::before { content: '✓'; color: #1a6b45; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Notes */
.bvc-notes-section {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 24px 32px; background: #fffbeb; border-bottom: 1px solid #fde68a;
}
.bvc-notes-icon { font-size: 24px; flex-shrink: 0; }
.bvc-notes-section strong { display: block; font-size: 14px; color: #92400e; margin-bottom: 4px; }
.bvc-notes-section p { margin: 0; font-size: 14px; color: #78350f; line-height: 1.6; }

/* Footer */
.bvc-result-footer {
    padding: 16px 32px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: #9ca3af;
    background: #f9fafb;
}
.bvc-disclaimer { font-style: italic; }

/* ── Quick reference ─────────────────────────────────── */
.bvc-quick-ref {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.bvc-qr-title { font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.bvc-qr-items { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.bvc-qr-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px; font-size: 13px;
}
.bvc-qr-item span { font-size: 16px; flex-shrink: 0; }
.bvc-qr-item strong { display: block; font-size: 12px; font-weight: 700; }
.bvc-qr-item small { font-size: 11px; color: #6b7280; }
.bvc-qr-required { background: #fff5f5; }
.bvc-qr-voa      { background: #fffbeb; }
.bvc-qr-free     { background: #f0fdf4; }
.bvc-qr-evisa    { background: #eff6ff; }

/* ── Scrollbar for dropdown ──────────────────────────── */
.bvc-dropdown::-webkit-scrollbar { width: 6px; }
.bvc-dropdown::-webkit-scrollbar-track { background: #f1f1f1; }
.bvc-dropdown::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
    .bvc-hero { padding: 36px 24px; }
    .bvc-hero-title { font-size: 24px; }
    .bvc-result-grid { grid-template-columns: 1fr; }
    .bvc-detail-card { border-right: none; border-bottom: 1px solid #f3f4f6; }
    .bvc-detail-card:last-child { border-bottom: none; }
    .bvc-qr-items { grid-template-columns: repeat(2,1fr); }
    .bvc-result-header { flex-direction: column; align-items: flex-start; }
    .bvc-requirements-section, .bvc-notes-section, .bvc-result-footer { padding: 20px; }
}
