/* =====================================================
   RESET
===================================================== */

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


body {
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        linear-gradient(135deg,
            #eefaf5,
            #f7fcfa);

    color: #334155;

    min-height: 100vh;
}


/* =====================================================
   CONTAINER
===================================================== */

.page-container {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 35px 25px 60px;
}


/* =====================================================
   HEADER
===================================================== */

.page-header {
    background: #ffffff;

    border-radius: 22px;

    padding: 25px 30px;

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

    gap: 25px;

    box-shadow:
        0 10px 35px rgba(15, 118, 78, 0.08);

    border: 1px solid #e4f1eb;

    margin-bottom: 25px;
}


.header-left {
    display: flex;

    align-items: center;

    gap: 20px;
}


.header-icon {
    width: 70px;
    height: 70px;

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

    border-radius: 20px;

    background: #dff5eb;

    font-size: 34px;
}


.page-header h1 {
    color: #087744;

    font-size: 30px;

    margin-bottom: 5px;
}


.page-header p {
    color: #718096;

    font-size: 15px;
}


/* =====================================================
   BUTTON KEMBALI
===================================================== */

.btn-back {
    text-decoration: none;

    background: #edf8f3;

    color: #087744;

    padding: 12px 20px;

    border-radius: 12px;

    font-weight: 600;

    transition: 0.2s;
}


.btn-back:hover {
    background: #087744;

    color: white;
}


/* =====================================================
   ERROR
===================================================== */

.alert-error {
    background: #fff1f2;

    color: #be123c;

    border: 1px solid #fecdd3;

    border-radius: 14px;

    padding: 15px 20px;

    margin-bottom: 20px;

    font-weight: 500;
}


/* =====================================================
   FORM CARD
===================================================== */

.form-card {
    background: white;

    border-radius: 24px;

    padding: 35px;

    border: 1px solid #e2eee8;

    box-shadow:
        0 12px 40px rgba(15, 118, 78, 0.08);
}


/* =====================================================
   SECTION TITLE
===================================================== */

.section-title {
    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 18px;

    margin-bottom: 25px;

    border-bottom: 1px solid #e7f0eb;
}


.section-title>span {
    width: 48px;
    height: 48px;

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

    border-radius: 14px;

    background: #e6f7ef;

    font-size: 23px;
}


.section-title h2 {
    color: #087744;

    font-size: 20px;

    margin-bottom: 3px;
}


.section-title p {
    color: #84928d;

    font-size: 14px;
}


/* =====================================================
   FORM GRID
===================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 35px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group.full {
    grid-column: 1 / -1;
}


.form-group label {
    color: #344054;

    font-size: 14px;

    font-weight: 600;
}


.form-group label span {
    color: #dc2626;
}


/* =====================================================
   INPUT
===================================================== */

.form-group input,
.form-group select {
    width: 100%;

    height: 48px;

    border: 1px solid #d9e5df;

    border-radius: 12px;

    padding: 0 15px;

    font-size: 14px;

    color: #334155;

    background: #ffffff;

    outline: none;

    transition: 0.2s;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #0b8b56;

    box-shadow:
        0 0 0 4px rgba(11, 139, 86, 0.10);
}


.form-group input::placeholder {
    color: #a0aaa6;
}


/* =====================================================
   FOTO
===================================================== */

.photo-section {
    margin-bottom: 35px;
}


.photo-content {
    display: flex;

    align-items: center;

    gap: 25px;

    background: #f8fcfa;

    border: 1px solid #e3eee9;

    border-radius: 18px;

    padding: 22px;

    margin-bottom: 35px;
}


.current-photo {
    width: 130px;
    height: 130px;

    flex-shrink: 0;

    border-radius: 18px;

    overflow: hidden;

    background: #e6f5ee;

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

    border: 3px solid white;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}


.current-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.photo-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

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

    font-size: 55px;
}


.upload-area {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.upload-label {
    display: inline-flex;

    width: fit-content;

    padding: 11px 18px;

    background: #087744;

    color: white;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;

    transition: 0.2s;
}


.upload-label:hover {
    background: #056239;
}


.upload-area input[type="file"] {
    display: none;
}


.upload-area p {
    color: #84928d;

    font-size: 13px;
}


/* =====================================================
   ACTION
===================================================== */

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 12px;

    border-top: 1px solid #e7f0eb;

    padding-top: 25px;

    margin-top: 10px;
}


.btn-cancel,
.btn-save {
    min-height: 48px;

    padding: 0 24px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition: 0.2s;
}


.btn-cancel {
    background: #f1f5f3;

    color: #53615b;
}


.btn-cancel:hover {
    background: #e2e9e5;
}


.btn-save {
    border: none;

    background: #087744;

    color: white;

    box-shadow:
        0 8px 20px rgba(8, 119, 68, 0.20);
}


.btn-save:hover {
    background: #056239;

    transform: translateY(-1px);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .page-container {
        padding: 20px 15px 40px;
    }


    .page-header {
        flex-direction: column;

        align-items: flex-start;

        padding: 22px;
    }


    .page-header h1 {
        font-size: 25px;
    }


    .btn-back {
        width: 100%;

        text-align: center;
    }


    .form-card {
        padding: 22px;
    }


    .form-grid {
        grid-template-columns: 1fr;
    }


    .form-group.full {
        grid-column: auto;
    }


    .photo-content {
        flex-direction: column;

        align-items: flex-start;
    }


    .form-actions {
        flex-direction: column-reverse;
    }


    .btn-cancel,
    .btn-save {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .header-left {
        align-items: flex-start;
    }


    .header-icon {
        width: 55px;
        height: 55px;

        font-size: 27px;
    }


    .page-header h1 {
        font-size: 22px;
    }


    .form-card {
        padding: 18px;
    }


    .section-title h2 {
        font-size: 18px;
    }

}