:root {
    --primary: #003F5B;
    --hover: #c84644;
    --blue: #287889;
    --lblue: #CCF8EC;
    --mplum: #ECDAFF;
}

a {
    -webkit-box-shadow: none;
    box-shadow: none;
    text-decoration: none
}

body {
    background-color: #fff
}

.search-layout {
    display: flex;
    display: -webkit-flex;
    padding: 12px 30px
}

.s-result {
    padding: 0 8px;
    min-height: 88vh;
    position: relative;
    width: 80%
}

.s-result h1 {
    font-size: 25px;
    color: var(--primary);
    background: #eee;
    margin: 0;
    padding: 8px;
    margin-bottom: 8px;
    border-right: 3px solid;
    font-weight: 400
}

.ftitle {
    padding: 12px 0;
    border-right: 3px solid var(--primary);
    background: #eee;
    text-align: center;
    font-size: 18px;
    color: var(--primary)
}

.filters {
    width: 20%;
    border: 0.5px solid #eee;
    min-width: 258px
}

.filter-item {
    background: #eee;
    margin: 12px
}

.myicon {
    position: relative;
    width: 14px;
    float: left;
    display: inline-block
}

.myicon::after, .myicon::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background: var(--primary);
    top: 11px
}

.myicon::after {
    transform: rotate(-90deg);
    transition: 0.3s linear
}

.sf-item {
    max-height: 0;
    transition: all 0.3s;
    padding: 0 8px;
    overflow: hidden
}

.ititle {
    display: inline-block;
    padding: 8px;
    cursor: pointer;
    width: 100%
}

.tricon::after {
    transform: rotate(0)
}

.fopt {
    padding: 4px 0;
}

.fopt input, .fopt select {
    border-radius: 3px;
    border: 1px solid var(--blue);
    padding: 4px;
    text-align: center;
    outline: none;
}

.fopt select {
    min-width: 100px
}

.fopt label {
    user-select: none;
    cursor: pointer
}

.rang-con {
    padding: 28px;
    margin-bottom: 12px;
    position: relative
}

.rang-con input {
    -webkit-appearance: none;
    direction: ltr;
    width: 50%;
    padding: 0;
    height: 3px;
    margin: 0;
    position: absolute;
    left: 1px;
    bottom: 0;
    background: var(--primary);
    border: none;
    outline: none
}

.rang-con input:nth-child(1) {
    right: 0;
    bottom: 0;
    left: unset
}

.rang-con input::-webkit-slider-thumb {
    -webkit-appearance: none;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mplum);
    border: 8px solid var(--primary)
}

.outmax, .outmin {
    display: block;
    position: absolute;
    bottom: 24px;
    z-index: 2;
    text-align: center
}

.outmax::after, .outmin::after {
    content: "";
    position: absolute;
    display: block;
    background: #fff;
    border: 2px solid var(--primary);
    width: 27px;
    height: 27px;
    bottom: -4px;
    z-index: -1;
    border-radius: 16px;
    border-bottom-right-radius: 0;
    transform: rotate(45deg);
}

.outmin::after {
    left: -5px
}

.outmax::after {
    left: -7px
}

.outmin {
    left: 2%
}

.outmax {
    right: 1%
}

.btn_clean, .btn_save {
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: all 0.3s;
    margin: 0 4px 32px 4px
}

.btn_save {
    background: var(--primary);
    color: #fff
}

.btn_clean {
    color: var(--primary);
    padding: 6.5px 17px;
    border: 1px solid var(--primary);
    background: #fff
}

.btn_clean:hover, .btn_save:hover {
    background: var(--mplum);
    color: var(--primary)
}

.sort {
    padding: 8px
}

.sort select {
    border-radius: 3px;
    border: 1px solid var(--blue);
    padding: 4px;
    text-align: center;
    outline: none;
    width: 90px;
    margin-left: 12px
}

.shdesk {
    display: inline-block
}

.result {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    justify-content: start;
    position: relative;
    min-height: 500px;
    padding: 8px 12px
}

.loading {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
    border-radius: 3px;
    padding-top: 25%;
    background: rgba(0, 0, 0, 0.4)
}

.loading i {
    color: #fff;
    font-size: 62px
}

.doner-item {
    width: 23.5%;
    min-width: 220px;
    border-radius: 3px;
    margin: 12px 6px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
    position: relative;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2)
}

.doner-item:hover {
    background: #ECF0F1
}

.available {
    position: absolute;
    top: 0;
    background-color: #ffffffee;
    border-bottom-left-radius: 13px;
    border-top-left-radius: 13px;
    border-top-right-radius: 3px;
    padding-inline-end: 8px
}

.available i {
    font-size: 10px;
    color: #0f0;
    margin: 8px
}

.orgst, .orgst i {
    color: #ffa500
}

.doner-item .img {
    display: flex;
    display: -webkit-flex;
    background: #ECF0F1
}

.doner-item .img img {
    width: 100%;
    height: 240px;
    object-fit: scale-down
}

.heart {
    cursor: pointer;
    float: left
}

.heart i {
    color: var(--primary);
    font-size: 20px
}

.donor-info {
    padding: 12px
}

.donor-field {
    margin: 8px 0
}

.donor-field span:nth-child(1) {
    display: inline-block;
    font-weight: 600;
    width: 80px
}

.moreinfo {
    display: inline-block;
    text-align: center;
    width: 100%;
    background: #be89e7;
    color: #fff;
    border: none;
    border-radius: 3px;
    transition: all 0.2s;
    margin-top: 8px;
    padding: 8px 0
}

.moreinfo:hover {
    background: var(--mplum);
    color: var(--primary)
}

.filter_btn {
    display: none;
    cursor: pointer
}

.profile-layout {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    padding: 30px 7%;
    justify-content: space-between
}

.profile-side {
    width: 28%;
    background: #f7f7f7;
    text-align: center;
    max-width: 270px;
    border-radius: 3px;
    padding: 30px 0
}

.profile-side img {
    width: 75%;
    border-radius: 3px
}

.btnpro {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    margin-top: 16px;
    margin-bottom: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s
}

.btnpro:hover {
    background: var(--mplum);
    color: var(--primary)
}

.psitem, .ptitem {
    padding: 8px;
    background: lightgray;
    margin-top: 2px;
    cursor: pointer
}

.psitem:hover, .ptitem:hover {
    color: var(--primary)
}

.psb {
    background: var(--mplum)
}

.profile-tabs {
    width: 72%;
    border-radius: 3px;
    padding: 24px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1)
}

#tab2, #tab3, #tab4 {
    display: none
}

.tab-title {
    font-size: 18px;
    margin-bottom: 18px
}

.fgroup {
    margin: 12px 0
}

.fgroup>label {
    width: 120px;
    background: #f7f7f7;
    padding: 8px;
    border-bottom: 1.5px solid #f7f7f7;
    display: inline-block
}

.fgroup>input, .fgroup>select {
    border: none;
    border-bottom: 1.5px solid #eee;
    min-width: 50%;
    padding: 10px;
    background: #fff;
    outline: none
}

.donor-des img {
    float: left;
    max-width: 38%;
    margin-right: 8px
}

.ddt {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary)
}

.stitle {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary)
}

.donor-des {
    width: 100%;
    padding: 12px;
    border: 3px solid var(--mplum)
}

.dtable {
    border: 3px solid var(--primary);
    width: 100%
}

.rmerg {
    text-align: center;
    background: var(--primary) !important;
    font-weight: bold;
    font-size: 16px;
    color: #efefef
}

.dtable, .dtable th, .dtable td {
    padding: 10px;
    border-collapse: collapse
}

.dtable th {
    background: var(--mplum);
    text-align: start
}

.stable th {
    width: 75%;
    background: unset
}

.stable tr:nth-child(even) {
    background-color: var(--lblue)
}

.rdf {
    margin: 8px 0;
}

.rdf>label {
    display: inline-block;
    width: 120px;
    padding: 8px;
    border-radius: 3px;
    background: var(--lblue)
}

.rdf input, .rdf select, .rdfc {
    display: inline-block;
    width: 230px;
    border: none;
    outline: none;
    padding: 9px;
    border-radius: 3px;
    background: #f7f7f7
}

.btnproreg {
    /* width: 120px; */
    min-width: 100px;
    padding: 10px;
    border: none;
    outline: none;
    background: green;
    color: #fff;
    cursor: pointer;
    border-radius: 3px
}

.btnproreg:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mbtnupg {
    background: var(--primary);
    color: #fff;
    margin: auto;
    border-radius: 24px;
    padding: 4px 18px;
    margin-left: 8px
}

input[type="file"] {
    display: none;
}

.req-donor {
    margin-top: 16px;
    width: 100%
}

.req-donor form {
    width: 100%
}

.rdfg {
    width: 48%
}

.rdfg textarea, .rfsel {
    width: 100%;
    border: 2px solid var(--mplum);
    margin: 8px 0;
    height: 60%;
    outline: none;
    border-radius: 3px;
    padding: 8px
}

.rfsel {
    border: 2px solid var(--mplum) !important;
    background-color: #fff !important
}

.dfcon {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between
}

.rdfg2 {
    width: 100%
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb
}

.rgroup, .rgs {
    width: 49%;
    padding: 8px
}

.rgs select, .rgs input {
    display: block;
    background: #fff;
    padding: 4px 8px;
    margin: 8px 0;
    min-width: 170px;
    border: 1px solid var(--blue);
    border-radius: 5px
}

.surfields {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
}

.tblreq th, .tblreq td {
    padding: 8px;
    min-width: 125px;
    text-align: start
}

.tblreq {
    border: 2px solid var(--primary);
    margin-bottom: 8px;
    border-radius: 5px;
    width: 100%
}

.tblreq, .tblreq tr {
    border-collapse: collapse
}

.tblreq tr:nth-child(odd) {
    background: #f7f7f7
}

.message-box {
    background: #fff;
    padding: 1rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 16px auto 0;
    width: 100%
}

.message-box a {
    display: inline-block;
    padding: 0.6rem 2.2rem;
    background: #12A19A;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease
}

.message-box a:hover {
    background: #0d817bff
}

@media (max-width:1000px) {

    .doner-item {
        width: 48%
    }

    .rdfg {
        width: 100%
    }

    .dfcon {
        flex-direction: column
    }

    .surfields {
        flex-direction: column
    }

    .rgroup, .rgs {
        width: 100%;
    }
}

@media (max-width:820px) {
    .search-layout {
        flex-direction: column;
    }

    .filters {
        margin-bottom: 16px;
        width: 100%
    }

    .outmin {
        left: 1%
    }

    .filter_btn {
        display: inline-block
    }

    .s-result {
        width: 100%
    }

    .shdesk {
        display: none
    }
}

@media (max-width:700px) {
    .profile-tabs, .profile-side {
        width: 100%;
        max-width: 100%;
    }

    .rdf input, .rdf select, .fgroup>input, .fgroup>select, .rdfc {
        width: 100%
    }
}

@media (max-width:560px) {
    .doner-item {
        width: 100%
    }

    .result {
        padding: 0
    }

    .donor-des img {
        max-width: 100%;
        width: 100%;
        margin: 12px 0;
    }
}