/* ============================= */
/* RESET DASAR */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

body {
    background: #f2f5f9;
    padding: 20px;
}

/* ============================= */
/* CONTAINER */
/* ============================= */
.container {
    max-width: 850px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* LOGO */
.logo {
    text-align: center;
    margin-bottom: 20px;
}
.logo img {
    max-width: 180px;
    width: 100%;
}

h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* ============================= */
/* INPUT & LABEL */
/* ============================= */
label {
    font-size: 15px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cdd2d8;
    margin-bottom: 15px;
    font-size: 15px;
}

p {
    font-size: 13px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* ============================= */
/* UPLOAD PER FILE (KTP, SURAT, TTD) */
/* ============================= */
.upload-wrapper,
.upload-field {
    text-align: center;
    margin-bottom: 25px;
}

.upload-wrapper input[type="file"],
.upload-field input[type="file"] {
    display: inline-block;
    margin: 10px auto;
}

.preview-img {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 260px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ============================= */
/* GRID: NAME FIELDS */
/* ============================= */
.name-row,
.proxy-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.proxy-row {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 768px) {
    .name-row,
    .proxy-row {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* JABATAN CARD */
/* ============================= */
.jabatan-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.jabatan-card {
    background: #eef3f9;
    padding: 12px;
    border: 1px solid #cfd6e1;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
}

.jabatan-card:hover {
    background: #dfe9f7;
    transform: translateY(-2px);
}

.jabatan-card input {
    margin-right: 5px;
} 

/* ============================= */
/* SIGNATURE AREA */
/* ============================= */
.signature-container {
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
}

#signatureCanvas {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border: 3px solid #000000;
    border-radius: 14px;
    display: block;
    width: 100%;
    max-width: 380px;
    height: 180px;
    margin: 10px auto;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* CLEAR BUTTON */
#clearSignatureBtn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #ff4b4b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: 0.2s;
}

#clearSignatureBtn:hover {
    background: #e23a3a;
}

/* ============================= */
/* SUBMIT BUTTON */
/* ============================= */
input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s;
}

input[type="submit"]:hover {
    background: #0051cc;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    text-align: center;
    margin-top: 25px;
}
.footer p {
    color: #777;
    font-size: 12px;
}
.notif {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 9999;
}

.notif.show {
    opacity: 1;
    transform: translateY(0);
}

.notif.success {
    background: #28a745; /* hijau */
}

.notif.error {
    background: #dc3545; /* merah */
}
.toast {
    position: fixed;
    top: 25px;
    right: -350px; /* posisi awal (sembunyi) */
    width: auto;
    max-width: 300px;
    padding: 15px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 9999;
}

.toast.show {
    right: 20px;        /* geser masuk */
    opacity: 1;         /* fade in */
}

.toast.success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.toast.error {
    background: linear-gradient(135deg, #dc3545, #b52a37);
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-message {
    flex: 1;
}
/* Kotak Pernyataan */
.pernyataan-box {
    border: 2px solid #007bff;
    background: #f1f7ff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #003366;
}

/* Paragraf di dalam pernyataan */
.pernyataan-box p {
    margin: 8px 0;
}

/* Kotak untuk checkbox syarat */
.syarat-box {
    border: 2px solid #28a745;
    background: #e9fbe9;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1c5e1c;
}

/* Perbaiki tampilan checkbox */
.syarat-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
