/* ─── SIPADU Public CSS ─────────────────────────────────────── */

/* Variables (override via JS from theme settings) */
:root {
    --color-primary:   #1e40af;
    --color-secondary: #059669;
    --color-accent:    #f59e0b;
    --border-radius:   0.5rem;
    --font-family:     'Plus Jakarta Sans', sans-serif;

    --color-primary-rgb: 30, 64, 175;
    --color-text:      #1e293b;
    --color-muted:     #64748b;
    --color-border:    #e2e8f0;
    --color-bg:        #f8fafc;
    --color-surface:   #ffffff;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl:  0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Bootstrap Overrides ────────────────────────────────────── */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: color-mix(in srgb, var(--color-primary) 85%, black);
    border-color: color-mix(in srgb, var(--color-primary) 85%, black);
}
.btn-outline-primary { color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-primary:hover { background-color: var(--color-primary); color: #fff; }
.text-primary { color: var(--color-primary) !important; }
.bg-primary   { background-color: var(--color-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.required::after { content: ' *'; color: #dc2626; }
.form-control:focus, .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 .25rem rgba(var(--color-primary-rgb),.15); }

/* ── Navbar ─────────────────────────────────────────────────── */
#mainNav {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: .75rem 0;
    transition: all .3s;
}
.navbar-brand { text-decoration: none; color: var(--color-text); }
.navbar-logo-placeholder {
    width: 40px; height: 40px;
    background: var(--color-primary);
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}
.navbar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-size: 1.1rem; font-weight: 800; color: var(--color-primary); letter-spacing: -.5px; }
.brand-sub   { font-size: .7rem; color: var(--color-muted); font-weight: 400; }
.nav-link { font-weight: 500; color: var(--color-muted) !important; transition: color .2s; padding: .5rem .75rem !important; }
.nav-link:hover, .nav-link.active { color: var(--color-primary) !important; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 50%, #1e3a8a 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.slider-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .15; }
.slider-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, var(--color-primary) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 5rem 0; }
.hero-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2);
    padding: .375rem 1rem; border-radius: 2rem; font-size: .85rem; font-weight: 500;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -.5px; margin-bottom: 1.25rem;
}
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btn-primary {
    background: #fff; color: var(--color-primary); font-weight: 700;
    border: none; padding: .875rem 2rem;
    transition: all .2s;
}
.hero-btn-primary:hover { background: var(--color-accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-btn-secondary {
    border: 2px solid rgba(255,255,255,.4); color: #fff; font-weight: 600;
    padding: .875rem 2rem; backdrop-filter: blur(4px);
    background: rgba(255,255,255,.1); transition: all .2s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.7); }
.hero-quick-track .form-control { border-radius: var(--border-radius); border: none; height: 52px; font-size: .95rem; }
.hero-quick-track .btn-light { height: 52px; border-radius: var(--border-radius); }
.hero-stat-card {
    display: flex; align-items: center; gap: .75rem;
    background: rgba(255,255,255,.15); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .75rem; padding: 1rem 1.25rem;
    color: #fff; margin-bottom: .75rem; transition: all .3s;
}
.hero-stat-card:hover { background: rgba(255,255,255,.25); transform: translateX(4px); }
.hero-stat-card i { font-size: 1.75rem; }
.hero-stat-card strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero-stat-card span { font-size: .8rem; opacity: .8; }

/* ── Stats Section ──────────────────────────────────────────── */
.stats-section { background: #fff; padding: 4rem 0; box-shadow: var(--shadow-sm); }
.stat-card { text-align: center; padding: 1.5rem 1rem; transition: transform .2s; }
.stat-card:hover { transform: translateY(-4px); }
.stat-icon {
    width: 64px; height: 64px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 1rem;
}
.stat-icon-blue   { background: #eff6ff; color: #2563eb; }
.stat-icon-green  { background: #f0fdf4; color: #16a34a; }
.stat-icon-orange { background: #fff7ed; color: #ea580c; }
.stat-icon-purple { background: #faf5ff; color: #7c3aed; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--color-text); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--color-muted); margin-top: .35rem; font-weight: 500; }

/* ── How It Works ───────────────────────────────────────────── */
.how-section { padding: 5rem 0; background: var(--color-bg); }
.how-card {
    background: #fff; border-radius: 1rem; padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
    transition: all .3s; height: 100%;
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.how-number {
    font-size: 4rem; font-weight: 900; color: var(--color-primary);
    opacity: .07; position: absolute; top: .5rem; right: 1rem; line-height: 1;
}
.how-icon {
    width: 56px; height: 56px; background: rgba(var(--color-primary-rgb),.1);
    color: var(--color-primary); border-radius: .875rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
}
.how-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.how-desc  { color: var(--color-muted); font-size: .9rem; line-height: 1.6; }

/* ── Categories ─────────────────────────────────────────────── */
.categories-section { padding: 5rem 0; background: #fff; }
.category-card {
    background: var(--color-bg); border-radius: .875rem; padding: 1.25rem 1rem;
    text-align: center; transition: all .3s; border: 1px solid var(--color-border);
    display: block; color: var(--color-text);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.category-icon {
    width: 52px; height: 52px; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto .75rem;
}
.category-name  { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.category-count { font-size: .75rem; color: var(--color-muted); }

/* ── Section Headers ─────────────────────────────────────────── */
.section-tag {
    display: inline-block; background: rgba(var(--color-primary-rgb),.08);
    color: var(--color-primary); font-size: .8rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .85rem; border-radius: 2rem; margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--color-text); letter-spacing: -.4px; }
.section-desc  { color: var(--color-muted); font-size: 1.05rem; max-width: 520px; margin: .5rem auto 0; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 5rem 0; background: var(--color-bg); }
.faq-item { border: 1px solid var(--color-border); border-radius: .75rem !important; margin-bottom: .75rem; overflow: hidden; }
.faq-item .accordion-button { font-weight: 600; background: #fff; }
.faq-item .accordion-button:not(.collapsed) { color: var(--color-primary); background: rgba(var(--color-primary-rgb),.04); box-shadow: none; }
.faq-item .accordion-button:focus { box-shadow: none; }
.faq-answer { color: var(--color-muted); line-height: 1.7; }

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
    padding: 5rem 0; text-align: center; color: #fff;
}
.cta-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-desc  { font-size: 1.1rem; opacity: .85; margin-bottom: 2rem; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
    padding: 4rem 0 3rem; color: #fff;
}
.page-header h1 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.page-header p  { opacity: .8; font-size: 1rem; margin-bottom: 0; }

/* ── Form Cards ──────────────────────────────────────────────── */
.form-section { background: var(--color-bg); }
.form-card {
    background: #fff; border-radius: 1rem; border: 1px solid var(--color-border);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.form-card-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}
.form-card-icon {
    width: 42px; height: 42px; background: rgba(var(--color-primary-rgb),.1);
    color: var(--color-primary); border-radius: .625rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    flex-shrink: 0;
}
.form-card-body { padding: 1.5rem; }
.upload-area {
    border: 2px dashed var(--color-border); border-radius: .75rem;
    padding: 2rem; text-align: center; cursor: pointer;
    transition: all .2s; background: var(--color-bg);
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--color-primary); background: rgba(var(--color-primary-rgb),.03);
}
.file-preview { display: flex; flex-wrap: wrap; gap: .75rem; }
.file-item {
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    width: 90px; font-size: .75rem; color: var(--color-muted); text-align: center;
}
.file-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: .5rem; border: 1px solid var(--color-border); }
.file-icon  { width: 80px; height: 80px; background: var(--color-bg); border-radius: .5rem; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--color-muted); }
.anonymous-toggle { background: rgba(var(--color-primary-rgb),.04); border-radius: .75rem; padding: 1rem 1.25rem; }

/* ── Tracking ────────────────────────────────────────────────── */
.tracking-header { background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.ticket-icon { width: 56px; height: 56px; background: rgba(var(--color-primary-rgb),.1); color: var(--color-primary); border-radius: .75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.ticket-number { font-size: 1.4rem; font-weight: 800; color: var(--color-primary); margin-bottom: .25rem; }
.ticket-title  { color: var(--color-muted); }
.badge-lg { font-size: .8rem; padding: .45rem .9rem; }
.info-card { background: #fff; border-radius: .875rem; padding: 1.25rem; border: 1px solid var(--color-border); }
.info-card-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); padding-bottom: .75rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1rem; }
.info-list dt { font-size: .8rem; color: var(--color-muted); font-weight: 500; margin-top: .75rem; }
.info-list dd { font-weight: 500; margin-bottom: 0; }
.content-card { background: #fff; border-radius: .875rem; padding: 1.5rem; border: 1px solid var(--color-border); }
.content-card-title { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); padding-bottom: .75rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1.25rem; }

/* Progress Tracker */
.progress-tracker { background: #fff; border-radius: .875rem; padding: 1.5rem; border: 1px solid var(--color-border); }
.progress-steps { display: flex; justify-content: space-between; position: relative; }
.progress-steps::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--color-border); z-index: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: .4rem; z-index: 1; flex: 1; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--color-border); color: var(--color-muted); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.step-label { font-size: .65rem; color: var(--color-muted); text-align: center; font-weight: 500; max-width: 60px; line-height: 1.3; }
.progress-step.done .step-dot   { background: var(--color-secondary); color: #fff; }
.progress-step.current .step-dot{ background: var(--color-primary); color: #fff; box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb),.2); }
.progress-step.done .step-label, .progress-step.current .step-label { color: var(--color-text); font-weight: 600; }

/* Timeline */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.timeline-item { display: flex; gap: 1rem; padding-bottom: 1.25rem; position: relative; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: .15rem; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .25rem; }
.timeline-note   { font-size: .875rem; color: var(--color-muted); margin-bottom: .25rem; }

/* Responses */
.response-item   { display: flex; gap: 1rem; padding: 1rem; background: var(--color-bg); border-radius: .75rem; margin-bottom: .75rem; }
.response-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.response-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.response-text   { font-size: .925rem; color: var(--color-text); }

/* Attachments */
.attachment-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.attachment-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 76px; text-decoration: none; color: var(--color-text); }
.attachment-thumb{ width: 72px; height: 72px; object-fit: cover; border-radius: .5rem; border: 1px solid var(--color-border); }
.attachment-file-icon { width: 72px; height: 72px; background: var(--color-bg); border-radius: .5rem; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--color-muted); }
.attachment-name { font-size: .7rem; text-align: center; word-break: break-word; }
.attachment-size { font-size: .65rem; color: var(--color-muted); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #0f172a; color: #94a3b8; padding: 4rem 0 2rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-brand span   { font-size: .85rem; color: #64748b; }
.footer-desc   { font-size: .9rem; line-height: 1.7; }
.footer-heading{ font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #e2e8f0; margin-bottom: .875rem; }
.footer-links  { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #64748b; text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .625rem; align-items: flex-start; margin-bottom: .625rem; font-size: .875rem; }
.footer-contact i { color: var(--color-accent); margin-top: .1rem; flex-shrink: 0; }
.footer-social { display: flex; gap: .5rem; }
.social-link { width: 38px; height: 38px; background: rgba(255,255,255,.06); border-radius: .5rem; display: flex; align-items: center; justify-content: center; color: #94a3b8; text-decoration: none; transition: all .2s; }
.social-link:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; }

/* ── Auth ─────────────────────────────────────────────────────── */
.auth-page { background: linear-gradient(135deg, #eff6ff, #f0fdf4); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-container { width: 100%; max-width: 440px; }
.auth-card { background: #fff; border-radius: 1.25rem; padding: 2.5rem; box-shadow: var(--shadow-xl); border: 1px solid var(--color-border); }
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-logo { width: 68px; height: 68px; background: var(--color-primary); border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; margin: 0 auto 1rem; }
.auth-title    { font-size: 1.75rem; font-weight: 900; color: var(--color-primary); margin-bottom: .25rem; }
.auth-subtitle { font-size: .875rem; color: var(--color-muted); }
.auth-form-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.auth-form-desc  { font-size: .875rem; margin-bottom: 1.5rem; }
.auth-footer-text { text-align: center; font-size: .8rem; color: var(--color-muted); margin-top: 1.25rem; }
.auth-footer-text a { color: var(--color-primary); text-decoration: none; }

/* ── Utilities ───────────────────────────────────────────────── */
.min-vh-80 { min-height: 80vh; }
