@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Design Tokens */
:root {
    --primary: #a52626;
    --primary-dark: #8b1e1e;
    --primary-light: #fbecec;
    --accent: #e53935;
    --dark: #1a1c1e;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --nav-height: 80px;
}


/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}


/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 900px;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header {
        margin-bottom: 30px;
    }
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}


.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    --nav-height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: var(--transition);
}

.logo-text h1 {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
    .logo-text h1 {
        font-size: 1.1rem;
    }
    .logo-text p {
        font-size: 0.7rem;
    }
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Navbar Dropdown */
.nav-item-dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-toggle i,
.nav-item-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    color: var(--dark);
    overflow: hidden;
    min-height: 100vh;

    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 20px);
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 60px;
    }
}


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Menghapus gradasi dan menggunakan warna solid transparan */
    z-index: -1;
    border-bottom: 1px solid var(--border-color); /* Menambahkan batasan antara hero dan alur */
}

@media (max-width: 768px) {
    .hero-bg {
        background: rgba(255, 255, 255, 0.85);
    }
}



.hero-container {
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    padding: 30px 0; /* Menghapus padding kiri agar selaras dengan batas kontainer */
    border-radius: var(--radius-md);
}

.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 800;
}



.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    color: var(--text-main);
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-actions .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Steps Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    flex: 1;
    text-align: center;
    opacity: 1; /* Diubah ke 1 agar tidak kosong jika JS gagal */
    transform: none; /* Hilangkan transform default agar langsung muncul */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(1) { transition-delay: 0.1s; }
.step-card:nth-child(2) { transition-delay: 0.3s; }
.step-card:nth-child(3) { transition-delay: 0.5s; }
.step-card:nth-child(4) { transition-delay: 0.7s; }

.step-icon {
    width: 120px;
    height: 120px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: var(--transition);
    border: none;
}

.step-icon i {
    font-size: 2.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: var(--primary);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(165, 38, 38, 0.2);
}

.step-card:hover .step-icon i {
    color: white;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1a1c1e;
}

.step-card p {
    font-size: 1rem;
    color: #57606f;
    line-height: 1.5;
}

/* Syarat Section */
.requirements-wrapper {
    max-width: 800px; 
    margin: 40px auto 0;
}

.requirements-container {
    background: white; 
    padding: 40px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-md); 
    border-left: 6px solid var(--primary);
}

.requirements-container ul {
    list-style: none; 
    padding: 0;
}

.requirements-container li {
    margin-bottom: 20px; 
    display: flex; 
    gap: 15px; 
    align-items: flex-start; 
    font-size: 1.1rem; 
    line-height: 1.6;
}

.requirements-container li i {
    color: var(--primary); 
    font-size: 1.4rem; 
    margin-top: 5px;
}

@media (max-width: 768px) {
    .requirements-wrapper {
        margin-top: 20px;
    }
    .requirements-container {
        padding: 25px 20px;
    }
    .requirements-container li {
        font-size: 0.95rem;
        gap: 10px;
    }
    .requirements-container li i {
        font-size: 1.1rem;
    }
}


/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    background: #eef2f3;
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-box p {
    color: var(--text-main);
    font-weight: 500;
}

/* Tracking Section */
.tracking-section {
    padding: 60px 0;
}

.tracking-wrapper {
    background: #f1f3f5;
    padding: 40px;
    border-radius: var(--radius-md);
}

.tracking-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tracking-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.input-group {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.input-group .form-control {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
}

#trackResult {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 2rem;
}

/* Form Styles */
.form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-header {
    background-color: var(--primary);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.aspirasi-form {
    padding: 40px;
    background: #f8f9fa;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group.half {
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 36, 36, 0.1);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.input-with-prefix .prefix {
    background: #f1f3f5;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    border-right: 1px solid #dee2e6;
}

.input-with-prefix .form-control {
    border: none;
    flex: 1;
}

.input-with-prefix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 36, 36, 0.1);
}

.required {
    color: var(--primary);
}

/* Captcha Styles */
.captcha-section {
    margin-top: 10px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px dashed #dee2e6;
}

.captcha-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.captcha-image-area {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 5px;
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
    position: relative;
}

#captchaCanvas {
    background: #fff;
    border-radius: 4px;
    display: block;
    cursor: default;
    max-width: 100%;
}

.btn-refresh {
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.captcha-input {
    flex: 1;
    min-width: 150px;
    text-transform: none; /* User might need mix case if I set it so */
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 576px) {
    .captcha-box-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-image-area {
        justify-content: space-between;
    }
}

.form-footer {
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

/* FAQ Section */
.faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e9ecef;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--dark);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-main);
    line-height: normal;
}

/* Help Section Styles */
/* Help Section Styles - Enhanced Grid Layout */
.help-section {
    padding: 100px 0;
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(165, 38, 38, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(37, 211, 102, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.help-section .section-header h2 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 1;
}

.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Specific Card Styles */
.whatsapp-card .contact-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.whatsapp-card:hover .contact-icon {
    background: #25D366;
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.email-card .contact-icon {
    background: rgba(165, 38, 38, 0.1);
    color: var(--primary);
}

.email-card:hover .contact-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.info-card .contact-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.info-card:hover .contact-icon {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Buttons for cards - using ID-level styling for specificity */
.btn-whatsapp-grid {
    background: #25D366 !important;
    color: white !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2) !important;
}

.btn-whatsapp-grid:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3) !important;
}

.btn-email-grid {
    background: var(--primary) !important;
    color: white !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 20px rgba(165, 38, 38, 0.2) !important;
}

.btn-email-grid:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(165, 38, 38, 0.3) !important;
}

.status-badge {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-online {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-online::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-online 2s infinite;
}

.status-limited {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.status-limited::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #fa8c16;
    border-radius: 50%;
    display: inline-block;
}

@keyframes pulse-online {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .help-section { padding: 60px 0; }
    .contact-grid { 
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .contact-card { padding: 35px 25px; }
    .help-section .section-header h2 { font-size: 1.8rem; }
}


/* Footer Styles */
.footer {
    background-color: #1a1c1e;
    color: #94a3b8;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.3fr 1.1fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.logo-text h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.logo-text p {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links li, .contact-list li {
    margin-bottom: 20px;
}

.footer-links a, .contact-list a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover, .contact-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* WhatsApp Icon default in list context */
.contact-list .fa-whatsapp {
    color: #25D366;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-extra-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.footer-extra-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-extra-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(165, 38, 38, 0.3);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-bottom: 2px solid var(--primary-light);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.show { 
        display: flex;
        animation: fadeInDown 0.3s ease-out;
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mobile-toggle { display: block; }

    .nav-links {
        padding-top: 20px;
        gap: 15px;
        align-items: center; /* Meratakan ke tengah secara horizontal di mobile */
        text-align: center;
    }

    .nav-item-dropdown {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-toggle {
        display: flex;
        justify-content: center; /* Mengubah dari space-between ke center */
        align-items: center;
        width: 100%;
        gap: 10px; /* Menambah jarak antara teks dan ikon panah */
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        padding: 10px 0; 
        min-width: unset;
        width: 100%;
        display: none; /* Disembunyikan secara default di mobile */
        transition: none;
        background: transparent;
        text-align: center;
    }

    /* Kelas khusus untuk menampilkan dropdown menu di mobile sebagai Grid Balok */
    .dropdown-menu.show { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 10px;
    }

    .dropdown-item {
        padding: 20px 10px;
        background: white;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: var(--radius-md);
        display: flex;
        flex-direction: column; /* Ikon di atas, teks di bawah */
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.85rem;
        box-shadow: var(--shadow-sm);
        color: var(--primary);
        font-weight: 700;
        transition: var(--transition);
        line-height: 1.2;
    }

    .dropdown-item i {
        font-size: 1.3rem;
        color: var(--primary);
    }

    .dropdown-item:active {
        background: var(--primary-light);
        transform: scale(0.95);
    }



    
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.2rem); }
    .hero-actions { 
        flex-direction: column; 
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 18px;
    }
    
    .steps-container { 
        flex-direction: column; 
        align-items: center; 
        gap: 40px;
    }
    .step-card {
        width: 100%;
        max-width: 400px;
    }
    
    .stats-container { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .stat-box { 
        padding: 25px;
        text-align: center;
        align-items: center;
    }
    
    .form-row { flex-direction: column; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .btn-submit { padding: 18px; font-size: 1.1rem; }
}

/* Tracking Receipt Result */
.tracking-receipt {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #eee;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.receipt-status {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.val-new { background: #e3f2fd; color: #1976d2; }
.val-valid { background: #fff8e1; color: #f57f17; }
.val-process { background: #f3e5f5; color: #7b1fa2; }
.val-done { background: #e8f5e9; color: #2e7d32; }

.receipt-id {
    font-weight: 700;
    color: #adb5bd;
}

.receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 40px; /* Ditambah agar lebih lega */
    margin-top: 30px;
}

.receipt-title {
    font-size: 1.4rem; /* Sedikit lebih besar */
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 800;
}

@media (max-width: 576px) {
    .receipt-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .receipt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


.receipt-item span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 700;
}

.receipt-item strong {
    font-size: 1.1rem;
    color: var(--dark);
    display: block;
    margin-top: 4px;
}

.receipt-feedback {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.receipt-feedback h5 {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0;
}

.receipt-feedback p {
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Premium Flow Modal (Swal) */
.premium-flow-modal {
    border-radius: var(--radius-md) !important;
    padding: 20px !important;
}

.flow-modal-steps {
    text-align: left;
    margin-top: 20px;
}

.flow-step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.flow-step-item:nth-child(1) { animation-delay: 0.2s; }
.flow-step-item:nth-child(2) { animation-delay: 0.4s; }
.flow-step-item:nth-child(3) { animation-delay: 0.6s; }
.flow-step-item:nth-child(4) { animation-delay: 0.8s; }

.flow-step-number {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 0 0 0 rgba(142, 36, 36, 0.4);
    animation: step-pulse 2s infinite;
}

@keyframes step-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 36, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(142, 36, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(142, 36, 36, 0);
    }
}


.flow-step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.flow-step-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

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

/* Premium Success Ticket Card */
.ticket-status-card {
    text-align: center;
    padding: 10px;
}

.ticket-number-box {
    background: #f8f9fa;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.ticket-number-box .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ticket-copy-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ticket-copy-group strong {
    font-size: 1.8rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.btn-copy-ticket {
    background: white;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-ticket:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.ticket-info-alert {
    background: #fff8e1;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.85rem;
    color: #856404;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    border-left: 4px solid #ffc107;
}

.ticket-info-alert i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.premium-swal-popup {
    border-radius: 20px !important;
}

/* Star Rating System */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2.8rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
    transform: scale(1.15);
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.rating-text {
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 15px;
    display: block;
    font-size: 1rem;
}

/* Modal Transitions */
.swal2-show {
    animation: fadeInUp 0.5s ease-out !important;
}

.swal2-hide {
    animation: fadeOutDown 0.3s ease-in !important;
}

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

/* Popup Peringatan Website Palsu */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: fadeInPopup 0.3s ease-out forwards;
}

.popup-container {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 900px;
    min-height: 440px;
    position: relative;
    overflow: hidden;
    animation: slideUpPopup 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.popup-container .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.popup-container .close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05) rotate(90deg);
}

.popup-image {
    flex: 0 0 42%;
    background-image: url('https://beritajatim.com/wp-content/uploads/2024/03/DPRD-Jatim.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 40% bottom;
    position: relative;
}

.popup-content {
    flex: 1;
    padding: 48px 56px 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.warning-text {
    color: #334155;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 12px;
}

.main-warning {
    font-weight: 600;
    font-size: 17px;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.official-site {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: #f0fdf4;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    margin-bottom: 24px;
    font-size: 15px;
    color: #166534;
    line-height: 1.5;
}

.check-icon-wrapper {
    background-color: #dcfce7;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon {
    width: 20px;
    height: 20px;
}

.official-site-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.official-link {
    color: #15803d;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
    position: relative;
    display: inline-block;
}

.popup-container .action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.popup-container .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
}

.popup-container .btn-primary {
    background-color: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.popup-container .btn-secondary {
    background-color: white;
    color: #334155;
    border-color: #cbd5e1;
}

@keyframes fadeInPopup {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes slideUpPopup {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .popup-overlay { padding: 16px; }
    .popup-container {
        flex-direction: column;
        max-width: 90%;
        margin: auto;
        height: auto;
        max-height: 85vh;
        overflow: hidden; 
    }
    .popup-image { height: 110px; flex: 0 0 110px; }
    .popup-content {
        padding: 20px 16px;
        overflow: y-auto; 
    }
    .popup-container .action-buttons { flex-direction: column; }
    .warning-text { font-size: 13px!important; line-height: 1.35!important; }
    .main-warning { font-size: 14px!important; margin-bottom: 12px!important; }
}

/* Ticket Confirmation Checkbox */
.ticket-confirmation {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-confirmation:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ticket-confirmation input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.ticket-confirmation label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    text-align: left;
    margin: 0;
}



