:root {
        --p: #0e7490;
        --ps: #155e75;
        --soft: #e6f4f7;
        --bd: #e2e8f0;
        --tx: #1e293b;
        --hd: #0f172a;
        --mut: #64748b;
        --rad: 16px;
        --rads: 10px;
    }

    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        min-height: 100vh;
        color: var(--tx);
        font-size: 15px;
        line-height: 1.5;
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        background: linear-gradient(rgba(15, 23, 42, .62), rgba(15, 23, 42, .74)), url('/image/background.jpg') center center / cover no-repeat fixed, #0f172a;
    }

    @media(max-width:820px) {
        body {
            background-attachment: scroll;
        }
    }

    .wrap {
        max-width: 1060px;
        margin: 0 auto;
        padding: 2.5rem 1rem 3rem;
    }

    .shell {
        display: flex;
        background: #fff;
        border: 1px solid var(--bd);
        border-radius:var(--radius-card-primary,16px);
        box-shadow: 0 18px 50px rgba(15, 23, 42, .13);
        overflow: hidden;
    }

    .side {
        flex: 0 0 38%;
        max-width: 38%;
        color: #fff;
        padding: 2.2rem 1.9rem;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: #134e4a;
    }

    .side::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: 440px 240px at 120% -10%;
    }

    .side>* {
        position: relative;
        z-index: 1;
    }

    .side .logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 58px;
        padding: .5rem .85rem;
        background: #fff;
        border-radius:var(--radius-card-primary,16px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .20);
    }

    .side .logo img {
        height: 40px;
        width: auto;
        max-width: 180px;
        display: block;
        object-fit: contain;
    }

    .side h1 {
        font-size: 1.55rem;
        font-weight: 800;
        margin: 1rem 0 0;
        letter-spacing: -.02em;
        line-height: 1.18;
    }

    .side .sub {
        margin: .5rem 0 0;
        font-size: .85rem;
        color: rgba(255, 255, 255, .82);
        line-height: 1.5;
    }

    .feats {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: .95rem;
    }

    .feats li {
        display: flex;
        gap: .75rem;
        align-items: flex-start;
        font-size: .85rem;
        color: rgba(255, 255, 255, .94);
        line-height: 1.45;
    }

    .feats li i {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .15);
        border-radius:var(--radius-control,8px);
        font-size: .82rem;
    }

    .side-foot {
        margin-top: auto;
        font-size: .78rem;
        color: rgba(255, 255, 255, .85);
        display: flex;
        gap: .65rem;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, .2);
        padding-top: 1.1rem;
        text-decoration: none;
        transition: opacity .15s;
    }

    .side-foot.wa:hover {
        opacity: .85;
    }

    .side-foot .fa-whatsapp {
        color: #25d366;
        font-size: 1.55rem;
        flex: 0 0 auto;
    }

    .side-foot strong {
        color: #fff;
    }

    .help-line {
        text-align: center;
        margin-top: 1.1rem;
        font-size: .82rem;
        color: var(--mut);
    }

    .help-line a {
        color: #16a34a;
        font-weight: 700;
        text-decoration: none;
    }

    .help-line a:hover {
        text-decoration: underline;
    }

    .ac-wrap {
        position: relative;
    }

    .ac-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 30;
        background: #fff;
        border: 1px solid var(--bd);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
        max-height: 230px;
        overflow: auto;
        display: none;
    }

    .ac-list.show {
        display: block;
    }

    .ac-item {
        padding: .55rem .85rem;
        font-size: .86rem;
        cursor: pointer;
        border-bottom: 1px solid #f1f5f9;
    }

    .ac-item:last-child {
        border-bottom: none;
    }

    .ac-item:hover,
    .ac-item.active {
        background: var(--soft);
        color: var(--ps);
    }

    .ac-item small {
        color: #94a3b8;
    }

    .main {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .main-head {
        padding: 1.6rem 1.7rem .2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .6rem;
    }

    .main-head h2 {
        font-size: 1.18rem;
        font-weight: 800;
        color: var(--hd);
        margin: 0;
        letter-spacing: -.01em;
    }

    .main-head .trust {
        font-size: .72rem;
        font-weight: 600;
        color: #15803d;
        background: #dcfce7;
        padding: 5px 11px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        white-space: nowrap;
    }

    .bd {
        padding: 1.4rem 1.7rem 1.8rem;
    }

    @media(max-width:820px) {
        .wrap {
            padding: 1.1rem .8rem 2rem;
        }

        .shell {
            flex-direction: column;
            border-radius:var(--radius-card-primary,16px);
        }

        .side,
        .main {
            flex: none;
            max-width: 100%;
        }

        .side {
            padding: 1.6rem 1.5rem;
            gap: 1.1rem;
        }

        .side h1 {
            font-size: 1.35rem;
        }

        .side-foot {
            display: none;
        }
    }

    .section {
        margin: 0 0 1.5rem;
    }

    .section .stitle {
        font-size: .74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--p);
        margin: 0 0 1rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        padding-bottom: .55rem;
        border-bottom: 1px solid #eef2f6;
    }

    label {
        display: block;
        font-weight: 600;
        font-size: .84rem;
        color: var(--hd);
        margin: 0 0 .35rem;
    }

    label .req {
        color: #dc2626;
    }

    .ig {
        position: relative;
        display: flex;
        align-items: center;
    }

    .ig>i {
        position: absolute;
        left: .9rem;
        color: #94a3b8;
        font-size: .9rem;
        pointer-events: none;
    }

    .ig>.ctrl {
        padding-left: 2.4rem;
    }

    .ctrl {
        width: 100%;
        border: 1px solid var(--bd);
        border-radius: var(--rads);
        padding: .66rem .85rem;
        font-size: .92rem;
        font-family: inherit;
        color: var(--tx);
        background: #fff;
        transition: border-color .15s, box-shadow .15s;
    }

    .ctrl::placeholder {
        color: #aab4c0;
    }

    .ctrl:focus {
        outline: none;
        border-color: #93c5fd;
        box-shadow: 0 0 0 3px rgba(14, 116, 144, .13);
    }

    textarea.ctrl {
        resize: vertical;
        min-height: 78px;
    }

    .grid2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    @media(max-width:560px) {
        .grid2 {
            grid-template-columns: 1fr;
        }
    }

    .fld {
        margin-bottom: 1.05rem;
    }

    .hint {
        font-size: .78rem;
        color: var(--mut);
        margin-top: .3rem;
    }

    .petugas-row {
        display: grid;
        grid-template-columns: 1.5fr 1.1fr 1.1fr 40px;
        gap: .5rem;
        margin-bottom: .6rem;
        align-items: center;
    }

    @media(max-width:620px) {
        .petugas-row {
            grid-template-columns: 1fr;
            gap: .5rem;
            padding: .75rem;
            border: 1px dashed #e2e8f0;
            border-radius:var(--radius-card-secondary,10px);
            background: #fafbfc;
            margin-bottom: .75rem;
        }

        .petugas-row .btn-rm {
            width: 100%;
            height: 40px;
        }
    }

    .btn-rm {
        flex: 0 0 auto;
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #dc2626;
        width: 40px;
        height: 40px;
        border-radius: var(--rads);
        cursor: pointer;
        transition: background .15s;
    }

    .btn-rm:hover {
        background: #fee2e2;
    }

    .btn-add {
        border: 1px dashed #bfdbfe;
        background: var(--soft);
        color: var(--ps);
        padding: .55rem 1rem;
        border-radius: var(--rads);
        font-weight: 600;
        font-size: .84rem;
        cursor: pointer;
        transition: background .15s;
    }

    .btn-add:hover {
        background: #cdeaf2;
    }

    .agree {
        display: flex;
        gap: .65rem;
        align-items: flex-start;
        background: #f8fafc;
        border: 1px solid var(--bd);
        border-radius: var(--rads);
        padding: .9rem 1rem;
    }

    .agree input {
        margin-top: .15rem;
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        accent-color: var(--p);
    }

    .agree label {
        margin: 0;
        font-weight: 500;
        font-size: .84rem;
        color: #334155;
    }

    .captcha-box {
        display: flex;
        align-items: center;
        gap: .7rem;
    }

    .captcha-q {
        background: #0f172a;
        color: #fff;
        font-weight: 700;
        padding: .62rem 1rem;
        border-radius: var(--rads);
        font-size: 1.05rem;
        letter-spacing: .08em;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .captcha-box .ctrl {
        max-width: 140px;
    }

    .hp {
        position: absolute;
        left: -9999px;
        top: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .submit {
        width: 100%;
        border: none;
        color: #fff;
        font-weight: 700;
        font-size: 1.02rem;
        padding: .95rem;
        border-radius: var(--rads);
        cursor: pointer;
        background: var(--p);
        box-shadow: 0 8px 18px rgba(14, 116, 144, .28);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        transition: filter .15s, box-shadow .15s;
    }

    .submit:hover {
        filter: brightness(1.06);
        box-shadow: 0 10px 26px rgba(14, 116, 144, .36);
    }

    .alert {
        border-radius: var(--rad);
        padding: .9rem 1.1rem;
        margin-bottom: 1.25rem;
        font-size: .9rem;
    }

    .alert-err {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #b91c1c;
    }

    .alert-err ul {
        margin: .3rem 0 0;
        padding-left: 1.1rem;
    }

    .ok-card {
        text-align: center;
        padding: 2.75rem 1.5rem;
    }

    .ok-ic {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
        display: grid;
        place-items: center;
        background: #dcfce7;
        color: #16a34a;
        border-radius: 50%;
        font-size: 2.2rem;
    }

    .ok-card h2 {
        color: var(--hd);
        margin: 0 0 .35rem;
    }

    .reg {
        font-family: 'JetBrains Mono', ui-monospace, monospace;
        font-weight: 800;
        font-size: 1.4rem;
        color: var(--ps);
        background: var(--soft);
        border: 1px solid #cdeaf2;
        display: inline-block;
        padding: .45rem 1.1rem;
        border-radius: var(--rads);
        margin: .7rem 0;
        letter-spacing: .05em;
    }

    .foot {
        text-align: center;
        color: rgba(255, 255, 255, .85);
        font-size: .8rem;
        margin-top: 1.5rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    }

    .back-link {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        margin-bottom: 1rem;
        padding: .5rem .95rem;
        border-radius: 999px;
        font-size: .85rem;
        font-weight: 600;
        text-decoration: none;
        background: rgba(255, 255, 255, .92);
        color: #155e75;
        border: 1px solid rgba(255, 255, 255, .6);
        box-shadow: 0 2px 10px rgba(15, 23, 42, .15);
        transition: background .15s, transform .15s;
    }

    .back-link:hover {
        background: #fff;
        transform: translateX(-2px);
    }

    @media(prefers-reduced-motion:reduce) {
        * {
            transition: none !important;
        }
    }

    @media(max-width:640px) {
        .ctrl {
            font-size: 16px;
            padding: .72rem .9rem;
        }

        /* 16px: cegah auto-zoom saat fokus di iOS */
        .ig>.ctrl {
            padding-left: 2.5rem;
        }

        textarea.ctrl {
            min-height: 84px;
        }

        .main-head {
            flex-wrap: wrap;
            padding: 1.25rem 1.2rem .2rem;
            row-gap: .45rem;
        }

        .main-head h2 {
            font-size: 1.1rem;
        }

        .bd {
            padding: 1.1rem 1.15rem 1.6rem;
        }

        .side {
            padding: 1.3rem 1.35rem;
            gap: .7rem;
        }

        .side h1 {
            font-size: 1.24rem;
            margin-top: .55rem;
        }

        .side .feats {
            display: none;
        }

        .submit {
            font-size: 1rem;
            padding: 1rem;
        }

        .section {
            margin-bottom: 1.25rem;
        }
    }

    @media(max-width:380px) {
        .side h1 {
            font-size: 1.12rem;
        }

        .side .logo {
            height: 50px;
        }

        .side .logo img {
            height: 34px;
        }

        .main-head h2 {
            font-size: 1.02rem;
        }

        .btn-add {
            width: 100%;
            justify-content: center;
        }
    }
