/*
	Theme Name: Hello Elementor Child
	Template: hello-elementor
*/
body .elementor-element .h-auto {
	height: auto !important;
}

.ekit-template-content-header {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: transform 0.3s ease;
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 2%), 0 1px 2px rgb(0 0 0 / 5%);
	transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.ekit-template-content-header.hide-header {
	transform: translateY(-100%);
}

.cm-primary-color {
	color: var(--e-global-color-primary);
}

/* Blur Read More */
.blur-content {
	position: relative;
	max-height: 400px;
	overflow: hidden;
	transition: all 0.4s ease;
}

.cm-abt-bio .blur-content {
	max-height: 150px;
}

.read-more-btn {
	color: #fff;
}

.cm-abt-bio .read-more-btn {
	color: #000;
}

.blur-content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 40px;
	backdrop-filter: blur(0px);
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #303030);
}
.partial-content {
	position: relative;
	max-height: 110px;
	overflow: hidden;
	transition: all 0.4s ease;
}

.partial-content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 60px;
	backdrop-filter: blur(0px);
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
}

.cm-abt-bio .blur-content::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fcfcfc);

}

.blur-content.active {
	max-height: 1000px;
}

.blur-content.active::after {
	display: none;
}

.cm-hero-overlay::before {
	background: linear-gradient(180deg, rgba(251, 249, 248, 0.8) 0%, rgba(251, 249, 248, 0.6) 50%, #FBF9F8 100%);
}

.wpcf7-form label {
	width: 100%;
}

span.wpcf7-form-control-wrap {
	margin-top: 8px;
}
/* Contact form -- Start */
.wpcf7-acceptance .wpcf7-list-item {
    display: flex !important;
    align-items: flex-start;
    flex-direction: row !important;
    gap: 8px;
    margin: 0;
}

.wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.wpcf7-acceptance .wpcf7-list-item-label {
    display: inline;
    line-height: 1.5;
}
span.wpcf7-not-valid-tip {
    color: red !important;
}


.cm-consent-form .wpcf7-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.cm-consent-form .wpcf7-form p:first-of-type {
    flex: 1;
    margin: 0;
}

.cm-consent-form .wpcf7-form p:last-of-type {
    margin: 0;
}

.cm-consent-form .wpcf7-submit {
    white-space: nowrap;
}
/* For Mobile */

@media (max-width: 767px) {
    .cm-consent-form .wpcf7-form {
        grid-template-columns: 1fr;
    }

    .cm-consent-form .wpcf7-submit {
        width: 100%;
    }
}




/* Contact Form 7 Horizontal Layout */
/* Base structural wrapper for the form */
.horizontal-form-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Flex layout to align input fields horizontally */
.horizontal-form-wrapper .form-inputs-row {
    display: flex;
    gap: 15px; /* Spacing between the fields */
    margin-bottom: 15px;
}

/* Force fields to take up equal width across the row */
.horizontal-form-wrapper .form-field {
    flex: 1;
}

/* Ensure inputs span the full width of their containers */
.horizontal-form-wrapper input[type="text"],
.horizontal-form-wrapper input[type="email"],
.horizontal-form-wrapper input[type="tel"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
}

/* Consent checkbox row styling */
.horizontal-form-wrapper .form-consent-row {
    margin-bottom: 0px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

/* Adjust layout behavior of the Contact Form 7 acceptance wrapper */
.horizontal-form-wrapper .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
}

/* Fix alignment of the actual checkbox square */
.horizontal-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Submit row layout */
.horizontal-form-wrapper .form-submit-row {
    display: flex;
    justify-content: center;
}

/* .cm-consent-form input.wpcf7-form-control,.cm-consent-form .form-consent-row {
    margin: 0px !important;
} */
.form-inputs-row .form-field .wpcf7-form-control-wrap input.wpcf7-form-control,.cm-consent-form .form-consent-row  {
    margin-bottom: 0px !important;
}

.form-consent-row span.wpcf7-list-item-label {
    color: #fff !important;
}

/* Submit button appearance */
.horizontal-form-wrapper input[type="submit"] {
    padding: 12px 25px;
    background-color: #222222; /* Matches standard styling - change to branding color if needed */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.horizontal-form-wrapper input[type="submit"]:hover {
    background-color: #444444;
}

/* --- Responsive Layout for Mobile/Tablets --- */
@media screen and (max-width: 768px) {
    /* Stack input fields vertically on smaller screens */
    .horizontal-form-wrapper .form-inputs-row {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Make the button stretch edge-to-edge on mobile */
    .horizontal-form-wrapper .form-submit-row,
    .horizontal-form-wrapper input[type="submit"] {
        width: 100%;
    }
}


/* Contact form -- End */



@media (max-width: 1024px) {
    .ekit_menu_responsive_tablet .elementskit-submenu-indicator {
		border:none !important;
	}
}
/* Homepage Serviceboxes -- Start */
/* Force flex containers to allow wrapping so items drop to new rows naturally */
.custom-loadmore-grid {
    flex-wrap: wrap !important;
}

/* Hard hide the items in the last row */
.custom-loadmore-grid .hidden-row-item {
    display: none !important;
}

/* Ensure the button takes a full row width at the bottom */
.custom-loadmore-grid .load-more-btn {
    width: 100% !important;
    flex-basis: 100% !important;
    display: flex !important;
    justify-content: center;
    margin-top: 30px;
}
/* Homepage Serviceboxes -- End */
.carlosPopup{
	display:none !important;
}

/*Bio Read More Popup Start*/
.doctor-full-bio{
    display:none;
}

.doctor-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    z-index:99999;
    display:none;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.doctor-popup.active{
    display:flex;
}

.doctor-popup-inner{
    background:#fff;
    width:100%;
    max-width:min(70vw, 1199px);
    max-height:min(80vh, 800px);
    overflow-y:auto;
    border-radius:12px;
    position:relative;
	display: flex;
}

.doctor-popup-close{
	position: absolute;
    top: 0;
    right: 0;
    font-size: 32px;
    cursor: pointer;
    line-height: 16px;
    z-index: 9;
    padding: 8px;
    background-color: var(--e-global-color-da0b630);
    border-radius: 0 0 0 16px;
}

#doctor-popup-content {
    overflow-y:auto;
}

@media screen and (min-width: 768px) {
	.cm-user-sticky {
		position: sticky;
		top: 50%;
		transform: translateY(-50%);
	}
}
/*Bio Read More Popup End*/


/* Lead connector -- START */
#inline-zV0BZxCR4NSpOyi3DRTU {
    padding-bottom: 24px;
    min-height: 300px;
}

#inline-nkpz1Hzim1nLEIyfhbjV {
/*     padding-bottom: 24px; */
    min-height: 785px;
}

#el_zV0BZxCR4NSpOyi3DRTU_button_5 .form-builder--item.form-builder--btn-submit button.btn.btn-dark.button-element {
  width: 40% !important;
 }
/*
#inline-nkpz1Hzim1nLEIyfhbjV,
#inline-zV0BZxCR4NSpOyi3DRTU{
	overflow: hidden !important;
    max-height: 100% !important;
}
#inline-nkpz1Hzim1nLEIyfhbjV::-webkit-scrollbar,
#inline-zV0BZxCR4NSpOyi3DRTU::-webkit-scrollbar{
	display: none !important;
    width: 0 !important;
    height: 0 !important;
} */
/* Lead connector -- END */