/* Find a grave page css start */

/* Defensive: prevent horizontal page overflow scoped to this template. */
.grave-main-section,
.grave-main-section .container,
.grave-main-section .find-grave-main-width {
	max-width: 100%;
	overflow-x: clip;
}
.grave-main-section *,
.grave-main-section *::before,
.grave-main-section *::after {
	box-sizing: border-box;
}


.disclaimer {    
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 50px;
	text-align:center;
}

.form-group-container {
    display: flex;
    gap: 1rem; /* Add spacing between fields */
    justify-content: space-between; /* Align fields horizontally */
    align-items: flex-start; /* Align labels and inputs vertically */
}

.form-group {
    flex: 1; /* Allow fields to share equal space */
}

.form-control {
    width: 100%; /* Ensure inputs take the full width of their container */
}


.donation-btn-search a.view-images:hover {
    background-color: #fff; /* Replace with your desired hover color */
    color: #000; /* Optional: change text color */
	text-decoration: underline!important;
}


.donation-btn-search a.view-images::before {
    content: url('https://jhbchev.co.za/wp-content/uploads/gallery-icon.svg'); /* Path to your gallery icon */
    display: inline-block;
    width: 16px;
    height: 16px;
	border:0px;
	margin-right:5px;

}


.donation-btn-search a.view-images::hover {
    display: inline-block;
    width: 16px;
    height: 16px;
	border:0px;
	background-color: #f1f1f1!important;
	color:#4C2377!important;
	
	
}

.view-images{
	font-weight:bold;
	border:0px!important;
	color:#4C2377!important;
}
	
	.view-images::hover {
    display: inline-block;
    width: 16px;
    height: 16px;
	border:0px;
	background-color: #f1f1f1!important;
	color:#4C2377!important;
	text-decoration: underline!important;
	
}


.grave-main-section form > div > div {
    width: 100%;
    float: none;
}

.find-grave-main-width {
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 95px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Force the card sections to a hard 700px max regardless of parent width
   (Divi row/column wrappers sometimes override .find-grave-main-width). */
section.grave-main-section .grave-name-feild-main,
section.grave-main-section .grave-select-feild-main,
section.grave-main-section .grave-select-boxes-main {
    max-width: 700px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}


h1.find-grave-title {
    text-align: center;
    font-size: 58px;
    line-height: 71px;
    color: #333;
    font-weight: 400;
    margin-bottom: 12px;
}

.find-grave-check-main p.like-serch {
    text-align: center;
    font-size: 14px;
    line-height: 18px;
    color: #333;
    font-weight: 400;
    padding-bottom: 6px;
}


/* Optional: Align the checkbox and label */
.grave-checkbox-sub .form-check {
    display: flex;
    align-items: center; /* Aligns checkbox and label vertically */
    gap: 8px; /* Adds spacing between checkbox and label */
}

/* Optional: Add padding or margins for better spacing */
.grave-checkbox-title {
    margin-bottom: 10px; /* Adds spacing between the title and checkboxes */
}

.grave-checkbox-title {
    color: #4D207A;
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
}

.grave-checkbox-sub {
    border: 0.25px solid #707070;
    border-radius: 6px;
    opacity: 1;
    padding: 12px;
	display: flex; /* Enables Flexbox layout */
    gap: 20px; /* Adds spacing between checkboxes */
    align-items: center; /* Aligns the checkboxes and labels vertically */
    justify-content: flex-start; /* Ensures content is left-aligned */
}

.form-check {
    margin-bottom: 8px;
}

.grave-checkbox-sub .form-check:last-child {
    margin-bottom: 0;
}

.grave-checkbox {
    padding: 25px 0px;
}

.form-check label {
    margin-left: 15px;
    color: #333;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.or-sepater h6 {
    font-size: 18px;
    line-height: 22px;
    color: #4D207A;
    font-weight: bold;
    padding: 0;
}

.or-sepater {
    text-align: center;
}

.next-btn a {
    border: 3px solid #4C2377;
    border-radius: 24px;
    padding: 10px 85px;
    color: #4C2377;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.next-btn a:hover {
    background: #4C2377;
    color: #fff;
}

.next-btn {
    text-align: center;
}

input.next-btn-input {
    padding: 12px 89px !important;
    border-width: 3px !important;
    font-weight: 500 !important;
    border-color: #4C2377;
    border: 3px solid #4C2377;
    border-radius: 24px;
    display: inline-block;
    padding: 10px 15px;
    color: #4D207A;
    font-size: 14px;
    cursor: pointer;
    line-height: 18px;
}

input.next-btn-input:hover {
    background: #4C2377;
    color: #fff;
}

input.next-btn-input:hover {
    border: solid 3px;
    border-color: #4D207A !important;
}

/* Name feild page start */
.grave-name-feild-main {
    padding: 50px 70px;
    margin-top: 30px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
}

.grave-name-feild-main input[type=text] {
    width: 100%;
    margin-bottom: 40px;
}

.grave-name-feild-main label {
    font-size: 14px;
    line-height: 18px;
    color: #333;
    font-weight: 400;
    display: block;
    padding-bottom: 8px;
}

.go-back-btn {
    margin-top: 40px;
}

/* Name feild page end */

/* date feild select page start */
.grave-select-feild-main {
    padding: 50px 70px;
    margin-top: 50px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
}

.grave-date-select-box-main {
    padding-bottom: 25px;
	margin: 0px 80px;
}

.date-select-boxes .date-select-box,
.grave-select-box .date-select-box {
    position: relative;
    width: 99px;
}

.date-select-boxes .date-select-box::after

    /*,.grave-select-box .date-select-box::after*/
{
    content: "";
    position: absolute;
    background: url("images/chevron-down.svg") center center no-repeat;
    top: 15px;
    right: 3px;
    height: 16px;
    width: 16px;
}

.date-select-boxes {
    display: flex;
    justify-content: space-between;
}

.grave-date-select-box-main label {
    font-size: 14px;
    line-height: 18px;
    color: #333;
    padding-bottom: 8px;
    display: block;
}

.day-select-box span {
    position: absolute;
    left: 0;
    top: -21px;
    font-size: 14px;
    line-height: 18px;
    color: #4C2377;
    font-weight: bold;
}

/* date feild select page end */

/* grave select box page start */


.grave-select-boxes-main {
    text-align: center!important;
	margin-top: 50px!important;
	padding: 50px 70px;
	box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
}

.grave-select-box {
    display: inline-block !important;
    width: auto !important;
    float: none !important;
    text-align: left;
}

.grave-select-box label {
    color: #333;
    font-size: 14px;
    line-height: 18px;
}

.grave-select-box .grave-number-select-box:after {
    content: none;
}

.grave-select-boxes-main .grave-select-box:first-child {
    margin-right: 25px;
}

.grave-select-boxes {
    margin-bottom: 25px;
}

/* grave select box page end */

/* search result grave page start */
.search-result-grave-main {
    display: none;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

section.grave-main-section .search-result-grave-main {
    max-width: 700px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

section.grave-main-section .search-result-grave-main .search-result-box {
    max-width: 100%;
    box-sizing: border-box;
}

.search-details-graver-box {
    display: flex;
    justify-content: space-between;
}

.search-result-box .search-name p {
    color: #4d2377;
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;

}


.search-details-graver-box label {
    display: block;
    font-size: 12px;
    line-height: 15px;
    color: #666;
    font-weight: 500;
    margin-top: 15px;
}

.search-details-graver-box span {
    font-size: 12px;
    color: #4D207A;
    line-height: 15px;
    font-weight: bold;
    display: inline-block;
    margin-top: 7px;
}

.donation-btn-search a {
    margin-top: 15px;
    border: 3px solid #4C2377;
    border-radius: 24px;
    display: inline-block;
    padding: 10px 14px;
    color: #4D207A;
    font-size: 14px;
    line-height: 18px;
	min-width: 137px;
    text-align: center;
}

.donation-btn-search a:hover {
    background: #4C2377;
    color: #fff;
	text-align: center;
}

.search-details-graver-box .geaver-box-1,
.search-details-graver-box .geaver-box-2,
.search-details-graver-box .geaver-box-3 {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    width: 33.33%;
}

.donation-btn-search {
    margin-top: auto;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.search-result-grave-main .search-result-box {
    margin: 30px 0px;
    padding: 30px;
    text-align: left;
	box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);

}

.grave-pagination-list {
    clear: both;
    text-align: center;
    margin-top: 30px;
}

.grave-pagination-list li {
    display: inline-block;
    margin-right: 15px;
    /* width: 58px; height: 47px; */
    border: 3px solid #4D207A;
    border-radius: 26px;
    background: #4D207A;
}

.grave-pagination-list li a {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    line-height: 45px;
    padding: 14px 26px;
}

.grave-pagination-list li.active {
    background: #fff;
}

.grave-pagination-list li.active a {
    color: #4D207A;
}

.search-result-grave-main h6 {
    font-size: 18px;
    line-height: 22px;
    color: #4D207A;
    font-weight: 700;
    text-align: center;
    padding-bottom: 30px;
}

.serch-result-filter-select {
    display: inline-block;
    position: relative;
}

.serch-result-filter-select::before {
    content: "";
    position: absolute;
    background: url("images/chevron-down.svg") center center no-repeat;
    top: 7px;
    right: 8px;
    height: 16px;
    width: 16px;
}

.search-result-filter {
    text-align: center;
    margin-bottom: 25px;
}

.serch-result-filter-select select {
    padding: 5px;
    width: 54px;
    min-width: auto;
    background: #fff;
    border: 1px solid #707070;
    color: #666 !important;
}

.grave-search-again a,
.search-return-home a {
    padding: 10px 65px;
}

/* extarnal care popup start */
.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 24rem;
    border-radius: 0.5rem;
}

.close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-size: 19px;
}

.close-button:hover {
    background-color: darkgray;
}

.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
    z-index: 999999;
}

.extarnal-care-main .wpcf7-spinner {
    position: absolute;
}

.extarnal-care-main input.wpcf7-submit {
    margin-top: 15px;
    border: 3px solid #4C2377;
    border-radius: 24px;
    display: inline-block;
    padding: 15px 15px;
    color: #4D207A;
    font-size: 14px;
    line-height: 18px;
    width: 285px;
    float: none;
}

.extarnal-care-main input.wpcf7-submit:hover {
    background: #4C2377;
    color: #fff;
    padding: 15px 15px !important;
}

/* our css */
.grave-main-section .modal-content {
    max-width: 569px;
    width: calc(100% - 50px);
}

.grave-main-section .modal-img .modal-content {
    max-height: 569px;
}

.modal-img .modal-slider-main .slider-for .slick-slide img {
    height: 300px;
    width: auto;
    margin: 0 auto;
}

.modal-img .modal-slider-main .slider-nav .slick-slide img {
    height: 90px;
    width: 90px;
}

.extarnal-care-main {
    padding: 18px 60px;
}

.extarnal-care-main h6 {
    font-size: 14px;
    line-height: 18px;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.extarnal-care-main h5 {
    font-size: 14px;
    line-height: 18px;
    color: #666;
    font-weight: 700;
    text-align: center;
    padding-bottom: 14px;
}

.extarnal-care-main p {
    font-size: 14px;
    line-height: 18px;
    color: #666;
    font-weight: 400;
    text-align: center;
}

.extarnal-care-popup-feilds label {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    padding-bottom: 8px;
    text-align: left;
}

.extarnal-care-popup-feilds input:not(.popup-submit) {
    width: 100%;
}

.extarnal-care-popup-feilds {
    margin-top: 30px;
}

.extarnal-care-popup-feilds .form-group {
    margin-bottom: 30px;
}

.extarnal-care-popup-feilds .form-group input[type=text],
.extarnal-care-popup-feilds .form-group input[type=email] {
    height: 59px;
}

/* .form-sumit-btn .popup-submit{width: auto;} */
.form-sumit-btn {
    text-align: center;
}

.modal-close-btn {
    text-align: right;
}

.modal-close-btn label {
    padding-right: 15px;
    font-size: 16px;
    color: #4C2377;
    font-weight: 700;
}

/* extarnal care popup end */

/* images modal start */
.slick-initialized.slider-nav .slick-slide {
    padding: 0px 5px;
}

.slick-initialized.slider-nav {
    margin-top: 5px;
}

.modal-slider-main {
    padding: 50px 10px;
}

.modal-slider-main .slick-slide img {
    border-radius: 5px;
}

.img-modal-submit {
    margin-top: 45px;
}

/* search result grave page end */

/* error page start */
.error-grave-main {
    text-align: center;
}

.error-grave-main h6 {
    font-size: 12px;
    line-height: 15px;
    font-weight: 700;
}

.error-grave-main p {
    font-size: 12px;
    line-height: 15px;
    font-weight: 400;
}

.error-next-btn {
    margin-top: 25px;
}

.error-next-btn a {
    padding: 10px 20px;
}

/* error page end */

/* Find a grave page css end */


/* inline css */
.d-none-new {
    display: none;
}

.error_style {
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    background-color: #F9E4E8;
    color: #E04562;
    padding: 18px 12px;
    border-radius: 0;
    line-height: 2em;
    margin: 5px 0px 30px 0px;
}

input.error {
    margin-bottom: 5px !important;
    border-left: 1px solid #DE4764;

}

.download_map {
    text-align: center;
    margin: 20px 0px;
}

/* .download_map:hover{
        background-color: #4d207a;
    }*/
.maplink {
    color: #4d207a;
    font-size: 17px;
    text-decoration: underline;
}

.maplink:hover {
    color: #000;
}

/*loader css*/
.lds-dual-ring.hidden {
    display: none;
}

/*Add an overlay to the entire page blocking any further presses to buttons or other elements.*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, .5);
    z-index: 999999;
    opacity: 1;
    transition: all 0.5s;
}

/*Spinner Styles*/
.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 5% auto;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lightboxOverlay {
    z-index: 99999999;
}

.lightbox {
    z-index: 99999999;
}


/*custom zoom effect*/
.jqzoom {
    /*            display:inline-block;*/
    position: relative;
}

/* magnifying glass icon */

.jqzoom img {
    display: block;
}

.jqzoom img::selection {
    background-color: transparent;
}

.jqzoom img:hover {
    cursor: grab, default;
}

.jqzoom img:active {
    cursor: grabbing, default;
}

/*zoom end */


/* =========================================================================
   Responsive
   Three breakpoints:
     * tablet:        <= 1023px
     * phone:         <=  767px
     * small-phone:   <=  480px
   ========================================================================= */

@media (max-width: 1023px) {
    .find-grave-main-width {
        margin-top: 60px;
        margin-bottom: 30px;
    }

    h1.find-grave-title {
        font-size: 42px;
        line-height: 50px;
    }

    section.grave-main-section .grave-name-feild-main,
    section.grave-main-section .grave-select-feild-main,
    section.grave-main-section .grave-select-boxes-main {
        padding: 40px 40px !important;
    }

    .grave-name-feild-main input[type=text] {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .find-grave-main-width {
        margin-top: 40px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    h1.find-grave-title {
        font-size: 32px;
        line-height: 38px;
        margin-bottom: 8px;
    }

    section.grave-main-section .grave-name-feild-main,
    section.grave-main-section .grave-select-feild-main,
    section.grave-main-section .grave-select-boxes-main {
        padding: 32px 24px !important;
        margin-top: 30px !important;
    }

    .grave-name-feild-main input[type=text] {
        margin-bottom: 24px;
    }

    .grave-date-select-box-main {
        margin: 0 !important;
        padding-bottom: 20px;
    }

    /* Date selects share the row evenly instead of fixed 99px each. */
    .date-select-boxes {
        display: flex;
        gap: 8px;
    }
    .date-select-boxes .date-select-box,
    .grave-select-box .date-select-box {
        flex: 1 1 0;
        min-width: 0;
        width: auto !important;
    }
    .date-select-boxes .date-select-box select.form-select {
        width: 100%;
        min-width: 0;
    }

    /* Search-result pill buttons stack 2-per-row on phone. */
    .donation-btn-search a {
        font-size: 13px;
        padding: 8px 12px;
        flex: 1 1 calc(50% - 12px);
        text-align: center;
    }

    .search-result-grave-main h6 {
        font-size: 12px;
        padding-bottom: 10px;
    }

    /* Modal popups fit the viewport. */
    .grave-main-section form .modal-content {
        max-width: 92%;
    }

    .extarnal-care-main {
        padding: 24px 16px;
    }

    .grave-pagination-list li {
        margin-right: 6px;
    }

}

@media (max-width: 480px) {
    h1.find-grave-title {
        font-size: 26px;
        line-height: 32px;
    }

    section.grave-main-section .grave-name-feild-main,
    section.grave-main-section .grave-select-feild-main,
    section.grave-main-section .grave-select-boxes-main {
        padding: 24px 16px !important;
    }

    /* Stack pill buttons one per row on tiny screens. */
    .donation-btn-search a {
        flex: 1 1 100%;
    }

    /* Slick image slider fills the modal. */
    .modal-img .modal-slider-main .slider-for .slick-slide img {
        width: 100%;
    }

    .modal-slider-main {
        padding: 15px 8px;
    }
}