/* ================================================================
   REGULASI — Regulasi Pengiriman per Negara
   Prefix: reg-*
   Layout: Bootstrap 5 (row/col/container/table-responsive/d-*)
   CSS ini HANYA untuk visual styling, bukan layout.
   ================================================================ */

/* ================================================================
   HERO
   ================================================================ */
.reg-hero-wrap {
    position: relative;
    margin-bottom: 48px;
}
.reg-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(170deg, var(--teal-500) 0%, var(--teal-600) 40%, var(--teal-700) 100%);
    padding: 56px 24px 48px;
}
.reg-hero-detail {
    padding: 40px 24px 44px;
}

/* Orb decorations */
.reg-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.reg-orb {
    position: absolute; border-radius: 50%;
    opacity: 0.06; filter: blur(60px);
    animation: regFloat 16s ease-in-out infinite;
}
.reg-orb-1 { width: 400px; height: 400px; background: #fff; top: -120px; right: -100px; }
.reg-orb-2 { width: 260px; height: 260px; background: #fff; bottom: -80px; left: 3%; animation-delay: -6s; }
.reg-orb-3 { width: 180px; height: 180px; background: #fff; top: 25%; left: 50%; animation-delay: -10s; }
@keyframes regFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-14px) scale(1.03); }
}

/* Inner content */
.reg-hero-inner {
    position: relative; z-index: 2;
    max-width: 520px; margin: 0 auto;
    text-align: center;
}

/* Back button (detail page) */
.reg-hero-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
    margin-bottom: 20px; transition: var(--ease); text-decoration: none;
}
.reg-hero-back:hover { color: #fff; }

/* Title + desc */
.reg-hero-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 22px; color: #fff;
}
.reg-hero-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin: 0 0 12px;
}
.reg-hero-title {
    color: #fff; font-size: 32px; font-weight: 800;
    margin: 0 0 12px; line-height: 1.25;
}
.reg-hero-desc {
    color: rgba(255,255,255,0.7); font-size: 14px;
    margin: 0 0 20px; line-height: 1.7;
    max-width: 460px; margin-left: auto; margin-right: auto;
}

/* ===== SEARCH BAR (overlapping hero bottom) ===== */
.reg-hero-search-wrap {
    position: absolute; bottom: 0; left: 0; right: 0;
    transform: translateY(50%);
    z-index: 10;
}
.reg-hero-search {
    position: relative;
}
.reg-hero-search input {
    width: 100%; padding: 18px 24px 18px 54px;
    border: none; border-radius: 20px;
    font-size: 15px; font-family: 'Poppins', sans-serif;
    background: #fff; color: var(--gray-900);
    outline: none; transition: var(--ease);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}
.reg-hero-search input::placeholder { color: var(--gray-400); }
.reg-hero-search input:focus {
    box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 0 0 4px rgba(44,197,189,0.15);
}
.reg-hero-search > i {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%);
    color: var(--teal-500); font-size: 16px;
}

/* ===== DETAIL HERO — Compact ===== */
.reg-hero-wrap-detail { margin-bottom: 24px; }
.reg-hero-detail { padding: 36px 24px 40px; }
.reg-detail-chips {
    display: flex; justify-content: center;
    gap: 8px; flex-wrap: wrap;
}
.reg-dchip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}
.reg-dchip-yes { background: rgba(255,255,255,0.8); color: var(--teal-800); border: none; }
.reg-dchip-no  { background: rgba(255,255,255,0.8); color: #e60000; border: none; }

/* ================================================================
   SECTION BAR
   ================================================================ */
.reg-section-title {
    font-size: 20px; font-weight: 800; color: var(--gray-900); margin: 0;
}
.reg-section-count { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.reg-alpha-scroll { display: flex; gap: 4px; flex-wrap: wrap; }
.reg-alpha-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--gray-200); background: var(--white);
    font-size: 11px; font-weight: 700; color: var(--gray-500);
    cursor: pointer; transition: var(--ease);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
}
.reg-alpha-btn:hover {
    background: var(--teal-500); color: #fff; border-color: var(--teal-500);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44,197,189,0.3);
}

/* ================================================================
   COUNTRY CARD
   ================================================================ */
.reg-country-card {
    display: block; height: 100%;
    position: relative; overflow: hidden;
    border-radius: var(--r-md); background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    cursor: pointer; text-decoration: none; color: inherit;
}
.reg-country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44,197,189,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-color: var(--teal-200);
}
.reg-card-flag-bg {
    position: absolute; top: -10px; right: -10px;
    width: 80px; height: 56px; opacity: 0.06;
    filter: blur(2px); pointer-events: none; transition: var(--ease);
}
.reg-card-flag-bg img { width: 100%; height: 100%; object-fit: cover; }
.reg-country-card:hover .reg-card-flag-bg { opacity: 0.12; transform: scale(1.1); }
.reg-card-front {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
}
.reg-flag {
    width: 40px; height: 28px; object-fit: cover;
    border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); flex-shrink: 0;
}
.reg-country-info { flex: 1; min-width: 0; }
.reg-country-name {
    font-size: 14px; font-weight: 700; color: var(--gray-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.reg-country-count {
    font-size: 11px; color: var(--gray-400); margin-top: 2px;
    display: flex; align-items: center; gap: 4px;
}
.reg-country-count i { font-size: 10px; }
.reg-country-arrow {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--gray-400); transition: var(--ease); flex-shrink: 0;
}
.reg-country-card:hover .reg-country-arrow {
    background: var(--teal-500); color: #fff;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(44,197,189,0.3);
}

/* Empty search */
.reg-empty-search { text-align: center; padding: 48px 24px; color: var(--gray-500); }
.reg-empty-search i { font-size: 40px; color: var(--gray-200); margin-bottom: 12px; display: block; }
.reg-empty-search h5 { font-size: 16px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }

/* ================================================================
   DETAIL — Filter Pills, Search, Table, Disclaimer
   ================================================================ */
.reg-filter-pills {
    display: flex; gap: 8px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.reg-filter-pills::-webkit-scrollbar { display: none; }
.reg-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: var(--white); color: var(--gray-500);
    cursor: pointer; transition: var(--ease);
    text-decoration: none; white-space: nowrap;
}
.reg-pill:hover { border-color: var(--teal-400); color: var(--teal-700); background: var(--teal-50); }
.reg-pill.active {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(44,197,189,0.25);
}
.reg-pill-yes.active { background: linear-gradient(135deg, var(--teal-500), var(--teal-600)); }
.reg-pill-no.active  { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.reg-search-input { position: relative; }
.reg-search-input input {
    width: 100%; padding: 9px 16px 9px 40px;
    border: 1.5px solid var(--gray-200); border-radius: 100px;
    font-size: 13px; font-family: 'Poppins', sans-serif;
    background: var(--gray-50); color: var(--gray-900);
    outline: none; transition: var(--ease);
}
.reg-search-input input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(44,197,189,0.08); }
.reg-search-input i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: var(--gray-300); font-size: 13px;
}

.reg-result-info { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.reg-result-info strong { color: var(--gray-900); }
.reg-result-info a { color: var(--teal-700); font-weight: 600; }

/* Table */
.reg-table-wrap {
    background: var(--white); border-radius: var(--r-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden; margin-bottom: 24px; box-shadow: var(--sh-sm);
}
.reg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg-table thead th {
    background: var(--gray-50); padding: 12px 16px;
    font-size: 12px; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200); text-align: left;
}
.reg-table tbody tr { border-bottom: 1px solid var(--gray-100); }
.reg-table tbody tr:last-child { border-bottom: none; }
.reg-table tbody tr:hover { background: var(--gray-50); }
.reg-table td { padding: 12px 16px; vertical-align: middle; }
.reg-num { color: var(--gray-400); font-weight: 600; font-size: 12px; }
.reg-item-name { font-weight: 600; color: var(--gray-900); }
.reg-item-desc { color: var(--gray-500); font-size: 13px; }
.reg-item-status { text-align: center; }
.reg-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700;
}
.reg-badge-yes { background: var(--teal-50); color: var(--teal-800); border: 1px solid #a7f3d0; }
.reg-badge-no  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Empty */
.reg-empty { text-align: center; padding: 56px 24px; color: var(--gray-500); }
.reg-empty i { font-size: 40px; color: var(--gray-200); margin-bottom: 12px; display: block; }
.reg-empty h5 { font-size: 16px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.reg-empty p { font-size: 13px; margin-bottom: 16px; }

/* Disclaimer */
.reg-disclaimer {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 20px; border-radius: var(--r-md);
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 13px; color: #92400e; line-height: 1.6; margin-bottom: 24px;
}
.reg-disclaimer i { color: #f59e0b; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.reg-disclaimer strong { color: #78350f; }

/* ================================================================
   ANIMATIONS — Fixed: immediate visibility for content elements
   ================================================================ */
@keyframes regFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Default: animate with fade-up */
.reg-anim {
    animation: regFadeUp 0.5s ease forwards;
    opacity: 0;
}

/* Force content sections to always be visible — no animation dependency */
.reg-table-wrap,
.reg-filter-pills,
.reg-search-input,
.reg-result-info,
.reg-disclaimer,
.reg-empty,
.reg-table-wrap.reg-anim,
.reg-disclaimer.reg-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* ================================================================
   MOBILE — Hanya visual adjustments, BUKAN layout
   Bootstrap handles: grid columns, show/hide (d-none d-md-*),
   table-responsive, container padding, gutters (g-3)
   ================================================================ */
@media (max-width: 575.98px) {
    /* Hero sizing */
    .reg-hero { padding: 40px 16px 40px; }
    .reg-hero-detail { padding: 28px 16px 32px; }
    .reg-hero-wrap { margin-bottom: 20px; }
    .reg-hero-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .reg-hero-title { font-size: 22px; }
    .reg-hero-desc { font-size: 13px; }
    .reg-hero-eyebrow { font-size: 10px; }
    .reg-hero-search input { padding: 15px 16px 15px 46px; font-size: 14px; border-radius: 16px; }
    .reg-section-title { font-size: 18px; }

    /* Detail chips */
    .reg-dchip { font-size: 11px; padding: 5px 12px; }

    /* Table → card layout on mobile */
    .reg-table tbody tr {
        display: flex; flex-direction: column;
        padding: 14px 16px; gap: 6px;
        border-bottom: 1px solid var(--gray-100);
    }
    .reg-table td { padding: 0; }
    .reg-item-name { font-size: 14px; }
    .reg-item-desc { font-size: 12px; }
    .reg-item-status { text-align: left; }
}