@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ================================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================
   BODY
================================ */
body {
    font-family: "DM Sans", sans-serif;
    background: linear-gradient(180deg,
            #f5f8f6 0%,
            #eef7f2 55%,
            #ffffff 100%);
    color: #333;
    font-size: 13px;
    min-height: 100vh;
}

/* ================================
   CONTAINER
================================ */
.container {
    width: 90%;
    max-width: 820px;
    margin: 28px auto 45px;
}

/* ================================
   HEADER
================================ */
.header {
    position: relative;
    text-align: center;
    margin-bottom: 22px;
}

.header h1 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: #123c2d;
    margin-top: 7px;
    font-weight: 700;
}

/* ================================
   TOMBOL KEMBALI
================================ */
.btn-kembali {
    position: absolute;
    left: 0;
    top: 1px;

    display: inline-block;
    padding: 8px 13px;

    background: #e8f5ec;
    color: #087443;

    border-radius: 7px;
    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition: 0.2s ease;
}

.btn-kembali:hover {
    background: #087443;
    color: #ffffff;
}

/* ================================
   CARD FORM
================================ */
.card {
    background: #ffffff;

    padding: 23px 25px;
    border-radius: 13px;

    border: 1px solid #e8efeb;

    box-shadow: 0 6px 20px rgba(25, 80, 60, 0.07);
}

/* ================================
   FORM GROUP
================================ */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;

    margin-bottom: 6px;

    color: #38574b;
    font-size: 12px;
    font-weight: 600;
}

/* ================================
   INPUT, SELECT, TEXTAREA
================================ */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 9px 11px;

    border: 1px solid #d5e1db;
    border-radius: 7px;

    background: #fbfdfc;
    color: #333;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;

    outline: none;

    transition: 0.2s ease;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    height: 38px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #087443;
    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(8, 116, 67, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a2afa9;
}

/* ================================
   FOTO SAAT INI
================================ */
.foto-saat-ini {
    width: 190px;
    height: 135px;

    margin-top: 6px;

    overflow: hidden;

    border-radius: 9px;
    border: 1px solid #dce7e1;

    background: #f5f8f6;
}

.foto-saat-ini img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

/* ================================
   TIDAK ADA FOTO
================================ */
.tidak-ada-foto {
    width: 190px;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;

    background: #f5f8f6;
    border: 1px dashed #cbd9d2;
    border-radius: 8px;

    color: #82918a;
    font-size: 11px;
    text-align: center;
}

/* ================================
   INPUT FILE
================================ */
.form-group input[type="file"] {
    width: 100%;

    height: auto;
    padding: 8px;

    border: 1px solid #d5e1db;
    border-radius: 7px;

    background: #f8faf9;

    font-family: "DM Sans", sans-serif;
    font-size: 11px;

    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #087443;
}

/* ================================
   INFORMASI FILE
================================ */
.info-file {
    margin-top: 7px;

    padding: 8px 10px;

    background: #eef7f2;
    border-left: 3px solid #087443;

    border-radius: 5px;

    color: #66766f;

    font-size: 10px;
    line-height: 1.6;
}

/* ================================
   NAMA FILE
================================ */
.nama-file {
    margin-top: 7px;

    color: #7b8c85;
    font-size: 10px;
    font-style: italic;
}

/* ================================
   PREVIEW FOTO BARU
================================ */
.preview-gambar {
    display: none;

    width: 190px;
    height: 135px;

    margin-top: 10px;

    overflow: hidden;

    border-radius: 9px;
    border: 1px solid #dce7e1;

    background: #f5f8f6;
}

.preview-gambar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

/* ================================
   AKSI
================================ */
.aksi {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 9px;

    margin-top: 21px;
    padding-top: 17px;

    border-top: 1px solid #edf1ee;
}

/* ================================
   TOMBOL BATAL
================================ */
.btn-batal {
    display: inline-block;

    padding: 9px 15px;

    background: #f1f4f2;
    color: #63736c;

    border-radius: 7px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition: 0.2s ease;
}

.btn-batal:hover {
    background: #dfe7e2;
    color: #38574b;
}

/* ================================
   TOMBOL SIMPAN
================================ */
.btn-simpan {
    border: none;

    padding: 9px 16px;

    background: #087443;
    color: #ffffff;

    border-radius: 7px;

    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.btn-simpan:hover {
    background: #065d36;
    transform: translateY(-1px);
}

/* ================================
   RESPONSIVE TABLET
================================ */
@media (max-width: 700px) {

    .container {
        width: 94%;
        margin-top: 20px;
    }

    .header {
        padding-top: 40px;
    }

    .header h1 {
        font-size: 21px;
    }

    .btn-kembali {
        top: 0;
    }

    .card {
        padding: 19px;
    }
}

/* ================================
   RESPONSIVE HP
================================ */
@media (max-width: 480px) {

    body {
        font-size: 12px;
    }

    .container {
        width: 94%;
    }

    .header h1 {
        font-size: 19px;
    }

    .card {
        padding: 16px;
        border-radius: 10px;
    }

    .foto-saat-ini,
    .preview-gambar {
        width: 160px;
        height: 115px;
    }

    .aksi {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn-batal,
    .btn-simpan {
        width: 100%;
        text-align: center;
    }
}