/* ==========================================================
   SIKLINIK V2 - PENGAJUAN AKUN PUBLIK
   ========================================================== */

:root {
    --pa-primary: #087f77;
    --pa-primary-dark: #05685f;
    --pa-dark: #123f4c;
    --pa-text: #263b45;
    --pa-muted: #6f8590;
    --pa-border: #e0e9ed;
    --pa-bg: #f3f7f8;
}

* {
    box-sizing: border-box;
}

body.sk-public-body {
    margin: 0;
    min-height: 100vh;
    background: var(--pa-bg);
    color: var(--pa-text);
    display: flex;
    flex-direction: column;
}

.sk-public-main {
    flex: 1;
}

/* HEADER */

/* =====================================================
   HEADER PUBLIK SIKLINIK V2 - LIGHT MODE
===================================================== */
.pa-header {
    background: #ffffff;
    border-bottom: 1px solid #e2eaed;
    box-shadow: 0 3px 18px rgba(25, 65, 75, .04);
    position: relative;
    z-index: 20;
}

.pa-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #087f77, #39baae, #d6f4ed);
}

.pa-header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
}

/* BRAND */
.pa-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #123f4c;
    text-decoration: none;
    min-width: 0;
}

.pa-brand:hover { color: #123f4c; }

.pa-brand-logo {
    width: 56px;
    height: 62px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #f6faf9;
    border: 1px solid #e4efec;
    border-radius: 11px;
}

.pa-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pa-brand-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pa-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #123f4c;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .3px;
}

.pa-brand-v2 {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    background: #e1f5f1;
    color: #087f77;
    border: 1px solid #c8eae4;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.pa-brand-subtitle {
    color: #315a64;
    font-size: 12px;
    font-weight: 600;
}

.pa-brand-instansi {
    color: #7b919a;
    font-size: 11px;
}

/* NAVIGASI */
.pa-header-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px;
    background: #f4f8f9;
    border: 1px solid #e4ecee;
    border-radius: 11px;
    flex-shrink: 0;
}

.pa-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    color: #526c75;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.pa-nav-link i { font-size: 15px; }

.pa-nav-link:hover {
    background: #e5f2f0;
    color: #087f77;
}

.pa-nav-link.active {
    background: #087f77;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(8, 127, 119, .17);
}

.pa-nav-link.active:hover {
    background: #066d66;
    color: #ffffff;
}

.pa-nav-link:focus-visible {
    outline: 3px solid #39baae;
    outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
    .pa-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 13px 0;
    }

    .pa-brand-logo {
        width: 48px;
        height: 53px;
        flex-basis: 48px;
    }

    .pa-brand-title { font-size: 19px; }
    .pa-brand-subtitle { font-size: 11px; }
    .pa-brand-instansi { font-size: 10px; }

    .pa-header-nav { width: 100%; }

    .pa-nav-link {
        flex: 1;
        padding: 10px 8px;
        font-size: 11px;
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .pa-brand-title { font-size: 17px; }
    .pa-nav-link { font-size: 10px; }
}

/* CONTAINER */

.pa-container {
    max-width: 960px;
    margin: 32px auto 45px;
}

.pa-card {
    background: #fff;
    border: 1px solid var(--pa-border);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(20, 65, 75, .05);
    overflow: hidden;
}

.pa-heading {
    padding: 25px 28px;
    border-bottom: 1px solid var(--pa-border);
}

.pa-heading h1 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--pa-dark);
}

.pa-heading p {
    margin: 0;
    color: var(--pa-muted);
    font-size: 13px;
    line-height: 1.7;
}

.pa-body {
    padding: 25px 28px;
}

/* WIZARD PROGRESS */

.pa-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 27px;
}

.pa-progress-item {
    min-width: 0;
}

.pa-progress-track {
    background: #e5edef;
    height: 7px;
    border-radius: 20px;
    margin-bottom: 8px;
    transition: background .2s ease;
}

.pa-progress-item.active .pa-progress-track,
.pa-progress-item.done .pa-progress-track {
    background: var(--pa-primary);
}

.pa-progress-item span {
    display: block;
    font-size: 11px;
    color: #758b94;
}

.pa-progress-item.active span {
    font-weight: bold;
    color: var(--pa-primary);
}

.pa-progress-item.done span {
    color: #35796f;
}

/* STEP */

.pa-step {
    display: none;
}

.pa-step.active {
    display: block;
    animation: paFade .2s ease-out;
}

@keyframes paFade {
    from {
        opacity: .3;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pa-step-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--pa-dark);
}

.pa-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pa-primary);
    border-bottom: 1px solid var(--pa-border);
    padding-bottom: 9px;
    margin: 22px 0 16px;
}

/* FORM */

.pa-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.pa-required {
    color: #d32f2f;
}

.pa-card .form-control,
.pa-card .form-select {
    font-size: 13px;
    border-color: #d6e2e7;
    min-height: 40px;
    border-radius: 8px;
}

.pa-card textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.pa-card .form-control:focus,
.pa-card .form-select:focus {
    border-color: #11988e;
    box-shadow: 0 0 0 .18rem rgba(17, 152, 142, .12);
}

.pa-card .form-control[readonly] {
    background: #f1f6f7;
    color: #59717a;
}

.pa-help {
    color: var(--pa-muted);
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.6;
}

.pa-box {
    background: #f5f9fa;
    border: 1px solid #e2edef;
    border-radius: 11px;
    padding: 17px;
}

.pa-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pa-card .form-check-input:checked {
    background-color: var(--pa-primary);
    border-color: var(--pa-primary);
}

.pa-card .form-check-label {
    cursor: pointer;
}

/* SELECT2 */

.pa-card .select2-container {
    width: 100% !important;
}

.pa-card .select2-container--bootstrap-5
.select2-selection {
    border-color: #d6e2e7;
    border-radius: 8px;
    min-height: 40px;
    font-size: 13px;
}

.pa-card .select2-container--bootstrap-5
.select2-selection--single
.select2-selection__rendered {
    font-size: 13px;
}

.pa-card .select2-container--bootstrap-5.select2-container--focus
.select2-selection {
    border-color: #11988e;
    box-shadow: 0 0 0 .18rem rgba(17, 152, 142, .12);
}

/* ACTIONS */

.pa-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    margin-top: 25px;
    border-top: 1px solid var(--pa-border);
}

.pa-btn {
    background: var(--pa-primary);
    border: 1px solid var(--pa-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
}

.pa-btn:hover,
.pa-btn:focus {
    background: var(--pa-primary-dark);
    border-color: var(--pa-primary-dark);
    color: #fff;
}

.pa-btn:disabled {
    opacity: .65;
}

/* ALERT */

#paAlert {
    font-size: 13px;
    line-height: 1.6;
}

/* SUCCESS / TIKET */

.pa-success {
    display: none;
    padding: 40px 28px;
    text-align: center;
}

.pa-success-icon {
    font-size: 55px;
    color: #168c64;
}

.pa-ticket {
    border: 1px dashed #85b9b1;
    background: #eef8f6;
    padding: 23px;
    border-radius: 13px;
    text-align: center;
    margin: 20px 0;
}

.pa-ticket-value {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #075f59;
    overflow-wrap: anywhere;
}

/* HONEYPOT */

.pa-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* FOOTER */

.sk-public-footer {
    padding: 20px 0;
    border-top: 1px solid var(--pa-border);
    background: #fff;
    color: #81939b;
    font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .pa-container {
        margin: 20px auto 35px;
    }

    .pa-heading,
    .pa-body {
        padding: 20px;
    }

    .pa-heading h1 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .pa-header {
        padding: 14px 0;
    }

    .pa-brand img {
        width: 43px;
        height: 50px;
    }

    .pa-brand strong {
        font-size: 17px;
    }

    .pa-brand small {
        font-size: 10px;
    }

    .pa-container {
        margin: 16px auto 30px;
    }

    .pa-heading,
    .pa-body {
        padding: 20px 16px;
    }

    .pa-progress-item span {
        font-size: 9px;
    }

    .pa-services {
        grid-template-columns: 1fr;
    }

    .pa-actions .btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .pa-ticket-value {
        font-size: 18px;
    }

    .pa-success {
        padding: 30px 16px;
    }
}