/*--------------------------------------------------------------
# Modal
--------------------------------------------------------------*/

.modal-content {
    border-radius: 10px;
}

.modal .modal-header {
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    width: 100%;
}

.modal .modal-header .modal-title {
    width: 100%;
}

.modal .modal-body button {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 32px;
    border-radius: 20px;
    transition: 0.5s;
    color: #fff;
    background: #2A774C;
}

.modal .modal-body input {
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 20px 20px;
    border-radius: 4px;
    transition: 0.5s;
}

.modal .modal-body textarea {
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 20px 20px;
    border-radius: 4px;
    transition: 0.5s;
}

.modal-backdrop {
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 59;
    width: 100vw;
    height: 100vh;
    background-color: #2A774C;
}

/*--------------------------------------------------------------
#Location modal
--------------------------------------------------------------*/

#location-modal .modal-content {
    border-radius: 50px;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
    background: rgba(42, 119, 76, 0.5);
    backdrop-filter: blur(5px);
    height: 100%;
    background-size: contain;
}

#location-modal .modal-content .location-header {
    background-color: #18442B;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    width: 123%;
}

#location-modal .modal-content .modal-body {
    background-color: white;
    width: max-content;
    height: 250px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    justify-content: center;
}

#location-modal .modal-content .modal-body p {
    color: #2A774C;
    font-size: 18px;
    text-align: center;
}

#location-modal .modal-content .modal-body .box h5 {
    padding-block: 0;
}

#location-modal .modal-content .modal-body .box {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 1.0rem;
    margin: 0 1.0rem 4.0rem 1.0rem;
    background: #EEFBD8;
    box-shadow: -3px 6px 8px 0 rgba(52, 51, 54, 0.281);
    transition: all 0.3s ease-in-out;
    text-align: center;
    /* max-height: 110px; */
    margin-block: 0px;
    /* padding-inline: 100px; */
    padding: 18px;
    height: 142px;
    width: 167px;
}

#location-modal .modal-content .modal-body .box:hover {
    transform: scale(1.1);
}

#location-modal .location-container {
    flex-wrap: wrap;
    justify-content: center
}

#location-modal img {
    width: 86px;
    height: auto;
}

@media (max-width: 426px) {
    #location-modal .location-container {
        justify-content: center;
        flex-direction: column;
        align-content: center;
        height: max-content;
    }
    #location-modal .modal-content {
        border-radius: 50px;
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        max-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #location-modal .modal-header {
        background-color: #18442B;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        width: 100%;
    }
    #location-modal .modal-content .modal-body {
        background-color: white;
        width: 80vw;
        height: 82vh;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
        justify-content: center;
    }
    #location-modal .modal-content .modal-body p {
        color: #2A774C;
        font-size: 18px;
        text-align: center;
    }
    #location-modal .modal-content .modal-body .box h5 {
        padding-block: 10px;
        font-size: 15px;
        /* padding-top: 23px; */
        margin-top: 15px;
    }
    #location-modal .modal-content .modal-body .box {
        cursor: pointer;
        position: relative;
        overflow: hidden;
        border-radius: 1.0rem;
        margin: 0 1.0rem 4.0rem 1.0rem;
        background: #EFEFEF;
        box-shadow: -3px 6px 8px 0 rgb(52 51 54 / 28%);
        transition: all 0.3s ease-in-out;
        text-align: center;
        /* max-height: 110px; */
        margin-block: 0px;
        padding-inline: 15px;
        padding-block: 6px;
        height: fit-content;
        width: 180px;
        display: flex;
        flex-direction: row;
        margin-block: 9px;
        align-items: center;
        justify-content: center;
    }
    #location-modal .modal-content .modal-body img {
        height: auto;
        width: 11vw;
    }
    #location-modal .modal-content .modal-body .box:hover {
        transform: scale(1.1);
    }
    #location-modal .location-container {
        flex-wrap: wrap;
        justify-content: center
    }
}

/*--------------------------------------------------------------
# Modal pop-up
--------------------------------------------------------------*/

#pop-up-modal .modal-body {
    background-image: url('../img/home/soy-fed-pop.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 424px;
    width: 720px;
}

#pop-up-modal .modal-body img {
    align-content: center;
    position: sticky;
    width: 242px;
    margin-top: -17px;
    margin-left: 400px;
}

#pop-up-modal .modal-content {
    border-radius: 50px;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pop-up-modal .modal-body #btn-know-more {
    margin-top: 309px;
    margin-left: 449px;
}

#pop-up-modal .modal-body span {
    color: transparent;
}

#pop-up-modal .modal-body .black-text {
    margin-top: -58px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-left: 396px;
}

#pop-up-modal .modal-body .black-text2 {
    margin-top: -58px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-left: 423px;
}

#pop-up-modal .modal-body .green-text {
    color: #5A981F;
    margin-top: -58px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-left: 461px;
}

/* body *:not(#location-modal) {
    filter: blur(3px);
} */

@media (max-width: 426px) {
    #pop-up-modal .modal-body {
        background-image: url('../img/home/soy-fed-v.png');
        background-repeat: no-repeat;
        background-size: cover;
        height: 453px;
        width: 100%;
        border-radius: 0;
        padding-bottom: 402px;
    }
    #pop-up-modal .modal-body .row {
        justify-content: center;
    }
    .modal-content {
        height: 0px;
        width: 189px;
    }
    #pop-up-modal .modal-body #btn-know-more {
        margin-top: 110% !important;
        margin-left: 0 !important;
    }
    #pop-up-modal .modal-body img {
        align-content: center;
        /* position: sticky; */
        width: 242px;
        margin-top: 55px;
        margin-left: 0px;
    }
    #pop-up-modal .modal-body .black-text {
        margin-top: -58px;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        margin-left: 23px;
    }
    #pop-up-modal .modal-body .black-text2 {
        margin-top: -58px;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        margin-left: 29px;
    }
    #pop-up-modal .modal-body .green-text {
        color: #5A981F;
        margin-top: -58px;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        margin-left: 65px;
    }
}

/* Modal for error */

@media (min-width: 426px) and (max-width: 500px) {
    #pop-up-modal-error .text-modal {
        width: 50vw !important;
        text-align: center !important;
    }
}

#pop-up-modal-error .modal-body {
    background-repeat: no-repeat;
    background-size: cover;
    height: 424px;
    width: 720px;
    justify-content: center;
}

#pop-up-modal-error .modal-body img {
    align-content: center;
    position: sticky;
    width: 242px;
    margin-top: -17px;
    margin-left: 400px;
}

#pop-up-modal-error .text-modal {
    width: 50vw;
    text-align: center;
}

#pop-up-modal-error .modal-content {
    border-radius: 50px;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pop-up-modal-error .modal-body button {
    margin-top: 310px;
    margin-left: 420px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 32px;
    border-radius: 20px;
    transition: 0.5s;
    color: #fff;
    background: #2A774C;
}

#pop-up-modal-error .modal-body span {
    color: transparent;
}

#pop-up-modal-error .modal-body .black-text {
    margin-top: -58px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-left: 396px;
}

#pop-up-modal-error .modal-body .black-text2 {
    margin-top: -58px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-left: 423px;
}

#pop-up-modal-error .modal-body .green-text {
    color: #5A981F;
    margin-top: -58px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-left: 461px;
}

#pop-up-modal-error .modal-backdrop {
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 59;
    width: 100vw;
    height: 100vh;
    background-color: #2A774C;
}

#pop-up-modal-error .text-modal {
    width: fit-content;
    text-align: center;
}

@media (max-width: 423px) {
    #pop-up-modal-error .text-modal {
        width: 50vw !important;
        text-align: center !important;
    }
    #pop-up-modal-error .modal-backdrop {
        backdrop-filter: blur(5px);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 59;
        width: 100vw;
        height: 100vh;
        background-color: #2A774C;
    }
    #pop-up-modal-error .modal-body {
        background-repeat: no-repeat;
        background-size: initial;
        height: 453px;
        width: 289px;
        border-radius: 0;
        padding-bottom: 402px;
    }
    .modal-content {
        height: 0px;
        width: 189px;
    }
    #pop-up-modal-error .modal-body button {
        margin-top: 325px;
        margin-left: 58px;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 32px;
        border-radius: 20px;
        transition: 0.5s;
        color: #fff;
        background: #2A774C;
    }
    #pop-up-modal-error .modal-body img {
        align-content: center;
        /* position: sticky; */
        width: 242px;
        margin-top: 55px;
        margin-left: 0px;
    }
    #pop-up-modal-error .modal-body .black-text {
        margin-top: -58px;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        margin-left: 23px;
    }
    #pop-up-modal-error .modal-body .black-text2 {
        margin-top: -58px;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        margin-left: 29px;
    }
    #pop-up-modal-error .modal-body .green-text {
        color: #5A981F;
        margin-top: -58px;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        margin-left: 65px;
    }
}

/* Search bar modal */

#search-modal {
    top: 5rem;
    overflow: hidden;
}

.modal-content {
    border-radius: 10px;
    z-index: 99999;
}

.modal .search-header {
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    width: 100%;
}

.modal .search-header .text-area{
    background: black;
    color: white;
    border: none;
    width: 89%;
}

.modal .search-header .modal-title {
    width: 100%;
}

.modal .modal-body-search button {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 32px;
    border-radius: 20px;
    transition: 0.5s;
    color: #fff;
    background: #2A774C;
}

.modal .modal-body input {
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 20px 20px;
    border-radius: 4px;
    transition: 0.5s;
}

.modal .modal-body textarea {
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 20px 20px;
    border-radius: 4px;
    transition: 0.5s;
}

.modal-backdrop {
    backdrop-filter: blur(5px);
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 59;
    width: 100vw;
    height: 100vh;
    background-color: #2A774C;
}

#search-modal .results {
    padding-inline: 20px;
}

#search-modal .title {
    font-weight: 600;
    color: #2A774C;
    margin-bottom: 3px;
    margin-top: 0;
}

#search-modal .description {
    font-weight: 400;
    color: #202900;
    margin-bottom: 3px;
    margin-top: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.modal .search-body {
    margin: 0%;
    padding: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 50vh;
}

#search-modal hr {
    color: #2A774C;
    width: 92%;
    border-top: 2px solid;
}

@media (max-width: 430px) {
    .search-img {
        content: url("/assets/img/icon/search.png");
        width: 36px !important;
        height: 22px!important;
        margin-top: 9px!important;
        margin-inline: 14px;
        margin-left: -5%;
        display: none;
    }
    #search-modal {
        top: 5rem;
        overflow: hidden;
    }
    .modal-content {
        border-radius: 10px;
        z-index: 99999;
        overflow: hidden;
        height: max-content;
        width: 98%;
    }
    .modal .search-header {
        background: #000;
        color: #fff;
        text-align: center;
        border-radius: 8px;
        width: 68vw;
    }
    .modal .search-header .modal-title {
        width: 100%;
    }
    .modal .modal-body-search button {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 32px;
        border-radius: 20px;
        transition: 0.5s;
        color: #fff;
        background: #2A774C;
    }
    .modal .modal-body input {
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 20px 20px;
        border-radius: 4px;
        transition: 0.5s;
    }
    .modal .modal-body textarea {
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 20px 20px;
        border-radius: 4px;
        transition: 0.5s;
    }
    .modal-backdrop {
        backdrop-filter: blur(5px);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 59;
        width: 100vw;
        height: 100vh;
        background-color: #2A774C;
    }
    #search-modal .results {
        padding-inline: 23px;
    }
    #search-modal .title {
        font-weight: 600;
        color: #2A774C;
        margin-bottom: 3px;
        margin-top: 0;
        text-align: left;
    }
    #search-modal .description {
        font-weight: 400;
        color: #202900;
        margin-bottom: 3px;
        margin-top: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: left;
    }
    .modal .search-body {
        background: white;
        margin-top: 0;
        padding: 0;
        overflow-y: scroll;
        /* overflow-x: hidden; */
        /* overflow: auto; */
        height: auto !important;
        width: 100%;
    }
    #search-modal hr {
        color: #2A774C;
        width: 92%;
        border-top: 2px solid;
    }
    .search-dialog {
        width: 70vw;
        /* justify-content: center; */
        margin-left: 14vw;
    }
}


@media (max-width: 375px) {
    .search-img {
        content: url("/assets/img/icon/search.png");
        width: 36px !important;
        height: 22px!important;
        margin-top: 9px!important;
        margin-inline: 14px;
        margin-left: -5%;
    }
    #search-modal {
        top: 5rem;
        overflow: hidden;
        z-index: 10000;
    }
    .modal-content {
        border-radius: 10px;
        z-index: 99999;
    }
    .modal .search-header {
        background: #000;
        color: #fff;
        text-align: center;
        border-radius: 8px;
        width: 100%;
    }
    .modal .search-header .modal-title {
        width: 100%;
    }
    .modal .modal-body-search button {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 32px;
        border-radius: 20px;
        transition: 0.5s;
        color: #fff;
        background: #2A774C;
    }
    .modal .modal-body input {
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 20px 20px;
        border-radius: 4px;
        transition: 0.5s;
    }
    .modal .modal-body textarea {
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 20px 20px;
        border-radius: 4px;
        transition: 0.5s;
    }
    .modal-backdrop {
        backdrop-filter: blur(5px);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 59;
        width: 100vw;
        height: 100vh;
        background-color: #2A774C;
    }
    #search-modal .results {
        padding-inline: 23px;
    }
    #search-modal .title {
        font-weight: 600;
        color: #2A774C;
        margin-bottom: 3px;
        margin-top: 0;
        text-align: left;
    }
    #search-modal .description {
        font-weight: 400;
        color: #202900;
        margin-bottom: 3px;
        margin-top: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: left;
    }
    .modal .search-body {
        margin: 0%;
        padding: 0;
        overflow-y: scroll;
        overflow-x: hidden;
        max-height: 50vh;
    }
    #search-modal hr {
        color: #2A774C;
        width: 92%;
        border-top: 2px solid;
    }
    .search-dialog {
        width: 70vw;
        /* justify-content: center; */
        margin-left: 14vw;
    }
}