/* =========================================
   SIMASRIM Design System v2 — Cek Resi/Ongkir
   Aligned 100% with simasrim.com
   ========================================= */

/* =========================================
   1. FONT & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bs-primary: #7335B7;
    --bs-primary-rgb: 115, 53, 183;
    --primary: #7335B7;
    --primary-dark: #5A2A8F;
    --accent: #F3700D;
    --secondary: #8091C9;
    --dark-bg: #0f0c29;
    --text-main: #1e1e2f;
    --text-light: #64748b;
    --bg-soft-purple: #f3effa;
    --border-color: rgba(0,0,0,0.06);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-purple: 0 10px 20px rgba(115, 53, 183, 0.25);
}

/* =========================================
   2. GLOBAL RESET & BASE
   ========================================= */
html {
    scroll-behavior: smooth;
    overflow-x: visible;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: #f8f9fa;
    max-width: 100%;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
}

a { text-decoration: none; transition: 0.3s; }
a:hover, a:focus { text-decoration: none; color: var(--primary); }

.btn, .btn:focus { outline: none !important; box-shadow: none; }

/* HARD OVERRIDE BOOTSTRAP */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); color: white; }

/* =========================================
   3. SMART NAVBAR (Glass Morphism)
   ========================================= */
.navbar-glass {
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s ease-in-out;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}
.navbar-glass .logo-white { display: block; }
.navbar-glass .logo-color { display: none; }
.navbar-glass .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.navbar-glass .nav-link:hover { color: #fff; }

/* Navbar Buttons (default/transparent state) */
.btn-login-nav {
    color: white !important;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    transition: 0.3s;
}
.btn-login-nav:hover { background: rgba(255,255,255,0.1); }
.btn-daftar-nav {
    background-color: white;
    color: var(--primary) !important;
    border: 1px solid white;
    transition: 0.3s;
}

/* Navbar Scrolled State */
.navbar-glass.scrolled, .navbar-glass.mobile-open {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.navbar-glass.scrolled .logo-white, .navbar-glass.mobile-open .logo-white { display: none; }
.navbar-glass.scrolled .logo-color, .navbar-glass.mobile-open .logo-color { display: block; }
.navbar-glass.scrolled .nav-link, .navbar-glass.mobile-open .nav-link { color: var(--text-main); }
.navbar-glass.scrolled .nav-link:hover, .navbar-glass.mobile-open .nav-link:hover { color: var(--primary); }
.navbar-glass.scrolled .nav-link.active, .navbar-glass.mobile-open .nav-link.active { color: var(--primary); font-weight: 700; }

/* Scrolled Buttons */
.navbar-glass.scrolled .btn-login-nav, .navbar-glass.mobile-open .btn-login-nav { color: var(--primary) !important; border-color: var(--primary); }
.navbar-glass.scrolled .btn-login-nav:hover, .navbar-glass.mobile-open .btn-login-nav:hover { background-color: var(--primary); color: white !important; }
.navbar-glass.scrolled .btn-daftar-nav, .navbar-glass.mobile-open .btn-daftar-nav { background-color: transparent; color: var(--primary) !important; border: 1px solid var(--primary); }
.navbar-glass.scrolled .btn-daftar-nav:hover, .navbar-glass.mobile-open .btn-daftar-nav:hover { background-color: var(--primary); color: white !important; }

.navbar-toggler { border: none; color: white; outline: none; box-shadow: none; }
.navbar-glass.scrolled .navbar-toggler, .navbar-glass.mobile-open .navbar-toggler { color: var(--text-main); }

/* MOBILE MENU */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 10px;
        border-radius: 16px;
        box-shadow: var(--shadow-md);
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-glass.mobile-open { background: white !important; }
    .btn-login-nav, .btn-daftar-nav, .btn-primary-gradient { width: 100%; text-align: center; margin-bottom: 10px; display: block; }
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    padding: 160px 0 80px;
    background: radial-gradient(circle at top right, #4a1e75, #5A2A8F, #0f0c29);
    color: white;
    overflow: hidden;
    width: 100%;
}
.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.hero-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 0;
}
.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent);
    filter: blur(180px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    top: -100px;
    right: -100px;
}
.text-gradient {
    background: linear-gradient(to right, #ffffff 20%, #d4bbfb 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 130px !important;
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-section h2 { font-size: 1.7rem; }
}

/* =========================================
   5. BUTTONS & BADGES
   ========================================= */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-purple);
    transition: 0.3s;
}
.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(115, 53, 183, 0.4);
    color: white;
}

.btn-cek-harga {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-purple);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-cek-harga:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(115, 53, 183, 0.4);
    color: white;
}
.btn-cek-harga:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

a.btn-kirim-paket {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(115, 53, 183, 0.2);
}
a.btn-kirim-paket:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 53, 183, 0.3);
}

.badge-soft {
    background-color: var(--bg-soft-purple) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(115, 53, 183, 0.1);
}

.icon-bg-soft {
    background-color: var(--bg-soft-purple) !important;
    color: var(--primary) !important;
}

/* =========================================
   6. BENTO CARD (Form Wrapper)
   ========================================= */
.bento-card {
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.bento-card:hover {
    box-shadow: 0 20px 40px rgba(115, 53, 183, 0.1);
    border-color: rgba(115, 53, 183, 0.3);
}

/* =========================================
   7. FORMS
   ========================================= */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(115, 53, 183, 0.1);
}

.form-label, label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Autocomplete Dropdown */
.form-group {
    position: relative;
}
.search-results {
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background-color: #fff;
    width: 100%;
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.search-results div {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.search-results div:hover {
    background-color: var(--bg-soft-purple);
    color: var(--primary);
}

/* =========================================
   8. TABLE — Hasil Cek Resi
   ========================================= */
.table {
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 12px;
    border: none;
    white-space: nowrap;
}
.table thead th:first-child { border-radius: 12px 0 0 0; }
.table thead th:last-child { border-radius: 0 12px 0 0; }

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f5;
}
.table tbody tr:hover {
    background-color: var(--bg-soft-purple);
}
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    background: white;
    border: 1px solid var(--border-color);
}

/* Resi History Detail */
.resi-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fcfaff;
    transition: background 0.2s;
}
.resi-entry:hover {
    background: var(--bg-soft-purple);
}
.resi-icon {
    flex: 0 0 auto;
    margin-right: 10px;
}
.resi-date {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 2px;
}
.resi-desc {
    display: inline;
    font-size: 0.9rem;
}

.showResi {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(23%) sepia(59%) saturate(2894%) hue-rotate(262deg) brightness(91%) contrast(91%);
}
.showResi:hover {
    transform: scale(1.15);
}

/* =========================================
   9. ONGKIR RESULT CARDS
   ========================================= */
.result-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    background: #fff;
    transition: all 0.3s ease;
}
.result-card:hover {
    box-shadow: 0 10px 30px rgba(115, 53, 183, 0.08);
    border-color: rgba(115, 53, 183, 0.2);
}

.thin-hr {
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* Result content for ongkir */
#result-content .border {
    border-radius: 16px !important;
    border-color: var(--border-color) !important;
    overflow: hidden;
}
#result-content .shadow-sm {
    box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
}

/* =========================================
   10. AD SLIDESHOW
   ========================================= */
.img-iklan img {
    display: block;
    width: 40%;
    margin-left: auto !important;
    margin-right: auto !important;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border-radius: 12px;
}

/* =========================================
   11. SECTION UTILITIES
   ========================================= */
.section-padding { padding: 100px 0; }
.layout_padding { padding: 0; }
.bg-light-soft { background-color: #fcfaff; }

.status { color: var(--primary); font-weight: 700; }

.heading_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.heading_container h2 {
    position: relative;
    font-weight: 800;
    color: var(--text-main);
}
.heading_container h2 span { color: var(--primary); }

/* =========================================
   12. FOOTER (Dark Theme — simasrim.com style)
   ========================================= */
.site-footer {
    background-color: #1a1a2e;
    color: white;
    padding-top: 4rem;
    padding-bottom: 0;
    margin-top: 4rem;
    border-top: 3px solid var(--primary);
}
.site-footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}
.site-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent) !important;
    padding-left: 5px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.footer-bottom .powered-by {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom .powered-by a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}
.footer-bottom .powered-by a:hover {
    color: var(--accent);
}

/* =========================================
   13. FLOATING WA WIDGET
   ========================================= */
.float-cta-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.chat-menu-panel {
    background: #ffffff;
    width: 340px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 70px;
    right: 0;
}

.chat-menu-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.chat-opt-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}
.chat-opt-item:last-child { margin-bottom: 0; }
.chat-opt-item:hover { background-color: var(--bg-soft-purple); }

.chat-icn-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}
.bg-emerald { background-color: #179E5E; }
.bg-amber { background-color: #FFBC00; }

.chat-txt-wrap { flex-grow: 1; }

.chat-main-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}
.chat-sub-title {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.main-trigger-btn {
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
    float: right;
    padding: 0;
}
.main-trigger-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 37px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(115, 53, 183, 0.3);
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(115, 53, 183, 0.5);
}

/* =========================================
   14. VOLUME INPUT GROUP
   ========================================= */
.volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.volume-group .form-control {
    max-width: 80px;
    text-align: center;
}
.volume-group span {
    color: var(--text-light);
    font-weight: 600;
}

/* =========================================
   15. ERROR & STATUS MESSAGES
   ========================================= */
.error-message {
    display: none;
    color: var(--text-light);
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
}
.result-container {
    display: none;
}

/* =========================================
   16. GRECAPTCHA BADGE HIDE
   ========================================= */
.grecaptcha-badge {
    display: none !important;
}

/* =========================================
   17. CUSTOM SELECT (Ekspedisi)
   ========================================= */
.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}
.custom-select-selected {
    border: none;
    padding: 5px 8px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}
.custom-select-selected img { width: 20px; margin-right: 8px; }
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid #e2e8f0;
    border-top: none;
    width: 100%;
    background: white;
    display: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-md);
}
.custom-options div {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.custom-options div:hover { background-color: var(--bg-soft-purple); }
.custom-options img { width: 20px; margin-right: 8px; }

/* =========================================
   18. HOVER EFFECTS (simasrim.com)
   ========================================= */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-up:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(115, 53, 183, 0.15) !important;
    border-color: rgba(115, 53, 183, 0.3) !important;
    cursor: pointer;
}
.hover-scale {
    transition: transform 0.3s ease;
    display: inline-block;
}
.hover-scale:hover { transform: scale(1.08); }

/* =========================================
   19. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out both;
}

/* WA Widget (FA icon-based for cekongkir) */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.wa-popup {
    background: #ffffff;
    width: 340px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 70px;
    right: 0;
}
.wa-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wa-popup-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}
.wa-option {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}
.wa-option:hover { background-color: var(--bg-soft-purple); }
.wa-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}
.bg-green { background-color: #179E5E; }
.bg-yellow { background-color: #FFBC00; }
.wa-text { flex-grow: 1; }
.wa-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.wa-desc {
    font-size: 13px;
    color: var(--text-light);
}
.wa-btn {
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
    float: right;
    padding: 0;
    color: white;
    font-size: 1.8rem;
}
.wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
