/* Base & Typography */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #f1f5f9 0%, #e0f2fe 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Colors based on Sejasa */
:root {
    --primary-gradient: linear-gradient(135deg, #cc275f 0%, #209cac 100%);
    --btn-primary: #e6396e;
    --btn-primary-hover: #c92255;
    --text-dark: #333;
}

/* Helper Classes */
.text-primary { color: var(--btn-primary) !important; }
.bg-primary { background-color: var(--btn-primary) !important; }

/* Navbar Transparent */
.navbar-custom {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-custom.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-custom .nav-link, .navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 500;
}
.navbar-custom.scrolled .nav-link, .navbar-custom.scrolled .navbar-brand {
    color: var(--text-dark) !important;
}
.btn-nav-primary {
    background-color: var(--btn-primary);
    color: white !important;
    border: none;
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 600;
}
.btn-nav-primary:hover {
    background-color: var(--btn-primary-hover);
}

/* Hero Section */
.hero-sejasa {
    background: linear-gradient(-45deg, #0b1120, #1e1b4b, #0f172a, #172554);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 140px 0 60px 0;
    color: white;
    text-align: left;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles in background */
.hero-sejasa::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    animation: floatingGlow 10s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes floatingGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-20px, 20px); }
}

.hero-sejasa .video-container {
    display: none;
}
.hero-sejasa > .container {
    position: relative;
    z-index: 2;
}
.hero-sejasa h1 {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}
.hero-sejasa p.lead-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 90%;
    margin-bottom: 40px;
}
.text-gradient {
    background: linear-gradient(90deg, #d946ef 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Trust Badges - Glassmorphism Colorful Columns */
.trust-badge {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}
.trust-badge:hover {
    transform: translateY(-5px);
}
.trust-badge .icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.trust-badge .icon-box i {
    font-size: 1.5rem;
    color: white;
}
.trust-badge strong {
    color: white;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.trust-badge span {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    display: block;
}

/* Distinct Colors */
.badge-blue:hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
.badge-blue .icon-box { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.badge-purple:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2); }
.badge-purple .icon-box { background: linear-gradient(135deg, #a855f7, #7e22ce); }

.badge-orange:hover { border-color: rgba(249, 115, 22, 0.5); box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2); }
.badge-orange .icon-box { background: linear-gradient(135deg, #f97316, #ea580c); }

/* Search Box Floating */
.search-box {
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    display: flex;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    align-items: center;
    margin-bottom: 30px;
}
.search-field {
    flex: 1;
    padding: 5px 15px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}
.search-field:last-of-type {
    border-right: none;
}
.search-field label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}
.search-field label i {
    margin-right: 8px;
    font-size: 1rem;
}
.search-field select, .search-field input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    background: transparent;
    appearance: none;
}
.search-btn {
    background: linear-gradient(90deg, #9333ea 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    white-space: nowrap;
}
.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Promo & Categories Layout */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

/* Category Grid */
.category-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.category-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}
.category-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 15px;
}
.category-card h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0f172a;
}
.category-card p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* Promo Banner */
.promo-card {
    background: linear-gradient(135deg, #4c1d95 0%, #2563eb 100%);
    border-radius: 16px;
    color: white;
    padding: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promo-badge {
    background-color: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    align-self: flex-start;
}
.promo-badge i {
    color: #fbbf24;
    margin-right: 6px;
}
.promo-card h3 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.promo-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}
.promo-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 2;
}
.promo-features li {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.promo-features li i {
    color: #d8b4fe;
    margin-right: 8px;
    font-size: 1.2rem;
}
.btn-promo {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}
.btn-promo:hover {
    background: white;
    color: #4c1d95;
}

/* App Banner */
.app-banner {
    background: var(--primary-gradient);
    border-radius: 10px;
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

/* WhatsApp Float Button */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .search-btn {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }
    .hero-sejasa h1 {
        font-size: 2rem;
    }
}

/* Tutorial Section Horizontal Modern Styles */
.tutorial-container-new {
    position: relative;
    z-index: 1;
}

.tutorial-dashed-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 0;
    border-top: 2px dashed #cbd5e1;
    z-index: -1;
    transform: translateY(-50%);
}

.tutorial-card-new {
    padding: 35px 25px 35px 20px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tutorial-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

.step-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.arrow-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Colors for Step 1 (Blue) */
.tutorial-card-new.step-1 { background-color: #f4f8ff; border-color: #e6f0fd; }
.tutorial-card-new.step-1 .step-badge { background-color: #2563eb; }
.tutorial-card-new.step-1 .icon-circle { background-color: #2563eb; }
.tutorial-card-new.step-1 .arrow-icon { color: #2563eb; }

/* Colors for Step 2 (Green) */
.tutorial-card-new.step-2 { background-color: #f2fbf5; border-color: #e6f6eb; }
.tutorial-card-new.step-2 .step-badge { background-color: #16a34a; }
.tutorial-card-new.step-2 .icon-circle { background-color: #16a34a; }
.tutorial-card-new.step-2 .arrow-icon { color: #16a34a; }

/* Colors for Step 3 (Purple) */
.tutorial-card-new.step-3 { background-color: #faf5ff; border-color: #f4e8ff; }
.tutorial-card-new.step-3 .step-badge { background-color: #7c3aed; }
.tutorial-card-new.step-3 .icon-circle { background-color: #7c3aed; }
.tutorial-card-new.step-3 .arrow-icon { color: #7c3aed; }

/* ============================================
   Form Styles (layanan.php, keluhan.php)
   ============================================ */
.custom-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9 !important;
}

.custom-form .form-control,
.custom-form .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.custom-form .form-control:focus,
.custom-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.custom-form .form-label {
    font-size: 0.9rem;
    color: #374151;
}

.custom-form .btn-lg {
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.custom-form .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3) !important;
}

/* ============================================
   Footer
   ============================================ */
footer {
    margin-top: auto;
}

/* ============================================
   Section Headers
   ============================================ */
.section-badge {
    display: inline-block;
    background-color: #f0f7ff;
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 576px) {
    .custom-form {
        padding: 1.5rem;
    }

    .hero-sejasa {
        padding: 100px 0 50px 0;
    }

    .promo-card h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Animation utilities
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Card hover effects
   ============================================ */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
