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

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg,
            #eefaf5,
            #f7fcfa);
    color: #174f3c;
    min-height: 100vh;
}


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

.page-container {
    width: min(1200px, 94%);
    margin: 35px auto;
}


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

.page-header {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 32px;

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

    box-shadow: 0 10px 30px rgba(0, 90, 60, 0.08);

    margin-bottom: 25px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

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

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

    background: #dff5ea;
    border-radius: 18px;

    font-size: 34px;
}

.page-header h1 {
    font-size: 30px;
    color: #087443;
    margin-bottom: 7px;
}

.page-header p {
    color: #72837d;
    font-size: 15px;
}


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

.btn-back,
.btn-cancel,
.btn-save {
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: 0.25s ease;
}

.btn-back {
    background: #edf7f2;
    color: #087443;
    padding: 13px 20px;
}

.btn-back:hover {
    background: #d9efe5;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 24px;

    background: #f1f3f3;
    color: #555;
}

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

.btn-save {
    padding: 14px 25px;
    background: #087d4c;
    color: #ffffff;

    box-shadow: 0 7px 18px rgba(8, 125, 76, 0.20);
}

.btn-save:hover {
    background: #05663e;
    transform: translateY(-2px);
}


/* =====================================================
   ALERT
===================================================== */

.alert {
    border-radius: 15px;
    padding: 16px 20px;
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 15px;
}

.alert-error {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #ffd0d0;
}


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

.form-card {
    background: #ffffff;
    border-radius: 22px;

    box-shadow: 0 10px 35px rgba(0, 90, 60, 0.08);

    overflow: hidden;
}


/* =====================================================
   FORM TITLE
===================================================== */

.form-title {
    padding: 28px 32px;

    display: flex;
    align-items: center;
    gap: 16px;

    border-bottom: 1px solid #e6efeb;
}

.title-icon {
    width: 52px;
    height: 52px;

    border-radius: 14px;

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

    background: #e2f5ec;

    font-size: 25px;
}

.form-title h2 {
    color: #087443;
    font-size: 22px;
    margin-bottom: 5px;
}

.form-title p {
    color: #7b8984;
    font-size: 14px;
}


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

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 25px 32px 15px;
}

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

    background: #eef9f4;
    border-radius: 12px;

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

    font-size: 20px;
}

.section-title h3 {
    color: #087443;
    font-size: 18px;
    margin-bottom: 3px;
}

.section-title p {
    font-size: 13px;
    color: #8a9692;
}


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

.form-grid {
    padding: 0 32px 20px;

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

    gap: 20px 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}


/* =====================================================
   LABEL
===================================================== */

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #35594b;
}

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

.form-group small {
    color: #8b9893;
    font-size: 12px;
}


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

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

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d7e5df;

    border-radius: 11px;

    background: #fbfdfc;

    color: #24483b;

    font-size: 14px;

    outline: none;

    transition: 0.2s ease;
}

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

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(10, 135, 82, 0.10);
}

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


/* =====================================================
   PHOTO UPLOAD
===================================================== */

.photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 18px;

    background: #f8fcfa;

    border: 1px dashed #c7ded4;

    border-radius: 15px;
}

.photo-preview {
    width: 90px;
    height: 90px;

    flex-shrink: 0;

    background: #e4f4ec;

    border-radius: 15px;

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

    font-size: 40px;

    overflow: hidden;
}

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

    object-fit: cover;
}

.photo-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.photo-info input {
    height: auto;
    padding: 8px;

    background: #ffffff;
}

.photo-info p {
    color: #87948f;
    font-size: 12px;
}


/* =====================================================
   FORM FOOTER
===================================================== */

.form-footer {
    margin-top: 15px;

    padding: 22px 32px;

    border-top: 1px solid #e6efeb;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.form-footer p {
    color: #8a9691;
    font-size: 13px;
}

.form-footer p span {
    color: #e63946;
}

.footer-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}


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

@media (max-width: 800px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-back {
        width: 100%;
        text-align: center;
    }

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

    .full-width {
        grid-column: auto;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-buttons {
        flex-direction: column;
    }

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


@media (max-width: 500px) {

    .page-container {
        width: 96%;
        margin: 15px auto;
    }

    .page-header {
        padding: 22px;
        border-radius: 16px;
    }

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

    .header-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

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

    .form-title,
    .section-title,
    .form-grid,
    .form-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .photo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}