/* ================= GLOBAL ================= */
body {

    font-family: 'Segoe UI', system-ui, sans-serif;
    animation: pageFade .8s ease;
    position: relative;
}

/* watermark logo */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("victoria-insurance-logo.png");
    background-repeat: repeat;
    background-size: 120px 120px;

    /* bikin logo jadi putih-abu */
    filter: grayscale(100%) brightness(1.8) contrast(0.8);

    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: rgba(255,255,255,.7);

    cursor: pointer;
    transition: .25s ease;
}

.file-label:hover {
    border-color: #dd0000;
    background: rgba(221,0,0,.05);
}

.file-icon {
    font-size: 26px;
}

.file-text strong {
    display: block;
    color: #333;
}

.file-preview {
    margin-top: 10px;
    font-size: 14px;
    color: #2d7a2d;
}

.preview-link {
    text-decoration: none;
}

.preview-link:hover {
    text-decoration: underline;
}


@keyframes pageFade {
    from { opacity: 0 }
    to { opacity: 1 }
}

/* ================= CARD ================= */
.form-card {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.15),
        inset 0 0 0 1px rgba(255,255,255,.6);
    animation: fadeSlide 1s cubic-bezier(.2,.8,.2,1);
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to { opacity: 1; transform: none; }
}

/* ================= HEADER ================= */
.form-header {
    background: linear-gradient(135deg, #DD0000, #b30000);
    padding: 34px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255,255,255,.25), transparent 40%);
    animation: headerGlow 6s linear infinite;
}

@keyframes headerGlow {
    to { transform: rotate(360deg); }
}

.form-header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    border-radius: 50px 50px 0 0;
}

.form-title {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    padding-bottom: 30px;
}

/* ================= CONTENT ================= */
.form-body {
    padding: 50px 40px 40px;
}

/* ================= TITLES ================= */
h6 {
    color: #DD0000;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    padding-left: 16px;
}

h6::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: #DD0000;
    border-radius: 5px;
}

/* ================= INPUT ================= */
.form-control,
textarea {
    border-radius: 16px;
    border: 1px solid #ddd;
    padding: 14px 18px;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    background: rgba(255,255,255,.95);
}

.form-control:hover,
textarea:hover {
    border-color: #DD0000;
}

.form-control:focus,
textarea:focus {
    border-color: #DD0000;
    box-shadow:
        0 0 0 4px rgba(221,0,0,.15),
        0 10px 25px rgba(0,0,0,.1);
    transform: translateY(-1px);
}

/* ================= RADIO FULL CLICK ================= */
.form-check {
    position: relative;
    padding: 4px 6px;      /* ⬅️ lebih rapat */
    border-radius: 6px;    /* ⬅️ FIX */
    cursor: pointer;
    margin-bottom: 2px;
    transition: .25s;
}


/* bikin input nutup seluruh area */
.form-check-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

/* teks ikut jadi pointer */
.form-check-label {
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    padding-left: 22px;    /* ⬅️ sebelumnya 24px */
    position: relative;
    line-height: 1.2;     /* ⬅️ penting */
}


/* radio visual custom */
.form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: .3s;
}
.kategori-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 10px;
}

/* scroll tipis */
.kategori-scroll::-webkit-scrollbar {
    width: 6px;
}
.kategori-scroll::-webkit-scrollbar-thumb {
    background: #DD0000;
    border-radius: 10px;
}

/* titik radio */
.form-check-label::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #DD0000;
    border-radius: 50%;
    transition: .25s ease;
}

/* checked state */
.form-check-input:checked + .form-check-label::before {
    border-color: #DD0000;
}

.form-check-input:checked + .form-check-label::after {
    transform: translateY(-50%) scale(1);
}

/* hover effect */
.form-check:hover {
    background: rgba(221,0,0,.06);
    transform: translateX(4px);
}


/* ================= FILE ================= */
#lampiran {
    border: 2px dashed #DD0000;
    padding: 18px;
    border-radius: 18px;
    cursor: pointer;
    background: linear-gradient(135deg, #fff, #fafafa);
    text-align: center;
    transition: .4s;
}

#lampiran:hover {
    background: rgba(221,0,0,.08);
    transform: scale(1.01);
}

#lampiran::file-selector-button {
    background: #DD0000;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* ================= BUTTON ================= */
.btn-submit {
    background: linear-gradient(135deg, #DD0000, #b30000);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 14px 55px;
    font-weight: 800;
    letter-spacing: 1.2px;
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-100%);
}

.btn-submit:hover::before {
    transform: translateX(100%);
    transition: .6s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(221,0,0,.45);
}

.btn-submit:active {
    transform: scale(.96);
}

/* ================= LOADING ================= */
.loading {
    pointer-events: none;
    background: #cccccc !important;
    color: #333 !important;
}

.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid #333;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= POPUP SUCCESS ================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .4s ease;
    z-index: 9999;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-box {
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    transform: scale(.6) translateY(60px);
    transition: .5s cubic-bezier(.2,.9,.3,1.4);
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
    border-top: 6px solid #DD0000;
}

.popup-overlay.show .popup-box {
    transform: scale(1) translateY(0);
}

.popup-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DD0000, #b30000);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pop .6s ease;
    box-shadow: 0 10px 30px rgba(221,0,0,.6);
}

@keyframes pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.popup-title {
    font-size: 22px;
    font-weight: 900;
    color: #DD0000;
    margin-bottom: 10px;
}

.popup-text {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-btn {
    background: linear-gradient(135deg, #DD0000, #b30000);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 35px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(221,0,0,.45);
}

/* ================= LOGO CLEAN ================= */
.logo-top {
    display: flex;
    justify-content: center;
    margin-top: -10px;   /* tarik logo ke atas */
    margin-bottom: -45px; /* jarak ke kategori */
}


.logo-top img {
    height: 120px;        /* bisa 42–52 */
    width: auto;
    object-fit: contain;
}