/* ==========================================================================
   SIRINDU DPU KABUPATEN BOGOR — Frontend Sub-Pages Styling
   Global stylesheet for Bantuan, Kebijakan Privasi, Syarat Ketentuan, 
   Pelacakan, & Retribusi views.
   ========================================================================== */

*, ::before, ::after {
    box-sizing: border-box;
    overflow-wrap: break-word;
}

html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* ============================ HELP & BANTUAN PAGE ============================ */
.help-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 5rem 0 4rem 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.help-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}
.help-title {
    font-weight: 800;
    font-size: 2.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.help-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}
.search-container {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.search-box {
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 1.1rem 1.75rem 1.1rem 3.5rem;
    font-size: 1.05rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    color: #1e293b;
}
.search-box:focus {
    outline: none;
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.25);
}
.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
}
.help-body {
    padding: 4rem 0;
    background-color: #f8fafc;
}
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.category-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.category-tab:hover, .category-tab.active {
    background: #1e3c72;
    color: #ffffff;
    border-color: #1e3c72;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.15);
}
.faq-accordion .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.2s ease;
}
.faq-accordion .accordion-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: #1e293b;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    font-size: 1.05rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: #1e3c72;
    background-color: #f8fafc;
    box-shadow: none;
    border-bottom: 1px solid #e2e8f0;
}
.faq-accordion .accordion-button::after {
    background-size: 1rem;
}
.faq-accordion .accordion-body {
    padding: 1.5rem;
    color: #475569;
    line-height: 1.75;
    font-size: 0.975rem;
    background: #ffffff;
}
.support-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}
.support-card {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    background: #f8fafc;
}
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border-color: #e2e8f0;
}
.support-icon {
    font-size: 2.25rem;
    color: #f59e0b;
    margin-bottom: 1.25rem;
}
.support-card h5 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.support-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}
.btn-support:hover {
    color: #f59e0b;
    transform: translateX(4px);
}
.highlight-match {
    background-color: #fef08a;
}

/* ============================ INFORMATION / POLICY / TERMS PAGES ============================ */
.info-page-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 5rem 0 3rem 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.info-page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.info-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}
.info-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.info-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}
.info-title {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #e0e6ed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.info-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.6;
}
.info-content-sec {
    padding: 4rem 0;
    background-color: #f8fafc;
}
.info-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.info-section-title {
    color: #1e3c72;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.info-section-title:first-of-type {
    margin-top: 0;
}
.info-section-title i.emerald {
    color: #10b981;
}
.info-section-title i.amber {
    color: #f59e0b;
}
.info-card p, .info-card ul {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}
.info-card li {
    margin-bottom: 0.5rem;
}
.sticky-toc {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.toc-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 1rem;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 0.75rem;
}
.toc-list a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.925rem;
    display: block;
    transition: all 0.2s ease;
}
.toc-list a:hover {
    color: #1e3c72;
    transform: translateX(3px);
}
.badge-uu {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.badge-uu.amber {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* ============================ STATUS RETRIBUSI & TRACKING ============================ */
.status-hero {
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #d9f3e6 0%, #effbf4 55%, #ffffff 100%);
}
.status-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(6, 75, 56, .10);
    overflow: hidden;
    margin-bottom: 24px;
}
.status-card .card-header {
    background: linear-gradient(135deg, #086042, #0c7a52);
    color: #ffffff;
    border: 0;
    padding: 20px 26px;
}
.status-card .card-body {
    padding: 26px;
}
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}
.badge-selesai { background: #dff7e9; color: #28c76f; }
.badge-proses { background: #fff1de; color: #d97706; }
.badge-tolak { background: #fce4e4; color: #c53030; }
.badge-info { background: #dff1ff; color: #2563eb; }

.status-step-wrap {
    display: flex;
    gap: 14px;
    padding: 14px 0;
}

.step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed #e4ece8;
}
.step:last-child {
    border-bottom: 0;
}
.step-ico {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: #f0f0f2;
    color: #a5a3ae;
}
.step.done .step-ico {
    background: #dff7e9;
    color: #28c76f;
}
.step.current .step-ico {
    background: #fff1de;
    color: #d97706;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .4); }
    50% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
}

.step-body h6 {
    margin: 0;
    font-weight: 600;
    color: #10231f;
    font-size: 15px;
}
.step-body small {
    color: #697b76;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e4ece8;
}
.info-row:last-child {
    border: 0;
}
.info-row .lbl {
    color: #697b76;
    font-size: 13px;
}
.info-row .val {
    font-weight: 600;
    color: #10231f;
    text-align: right;
}

@media (max-width: 576px) {
    .status-hero { padding: 20px 0; }
    .status-card .card-body { padding: 16px; }
    .status-card .card-header { padding: 14px 18px; }
    .info-row { flex-direction: column; gap: 4px; }
    .info-row .val { text-align: left; word-break: break-word; }
    .step { gap: 10px; padding: 10px 0; }
    .step-ico { width: 36px; height: 36px; font-size: 16px; }
    .step-body h6 { font-size: 13px; }
}

.doc-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #effbf4;
    border: 1px solid #d9f3e6;
    border-radius: 12px;
    color: #086042;
    transition: all .15s ease;
}
.doc-btn:hover {
    background: #d9f3e6;
    color: #064b38;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(6, 75, 56, .15);
}
.doc-btn .ico { font-size: 24px; }
.doc-btn .ttl { font-weight: 600; }
.doc-btn small { color: #697b76; }

/* Responsive Adjustments for Sub-Pages (< 1080px to < 400px) */
@media (max-width: 1080px) {
    .help-title { font-size: 2.3rem; }
    .info-title { font-size: 2.1rem; }
    .info-card { padding: 2rem; }
}

@media (max-width: 768px) {
    .help-hero { padding: 3.5rem 0 2.5rem; }
    .help-title { font-size: 1.85rem; }
    .help-subtitle { font-size: 1rem; }
    .search-box { padding: 0.9rem 1.25rem 0.9rem 3rem; font-size: 0.95rem; }
    .info-page-hero { padding: 3.5rem 0 2rem; }
    .info-title { font-size: 1.75rem; }
    .info-card { padding: 1.5rem; border-radius: 14px; }
    .info-section-title { font-size: 1.25rem; }
    .sticky-toc { position: static; margin-bottom: 2rem; }
    .support-section { padding: 2rem 1.25rem; border-radius: 16px; }
}

@media (max-width: 400px) {
    .help-hero { padding: 2.5rem 0.75rem 2rem; }
    .help-title { font-size: 1.4rem; }
    .help-subtitle { font-size: 0.88rem; }
    .category-tab { padding: 0.5rem 1rem; font-size: 0.82rem; }
    .info-title { font-size: 1.35rem; }
    .info-card { padding: 1.1rem 0.85rem; border-radius: 12px; }
    .info-section-title { font-size: 1.1rem; margin-top: 1.25rem; }
    .info-card p, .info-card ul { font-size: 0.88rem; line-height: 1.6; }
    .support-card { padding: 1.25rem 0.85rem; }
    .doc-btn { padding: 10px 12px; gap: 8px; }
}

@media (max-width: 360px) {
    .help-title { font-size: 1.25rem; }
    .info-title { font-size: 1.2rem; }
}
