.main {
    padding: 40px;
    min-height: 100vh;
    background-color: #ececec;
    background: url('./../img/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.banner {
    position: relative;
    background: url(./../img/banner.png);
    padding: 80px 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 1px 1px 8px #bcbcbc;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}



.form_box {
    position: relative;
    padding: 28px;
    max-width: 400px;
    width: 100%;
    margin: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}

.form_box.form_custom {
    padding-top: 42px;
    margin: 2rem auto;
}

.input_box {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.input_checkbox {
    border: 1px solid #ddd;
    padding: 8px 10px;
    display: flex;
    gap: 1rem;
    border-radius: 8px;
    position: relative;
}

.input_checkbox input {
    appearance: none;
}

.input_checkbox label {
    padding: 8px 20px;
    display: inline-block;
    color: #292929;
    flex: 1;
    text-align: center;
    border-radius: 30px;
    z-index: 2;
}

#checked {
    position: absolute;
    display: block;
    top: 0px;
    left: 50%;
    width: 50%;
    height: 100%;
    border-radius: 12px;
    z-index: 1;
    color: #fff;
    background-color: red;
    border: 6px solid currentColor;
    transition: left 0.4s 0.2s, right 0.5s, background-color 0.35s;
}

.input_checkbox input:checked+#checked {
    background-color: #ff9800;
    left: 0px;
    right: 50%;
}

.input {
    display: block;
    outline: none;
    border: 1px solid #ddd;
    padding: 16px 14px;
    width: 100%;
    font-size: 17px;
    border-radius: 8px;
}


.profile_card {
    position: relative;
    max-width: 850px;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.profile_card .box {
    position: relative;
    width: 100%;
    border-radius: 15px;
}

.box:nth-child(1) {
    height: 250px;
    background-color: #f00;
    background: var(--cover_img);
    border-bottom-left-radius: 0;
    box-shadow: 0px 0px 20px #00000050;
}

.profile_card .box:nth-child(2) {
    position: relative;
    background-color: #fff;
    width: 90%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 80px 40px;
    box-shadow: 0px 0px 10px #00000050;
}

.box:nth-child(1) .circle {
    position: absolute;
    bottom: -70%;
    left: 2rem;
    width: 180px;
    height: 180px;
    z-index: 1;
    border-radius: 50%;
    border: 3px dashed #fff;
    background-color: #d6d6d6;
    transform: translateY(-50%);
}

.circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}
.circle img.profile-image{
    display: none;
}

.loader::before{
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background: #ff574d;
    transform: scale(0.1);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.5s linear;
    animation: loading 1.5s infinite;
}
.loader::after{
    position:absolute;
    content:'';
    width: 100%; 
    height: 100%;         
    top: 0;
    right: -100%;
    z-index: -1;
    border-radius: 50%;
    transform: translateX(-100%);        
    background: linear-gradient(-90deg, #f44336b3 25%, #f44336a6 50%, #f4433699 75%);
    background-size: 200% 100%;
    animation: gradientLoading 1.5s infinite;
} 
@keyframes gradientLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes loading { 
    100% { 
        transform: scale(1); 
        opacity: 0;
    } 
} 

table {
    width: inherit;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #fff;
}

th,
td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.profile_title {
    text-align: center;
    color: #333;
}

.edit_profile {
    position: absolute;
    top: -7%;
    right: 2rem;
    color: #fff;
    padding: 20px 32px;
    border-radius: 45px;
    background: #091453;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 32px;
    border-top-left-radius: 32px;
    border-top-right-radius: 4px;
    border: 2px dashed #fff;
    box-shadow: -8px -6px #fff;
    transition: all 0.5s ease-in-out;
}

.edit_profile:hover {
    letter-spacing: 2px;
}

.profile_pic_btn {
    position: absolute;
    bottom: 5%;
    color: #787878;
    right: 0px;
    padding: 8px 10px 6px 10px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0px 2px 4px #ccc;
    border-radius: 50%;
}

.form_header {
    padding: 20px;
    background: #eee;
    border-radius: 5px;
    border: 2px solid #a1a1a1;
}

.form_body {
    background: #fbfbfb;
    padding: 20px;
    border: 2px dashed #a1a1a1;
    border-top: none;
    border-bottom: none;
}

.form_footer {
    background: #eee;
    padding: 20px;
    margin-right: auto;
    border: 2px solid #a1a1a1;
}

.form_group {
    margin-bottom: 0.75rem;
}

.form_group label {
    display: block;
    font-size: 14px;
}

.form_group .input_box {
    border: none;
    outline: none;
    padding: 12px 20px;
    width: 100%;
    margin-bottom: 0 !important;
    border: 1.5px solid #c3c3c4;
}
.form_title{
    text-align: center;
    margin-bottom: 1rem;
    color: #7a7a7a;
}
.form_title span{
    color: #ff574d;

}

@media (max-width:880px) {
    .main {
        padding: 20px;
    }
}

@media (max-width:580px) {

    .form_title{
        font-size: 18px;
    }
    .box:nth-child(1) {
        height: 200px;
        border-bottom-right-radius: 0px;
    }

    .profile_card .box:nth-child(2){
        width: 100%;
        padding: 2rem 1rem;
    }

    .profile_pic_btn {
        padding: 4px 5px 3px 5px;
    }

    .edit_profile {
        top: -4%;
        right: 1rem;
        padding: 8px 16px;
        box-shadow: -4px -3px #fff;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 24px;
        border-top-left-radius: 24px;
        border-top-right-radius: 0px;
    }

    .box:nth-child(1) .circle {
        width: 100px;
        height: 100px;
        bottom: -40%;
        left: 1rem;
    }

    .profile_title {
        font-size: 18px;
    }

    .profile_table tr td:nth-child(1) {
        background: #9E9E9E;
        padding: 5px 12px;
        display: inline-block;
        border-top-left-radius: 12px;
    }

    .profile_table tr td {
        display: block;
    }

    .profile_table tr td:nth-child(2) {
        margin-bottom: 11px;
        padding: 12px;
    }
}