/* ==============================
   EDIT PROFILE PAGE
============================== */

:root{
    --primary:#5A321E;
    --primary-dark:#321A10;
    --primary-light:#87573B;

    --gold:#C99B3C;
    --gold-dark:#A97922;
    --gold-light:#F3D995;

    --cream:#FFF9F0;
    --cream-dark:#F5E9D8;
    --soft-bg:#FBF6EF;

    --white:#FFFFFF;
    --dark:#251B16;
    --text:#62544D;
    --muted:#8A7B73;
    --border:#E9DDCF;

    --success:#2E8B57;
    --danger:#C74B50;

    --shadow-sm:0 10px 28px rgba(70,42,25,.09);
    --shadow-md:0 18px 45px rgba(70,42,25,.16);
}


/* ==============================
   PAGE LAYOUT
============================== */

.edit-profile-page{
    min-height:100vh;
    padding:80px 20px;

    display:flex;
    align-items:flex-start;
    justify-content:center;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(201,155,60,.14),
            transparent 26%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(90,50,30,.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--cream),
            var(--soft-bg)
        );

    color:var(--dark);
}


/* ==============================
   PROFILE CARD
============================== */

.edit-profile-card{
    position:relative;

    width:100%;
    max-width:650px;

    padding:42px;

    overflow:hidden;

    border:1px solid rgba(201,155,60,.25);
    border-radius:24px;

    background:rgba(255,255,255,.95);

    box-shadow:var(--shadow-md);
}

.edit-profile-card::before{
    content:"";

    position:absolute;
    top:-75px;
    right:-75px;

    width:180px;
    height:180px;

    border-radius:50%;

    background:rgba(201,155,60,.08);

    pointer-events:none;
}

.edit-profile-card::after{
    content:"";

    position:absolute;
    left:50%;
    bottom:0;

    width:72%;
    height:3px;

    border-radius:20px;

    background:linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--primary),
        transparent
    );

    transform:translateX(-50%);
}


/* ==============================
   PROFILE HEADING
============================== */

.edit-profile-heading{
    position:relative;
    z-index:2;

    margin-bottom:35px;

    text-align:center;
}

.profile-icon{
    width:92px;
    height:92px;

    margin:0 auto 20px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(201,155,60,.34);
    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            var(--cream),
            #F0DFC2
        );

    color:var(--primary);

    font-size:38px;

    box-shadow:
        0 12px 26px rgba(70,42,25,.13),
        inset 0 0 0 7px rgba(255,255,255,.50);
}

.edit-profile-heading h1{
    margin-bottom:9px;

    color:var(--primary);

    font-family:'Playfair Display',serif;
    font-size:36px;
    font-weight:700;
    line-height:1.25;
}

.edit-profile-heading p{
    color:var(--text);

    font-size:14px;
    line-height:1.7;
}


/* ==============================
   FORM
============================== */

.form-group{
    position:relative;
    z-index:2;

    margin-bottom:22px;
}

.form-group label{
    margin-bottom:9px;

    display:flex;
    align-items:center;
    gap:9px;

    color:var(--dark);

    font-size:13px;
    font-weight:600;
}

.form-group label i{
    width:18px;

    color:var(--gold-dark);

    text-align:center;
}

.form-group input{
    width:100%;

    padding:14px 15px;

    border:1px solid var(--border);
    border-radius:11px;

    background:var(--cream);

    color:var(--dark);

    font-family:inherit;
    font-size:14px;

    outline:none;

    box-shadow:0 5px 15px rgba(70,42,25,.03);

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease,
        transform .3s ease;
}

.form-group input::placeholder{
    color:var(--muted);
}

.form-group input:focus{
    border-color:var(--gold);

    background:var(--white);

    box-shadow:
        0 0 0 3px rgba(201,155,60,.13),
        0 8px 20px rgba(70,42,25,.07);

    transform:translateY(-1px);
}

.form-group input:disabled,
.form-group input[readonly]{
    background:var(--cream-dark);
    color:var(--muted);

    cursor:not-allowed;
}


/* ==============================
   ACTION BUTTONS
============================== */

.edit-profile-actions{
    position:relative;
    z-index:2;

    display:flex;
    gap:15px;

    margin-top:30px;
}

.save-profile-btn,
.cancel-profile-btn{
    min-height:50px;
    padding:13px 20px;

    flex:1;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    border:none;
    border-radius:26px;

    color:var(--white);

    font-family:inherit;
    font-size:14px;
    font-weight:700;

    cursor:pointer;

    text-decoration:none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}


/* ==============================
   SAVE BUTTON
============================== */

.save-profile-btn{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:0 10px 24px rgba(70,42,25,.22);
}

.save-profile-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(169,121,34,.25);
}


/* ==============================
   CANCEL BUTTON
============================== */

.cancel-profile-btn{
    border:1px solid rgba(201,155,60,.30);

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    box-shadow:0 9px 22px rgba(169,121,34,.20);
}

.cancel-profile-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary)
        );

    transform:translateY(-3px);

    box-shadow:0 13px 28px rgba(70,42,25,.22);
}

.save-profile-btn:active,
.cancel-profile-btn:active{
    transform:translateY(-1px);
}

.save-profile-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}


/* ==============================
   MESSAGE
============================== */

#profileMessage{
    position:relative;
    z-index:2;

    min-height:22px;
    margin-top:18px;

    color:var(--text);

    text-align:center;
    font-size:13px;
    font-weight:600;
    line-height:1.6;
}

#profileMessage.success{
    color:var(--success);
}

#profileMessage.error{
    color:var(--danger);
}


/* ==============================
   RESPONSIVE
============================== */

@media(max-width:600px){

    .edit-profile-page{
        padding:50px 15px;
    }

    .edit-profile-card{
        padding:30px 20px;

        border-radius:19px;
    }

    .profile-icon{
        width:80px;
        height:80px;

        font-size:33px;
    }

    .edit-profile-heading{
        margin-bottom:28px;
    }

    .edit-profile-heading h1{
        font-size:30px;
    }

    .edit-profile-heading p{
        font-size:13px;
    }

    .edit-profile-actions{
        flex-direction:column;
        gap:12px;
    }

    .save-profile-btn,
    .cancel-profile-btn{
        width:100%;
    }

}


@media(max-width:360px){

    .edit-profile-page{
        padding-left:10px;
        padding-right:10px;
    }

    .edit-profile-card{
        padding-left:15px;
        padding-right:15px;
    }

    .edit-profile-heading h1{
        font-size:26px;
    }

}