body {
    font-family: "Roboto",sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Background */
.main-bg {
    position: relative;
    background: linear-gradient(180deg, rgba(252, 227, 216, 1) 0%, rgb(254 193 135 / 0%) 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    height: 100vh;
}

/* Header image */
img.mainImg {
    width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container.mincont {
    max-width: 95%;
    width: 100%;
    margin: 0px auto 30px;
    height: 100%;
}

/* Outer Frame */
.mincont {
    position: relative;
    padding: 15px 17px;
    border-radius: 20px;
}


/* Title */
.frame-title {
    position: absolute; /* top:-18px; */ /* left:50%; */ /* transform:translateX(-50%); */ /* padding: 1px 12px; */ /* font-size:18px; */ /* font-weight:600; */ /* color:#1e4f87; */ /* background: linear-gradient(#ffddce, #feeae2); */ /* border:2px solid #7fa3c7; */
    border-radius: 6px; /* font-family:'Poppins',sans-serif; */ /* white-space:nowrap; */
}

/* Labels */
label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Inputs */
.form-control {
    border-radius: 25px;
    border: 2px solid #7ea1c7;
    padding: 5px 15px;
    font-size: 1rem;
}

.input-group-custom {
    display: flex;
    gap: 10px;
}

.section-box {
    /* background: #dde3ea; */
    padding: 0px;
    border-radius: 15px;
    /* height: 100%; */
}

.camd {
    display: flex;
    align-items: center;
}

.upload-icon {
    text-align: center;
    line-height: 1;
    margin-left: auto;
    display: flex;
    align-items: anchor-center;
    gap: 4px;
    flex-direction: row-reverse;
}

/* Upload */
.upload-area {
    border: 2px dashed #5e8ec5;
    border-radius: 15px;
    padding: 11px;
    text-align: center;
    background: #eef3f9;
    width: 100%;
}

.upload-icon img {
    max-width: 50px;
}

textarea {
    border-radius: 15px !important;
    border: 2px solid #7ea1c7 !important;
    resize: none;
}

/* Button */
.submit-btn {
    background: #1c5299;
    color: #fff;
    border: none;
    padding: 10px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    max-width: 250px;
}

.wrapper.frame-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly;
    margin-top: 20px;
}

@media ( min-width:1566px) and (max-width:1920px) {
/*    .bdtop {
        border-top: 2px solid #d4af37;
    }*/

    .mincont {
        padding: 40px 38px 40px;
    }

    .section-box {
        background: #dde3ea;
        padding: 30px;
        align-items: stretch;
        /* height: 100%; */
    }
}

@media ( min-width:1366px) {
    .upload-area small {
        position: absolute;
        right: 5px;
        top: 0px;
        font-size: 0.7rem;
    }

    .upload-area {
        position: relative;
    }

    .form-control {
        font-size: 0.8rem;
    }
}

@media (max-width: 1468px) and ( min-width:768px) {
    body .frame-title {
        margin-top: -50px;
    }
}

@media (max-width: 1468px) and ( min-width:1149px) {
    .wrapper.frame-inner {
        font-size: 0.9rem;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    body .frame-title {
        padding: 10px;
        font-size: 23px;
        border: none;
        margin: 0;
        max-width: 100%;
        background: none;
        line-height: normal;
    }



    body .container.mincont {
        padding: 10px;
    }
}

@media(max-width:768px) {


    .mincont {
        padding: 50px 15px 20px;
    }

    .frame-inner {
        padding-top: 0px !important;
        padding: 15px;
    }

    .midcont .frame-title { /* font-size:14px; */
        padding: 0; /* top:-14px; */
    }

    .input-group-custom {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }
}



/* Main Certificate Frame */
.mincont {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
    /*    padding: 50px 42px;*/
    padding: 40px 38px 20px;
    background: #fde9e0;
    border: 8px solid #fec187; /* gold border */
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

    /* Inner Double Border */
    .mincont::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border: 2px solid #d4af37;
        pointer-events: none;
    }

.text-primary {
    color: #002060 !important;
}

.chardiv {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    line-height: normal;
}
/* Decorative Corner Lines */
.mincont::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#d4af37,#d4af37) 20px 20px/40px 2px no-repeat, linear-gradient(#d4af37,#d4af37) 20px 20px/2px 40px no-repeat, linear-gradient(#d4af37,#d4af37) calc(100% - 20px) 20px/40px 2px no-repeat, linear-gradient(#d4af37,#d4af37) calc(100% - 20px) 20px/2px 40px no-repeat, linear-gradient(#d4af37,#d4af37) 20px calc(100% - 20px)/40px 2px no-repeat, linear-gradient(#d4af37,#d4af37) 20px calc(100% - 20px)/2px 40px no-repeat, linear-gradient(#d4af37,#d4af37) calc(100% - 20px) calc(100% - 20px)/40px 2px no-repeat, linear-gradient(#d4af37,#d4af37) calc(100% - 20px) calc(100% - 20px)/2px 40px no-repeat;
    pointer-events: none;
}

/* Title Styling */
.frame-title {
    text-align: center;
    font-size: 1.3vw;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1c5299;
    margin-bottom: 0px;
    position: relative;
    margin-top: -77px;
    max-width: max-content;
    border: 3px solid;
    padding: 11px 20px;
    margin-left: auto;
    margin-right: auto;
    background: #dde3ea;
    line-height: 1;
}



.main-bg::before {
    background-image: url(image/shape.png);
    content: '';
    background-size: 676px;
    z-index: -1;
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0.3;
}

img.flower, img.flower2 {
    position: absolute;
    top: 14.3vw;
    max-width: 8vw;
    width: 100%;
    z-index: 2;
}

img.flower2 {
    right: 0px;
    transform: scaleX(-1);
}






/* button  */


/* Full screen loader */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #ffffff;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #f37638;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
