/* ============================================================
   LAYANAN PPID — Global CSS
   Digunakan oleh semua halaman di folder Views/layanan/
   Sesuai PRD 7.4: 6 Tata Cara + Form Online + Cek Status
   ============================================================ */

/* ── Hero ── */
.layanan-hero {
    background: linear-gradient(135deg, var(--uhn-blue-dark) 0%, #0d3a70 60%, #1a4f8a 100%);
    padding: 5rem 0 3.5rem;
    margin-top: 65px;
    position: relative;
    overflow: hidden;
}
/* Varian hero per halaman layanan */
.layanan-hero--keberatan   { background: linear-gradient(135deg, #0d2b5e 0%, #0f3872 60%, #1c4d8e 100%); }
.layanan-hero--cek-status  { background: linear-gradient(135deg, #071d42 0%, #0a2d5a 60%, #0f3b6e 100%); }
.layanan-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,199,44,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.layanan-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.layanan-hero .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.layanan-hero .breadcrumb-item a:hover { color: var(--uhn-yellow); }
.layanan-hero .breadcrumb-item.active { color: rgba(255,255,255,.5); }

.layanan-hero-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,199,44,0.15); color: var(--uhn-yellow);
    border: 1px solid rgba(255,199,44,0.3);
    padding: .35rem 1rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; letter-spacing: .05em;
    margin-bottom: 1.2rem;
}
.layanan-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; color: #fff;
    font-family: var(--uhn-serif);
    line-height: 1.2; margin-bottom: 1rem;
}
.text-accent { color: var(--uhn-yellow); }
.layanan-hero-desc {
    color: rgba(255,255,255,.8);
    max-width: 680px; font-size: 1.05rem; margin-bottom: 1.8rem;
}

/* ── Buttons ── */
.btn-layanan-cta {
    display: inline-flex; align-items: center;
    background: var(--uhn-yellow); color: var(--uhn-blue-dark);
    font-weight: 700; padding: .75rem 2rem;
    border-radius: 999px; text-decoration: none;
    transition: all .25s ease; font-size: .95rem;
    box-shadow: 0 4px 20px rgba(255,199,44,.35);
}
.btn-layanan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,199,44,.5);
    color: var(--uhn-blue-dark);
}

.btn-layanan-submit {
    display: inline-flex; align-items: center;
    background: var(--uhn-yellow); color: var(--uhn-blue-dark);
    font-weight: 700; padding: .8rem 2.2rem;
    border-radius: 999px; border: none; cursor: pointer;
    transition: all .25s ease; font-size: .95rem;
    box-shadow: 0 4px 16px rgba(255,199,44,.3);
}
.btn-layanan-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,199,44,.5);
}

/* ── SLA Banner ── */
.sla-banner {
    background: var(--bg-card);
    border: 1px solid rgba(255,199,44,.2);
    border-left: 4px solid var(--uhn-yellow);
    border-radius: 12px; padding: 1.2rem 1.5rem;
    margin-bottom: 3rem; color: var(--text-body);
}
.sla-icon-wrap {
    width: 48px; height: 48px;
    background: rgba(255,199,44,.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--uhn-yellow); font-size: 1.3rem; flex-shrink: 0;
}

/* ── Section Heading ── */
.section-heading {
    font-size: 1.4rem; font-weight: 700;
    color: var(--text-heading); font-family: var(--uhn-serif);
    margin-bottom: 1.8rem;
    display: flex; align-items: center; gap: .75rem;
}
.section-heading-num {
    font-size: .75rem; font-weight: 800; letter-spacing: .08em;
    color: var(--uhn-yellow); background: rgba(255,199,44,.12);
    padding: .25rem .6rem; border-radius: 6px; flex-shrink: 0;
}

/* ── Flow Steps ── */
.flow-steps { display: flex; flex-direction: column; gap: .75rem; }
.flow-step {
    display: flex; gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: border-color .2s, transform .2s;
    position: relative;
}
.flow-step:hover { border-color: rgba(255,199,44,.4); transform: translateX(4px); }
.flow-step-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--uhn-yellow), #f5a623);
    color: var(--uhn-blue-dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .95rem;
}
.flow-step-body h5 { color: var(--text-heading); margin-bottom: .35rem; font-size: 1rem; font-weight: 600; }
.flow-step-body p { color: var(--text-body); margin: 0; font-size: .93rem; line-height: 1.65; }
.link-accent { color: var(--uhn-yellow); text-decoration: none; }
.link-accent:hover { color: var(--uhn-yellow); text-decoration: underline; }

/* ── Requirement Cards ── */
.req-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: 12px; padding: 1.2rem;
    color: var(--text-body); height: 100%;
    transition: border-color .2s;
}
.req-card:hover { border-color: rgba(255,199,44,.3); }
.req-card-icon {
    flex-shrink: 0; width: 42px; height: 42px;
    background: rgba(255,199,44,.15); color: var(--uhn-yellow);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.req-card strong { color: var(--text-heading); font-size: .95rem; }
.req-card p { font-size: .88rem; color: var(--text-muted); }

/* ── Layanan Nav Strip ── */
.layanan-nav-strip {
    display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
    padding: 1rem 1.4rem; background: var(--bg-card);
    border: 1px solid var(--border-soft); border-radius: 12px;
}
.layanan-nav-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-right: .4rem; flex-shrink: 0; }
.layanan-nav-strip a {
    font-size: .84rem; font-weight: 500;
    color: var(--text-body); text-decoration: none;
    background: var(--bg-section); border: 1px solid var(--border-soft);
    padding: .3rem .9rem; border-radius: 999px;
    transition: all .2s;
}
.layanan-nav-strip a:hover { background: rgba(255,199,44,.15); border-color: rgba(255,199,44,.4); color: var(--uhn-yellow); }

/* ── Form Section ── */
.layanan-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px; overflow: hidden;
}
.layanan-form-header {
    background: linear-gradient(135deg, var(--uhn-blue-dark), #0d3a70);
    padding: 2rem 2.5rem; display: flex; gap: 1.2rem; align-items: flex-start; color: #fff;
}
.layanan-form-header-icon {
    flex-shrink: 0; width: 52px; height: 52px;
    background: rgba(255,199,44,.2); color: var(--uhn-yellow);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.layanan-form-header h2 { font-size: 1.3rem; font-weight: 700; font-family: var(--uhn-serif); }
.layanan-form-body { padding: 2.5rem; }

.layanan-input {
    background: var(--bg-section) !important;
    border-color: var(--border-soft) !important;
    color: var(--text-body) !important;
    border-radius: 10px !important;
    padding: .7rem 1rem !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.layanan-input:focus {
    border-color: var(--uhn-yellow) !important;
    box-shadow: 0 0 0 3px rgba(255,199,44,.15) !important;
    outline: none !important;
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--text-heading); margin-bottom: .5rem; }

/* ── Content Area ── */
.layanan-content { padding-top: 3rem; padding-bottom: 3rem; }

/* ── CTA Banner Bottom ── */
.cta-banner-bottom {
    background: var(--bg-card);
    border: 1px solid rgba(255,199,44,.25);
    border-left: 4px solid var(--uhn-yellow);
    border-radius: 12px;
    padding: 1.8rem 2rem;
}

/* ── SOP Cards ── */
.sop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 14px; padding: 1.8rem;
    height: 100%; display: flex; flex-direction: column; gap: .6rem;
    transition: border-color .2s, transform .2s;
}
.sop-card:hover { border-color: rgba(255,199,44,.4); transform: translateY(-3px); }
.sop-card-icon {
    width: 48px; height: 48px;
    background: rgba(255,199,44,.15); color: var(--uhn-yellow);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: .4rem;
}
.sop-card h5 { color: var(--text-heading); font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.sop-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; flex: 1; }
.sop-link { font-size: .85rem; font-weight: 600; color: var(--uhn-yellow); text-decoration: none; }
.sop-link:hover { text-decoration: underline; }
.sop-badge-coming {
    display: inline-block;
    background: rgba(255,199,44,.12); color: var(--uhn-yellow);
    border: 1px dashed rgba(255,199,44,.4);
    border-radius: 999px; font-size: .78rem; font-weight: 600;
    padding: .3rem .9rem;
}

/* ── SLA Table ── */
.sla-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-soft);
}
.sla-table thead { background: rgba(255,199,44,.1); }
.sla-table thead th {
    padding: 1rem 1.2rem; text-align: left;
    font-size: .82rem; font-weight: 700; letter-spacing: .05em;
    color: var(--text-heading); text-transform: uppercase;
    border-bottom: 1px solid var(--border-soft);
}
.sla-table tbody td {
    padding: 1rem 1.2rem; font-size: .9rem;
    color: var(--text-body); vertical-align: middle;
    border-bottom: 1px solid var(--border-soft);
}
.sla-table tbody tr:last-child td { border-bottom: none; }
.sla-table tbody tr:hover { background: rgba(255,255,255,.03); }

/* ── Cek Status Search ── */
.layanan-hero--cek-status {
    background: linear-gradient(135deg, #071d42 0%, #0a2d5a 60%, #0f3b6e 100%);
}
.cek-status-search-wrap {
    max-width: 680px; margin: 0 auto 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px; padding: 2.5rem 2rem;
}
.cek-status-input-group { gap: 0; }
.cek-status-input-icon {
    background: rgba(255,199,44,.12);
    border-color: var(--border-soft) !important;
    border-right: none !important;
    color: var(--uhn-yellow);
    border-radius: 12px 0 0 12px !important;
    padding: 0 1rem;
    font-size: 1.1rem;
}
.cek-status-input {
    background: var(--bg-section) !important;
    border-color: var(--border-soft) !important;
    color: var(--text-body) !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 1rem; letter-spacing: .05em;
    padding: .8rem 1rem !important;
}
.cek-status-input:focus {
    box-shadow: none !important;
    border-color: var(--uhn-yellow) !important;
    z-index: 0 !important;
}
.btn-cek-status-search {
    background: var(--uhn-yellow); color: var(--uhn-blue-dark);
    border: none; font-weight: 700; padding: .8rem 1.6rem;
    border-radius: 0 12px 12px 0; cursor: pointer;
    transition: background .2s; white-space: nowrap;
}
.btn-cek-status-search:hover { background: #ffd44a; }
.cek-status-hints {
    display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
    margin-top: 1rem;
}
.cek-status-hints span {
    font-size: .78rem; color: var(--text-muted);
    background: var(--bg-section); border: 1px solid var(--border-soft);
    border-radius: 999px; padding: .2rem .8rem;
}

/* ── Cek Status Result ── */
.cek-status-result--error {
    text-align: center; padding: 4rem 2rem;
    background: var(--bg-card); border-radius: 16px;
    border: 1px solid var(--border-soft);
}
.result-error-icon { font-size: 3.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.cek-status-result {
    max-width: 780px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px; overflow: hidden;
}
.ticket-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding: 1.8rem 2rem; background: var(--uhn-blue-dark);
}
.ticket-header-left { display: flex; align-items: center; gap: 1.2rem; }
.ticket-icon {
    width: 52px; height: 52px;
    background: rgba(255,199,44,.15); color: var(--uhn-yellow);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.ticket-no { font-size: 1.2rem; font-weight: 800; color: #fff; font-family: monospace; letter-spacing: .05em; }
.ticket-jenis { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.ticket-status-badge { font-size: .85rem; padding: .5rem 1.2rem; border-radius: 999px; }
.ticket-details { padding: 1.5rem 2rem 0; display: flex; flex-direction: column; gap: .8rem; }
.ticket-detail-row {
    display: flex; align-items: flex-start; gap: 1rem;
    padding-bottom: .8rem; border-bottom: 1px solid var(--border-soft);
}
.ticket-detail-row:last-child { border-bottom: none; }
.ticket-detail-label {
    flex-shrink: 0; width: 170px; font-size: .83rem;
    font-weight: 600; color: var(--text-muted);
}
.ticket-detail-val { font-size: .9rem; color: var(--text-body); }
.ticket-isi {
    margin: 0 2rem 1.5rem;
    background: var(--bg-section);
    border: 1px solid var(--border-soft);
    border-radius: 10px; padding: 1rem 1.2rem;
}
.ticket-isi-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); margin-bottom: .6rem; }
.ticket-isi-content { font-size: .9rem; color: var(--text-body); line-height: 1.7; }
.ticket-timeline { padding: 0 2rem 1.5rem; }
.ticket-timeline-title {
    font-size: .95rem; font-weight: 700; color: var(--text-heading);
    margin-bottom: 1.2rem; padding-bottom: .6rem;
    border-bottom: 1px solid var(--border-soft);
}
.timeline-items { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
    display: flex; gap: 1rem; position: relative;
    padding-bottom: 1.4rem;
}
.timeline-item::before {
    content: '';
    position: absolute; left: 15px; top: 32px; bottom: 0;
    width: 2px; background: var(--border-soft);
}
.timeline-item:last-child::before { display: none; }
.timeline-item--active .timeline-dot { background: var(--uhn-yellow); color: var(--uhn-blue-dark); border-color: var(--uhn-yellow); }
.timeline-dot {
    flex-shrink: 0; width: 32px; height: 32px;
    background: var(--bg-section); color: var(--text-muted);
    border: 2px solid var(--border-soft);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; z-index: 1;
}
.timeline-body { flex: 1; }
.timeline-status { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .4rem; }
.timeline-date { font-size: .78rem; color: var(--text-muted); }
.timeline-keterangan { font-size: .87rem; color: var(--text-body); margin: 0; line-height: 1.6; }
.ticket-footer-cta {
    display: flex; gap: .8rem; flex-wrap: wrap;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-soft);
}

/* ── Intro Cards (Cek Status) ── */
.intro-card {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: 14px; padding: 1.8rem 1.5rem; height: 100%;
    display: flex; flex-direction: column; gap: .5rem;
    transition: border-color .2s, transform .2s;
    position: relative; overflow: hidden;
}
.intro-card:hover { border-color: rgba(255,199,44,.4); transform: translateY(-3px); }
.intro-card-num {
    position: absolute; top: 1rem; right: 1.2rem;
    font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,.04);
    font-family: var(--uhn-serif);
}
.intro-card-icon { font-size: 1.6rem; color: var(--uhn-yellow); }
.intro-card h6 { color: var(--text-heading); font-weight: 700; margin: 0; }
.intro-card p { font-size: .85rem; color: var(--text-muted); margin: 0; flex: 1; line-height: 1.6; }
.intro-card a { font-size: .83rem; font-weight: 600; color: var(--uhn-yellow); text-decoration: none; }
.intro-card a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .layanan-hero { padding: 3.5rem 0 2.5rem; }
    .layanan-form-header { padding: 1.5rem; }
    .layanan-form-body { padding: 1.5rem; }
    .flow-step { padding: 1rem 1.2rem; }
    .cek-status-search-wrap { padding: 1.5rem 1.2rem; }
    .ticket-header { padding: 1.2rem; }
    .ticket-detail-label { width: 130px; }
    .ticket-details, .ticket-timeline, .ticket-footer-cta { padding-left: 1.2rem; padding-right: 1.2rem; }
    .ticket-isi { margin-left: 1.2rem; margin-right: 1.2rem; }
    .btn-cek-status-search { padding: .8rem 1rem; font-size: .85rem; }
}
