body {
    background-color: #f0f0f0;
    background-image: url('../img/02ce42cb-3ec4-4077-9189-f727d836d258.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#loading {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading::after {
    content: "";
    width: 45px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#000000 0 0);
    background:
        var(--c) 0% 50%,
        var(--c) 50% 50%,
        var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: l1 .5s infinite linear;
}

@keyframes l1 {
    0% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }

    33% {
        background-size: 20% 10%, 20% 100%, 20% 100%
    }

    50% {
        background-size: 20% 100%, 20% 10%, 20% 100%
    }

    66% {
        background-size: 20% 100%, 20% 100%, 20% 10%
    }

    100% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }
}

.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
}

.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

.loading:not(:required) {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -.5em;
    animation: spinner 150ms infinite linear;
    border-radius: .5em;
    box-shadow:
        rgba(255, 255, 255, .75) 1.5em 0 0 0,
        rgba(255, 255, 255, .75) 1.1em 1.1em 0 0,
        rgba(255, 255, 255, .75) 0 1.5em 0 0,
        rgba(255, 255, 255, .75) -1.1em 1.1em 0 0,
        rgba(255, 255, 255, .75) -1.5em 0 0 0,
        rgba(255, 255, 255, .75) -1.1em -1.1em 0 0,
        rgba(255, 255, 255, .75) 0 -1.5em 0 0,
        rgba(255, 255, 255, .75) 1.1em -1.1em 0 0;
}

@keyframes spinner {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* rapihin box utama */
.header-card {
    background: #ffffff;
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    margin-top: 17px;
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, .1);
    color: #111;
}

/* welcome text */
.welcome-strip {
    text-align: center;
    margin: 6px 0 16px;
    color: #000;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .3px;
}

.welcome-strip .w1 {
    font-size: 14px;
    margin-bottom: 6px;
}

.welcome-strip .w2 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-strip .w3 {
    font-size: 12px;
}

/* form */
.form-label-left {
    display: block;
    text-align: left;
    font-weight: 800;
    margin: 6px 0 6px;
}

.form-flat {
    width: 100%;
    height: 40px;
    border: 1.5px solid #111 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-size: 14px;
}

.phone-flat .input-group-text {
    background: #fff !important;
    border: 1.5px solid #111 !important;
    border-right: 0 !important;
    border-radius: 3px 0 0 3px !important;
    padding: 0 10px;
}

.phone-flat .form-control {
    border: 1.5px solid #111 !important;
    border-radius: 0 3px 3px 0 !important;
    box-shadow: none !important;
}

.form-control:focus,
.input-group .form-control:focus {
    border-color: #111 !important;
    box-shadow: none !important;
}

/* ============================================================
   (OPTIONAL) OLD RECORD BOX STYLE (kalau masih dipakai)
   ============================================================ */
.header-card ._record-box {
    background: #fff !important;
    width: min(520px, 100%) !important;
    margin: 16px auto 0 !important;
    padding: 10px !important;
    border: 2px solid #1d4ed8 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.header-card ._record-box .list-box {
    height: 190px !important;
    overflow: hidden !important;
    padding: 6px !important;
    border-radius: 10px !important;
}

.header-card ._record-box .list .item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 8px 0 !important;
    padding: 10px 12px !important;
    background: #fff3f5 !important;
    border: 2px solid #1d4ed8 !important;
    border-radius: 10px !important;
}

.header-card ._record-box .record_logo img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px !important;
    border: 3px solid #1d4ed8 !important;
    background: #fff !important;
}

.header-card ._record-box .h1 .name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
}

.header-card ._record-box .h2 {
    margin-top: 3px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #1d4ed8 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.header-card ._record-box .h2::after {
    content: "✓" !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 3px !important;
    background: #22c55e !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

/* ===== RECORD SLIM (seperti contoh gambar) ===== */
.record-slim {
    width: 100%;
    background: #fff;
    border: 2px solid #1d4ed8;
    border-radius: 12px;
    padding: 6px;
    overflow: hidden;
}

.record-slim .record-viewport {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.record-slim .record-track {
    will-change: transform;
}

/* row item: menyatu, pemisah garis */
.record-slim .record-row {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 12px;
    background: #fff3f5;

    border-top: 2px solid #1d4ed8;
}

.record-slim .record-row:first-child {
    border-top: 0;
}

/* avatar */
.record-slim .record-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #1d4ed8;
    background: #fff;
}

/* text */
.record-slim .record-text {
    flex: 1;
}

.record-slim .record-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.record-slim .record-status {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 900;
    color: #1d4ed8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* cek hijau */
.record-slim .record-status::after {
    content: "✓";
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.container {
    width: 100% !important;
    max-width: 560px !important;
    /* luar card */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 2) Card form utama (header-card kamu) */
.header-card {
    max-width: 560px !important;
    margin: 16px auto 0 !important;
    padding: 22px 18px !important;

    background: url('assets/img/02ce42cb-3ec4-4077-9189-f727d836d258.png') center/cover no-repeat !important;
    border: 2px solid rgba(0, 0, 0, .10) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12) !important;
}

/* 3) Input biar rapi & tidak melebar aneh */
.header-card .input-group {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.header-card .form-control {
    height: 44px;
    font-size: 14px;
}

/* 4) Button tengah (ikut contoh) */
.btn-mk {
    background: #001a6d !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
}

.form-card {
    width: 100%;
    padding: 0px 16px;
    max-width: 500px;
    margin: auto;
}

.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
    background: #ffe5e5 !important;
}