@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

<style>
@import url('https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400..700;1,400..700&display=swap');
</style>



* {
    font-family: "lato" !important;
	letter-spacing: -0em;
    text-align: center;
}

html {
	overflow-x: hidden;
}
ul li {
	list-style: none;
}

h2 {
    color: #349ac8;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 0px 0px 0px;
    font-family: "Gelasio", serif;
    font-weight: 400;
    font-size: 45px;
    margin-bottom: 0px; 
    text-align: center; 
}

@media (max-width: 768px) {
    h2 {
        font-size: 32px;
        width: 80%;
        padding: 30px 0px 0px 0px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 28px;
        width: 90%;
        padding: 20px 0px 0px 0px;
    }
}

h5 {
    font-family: "lato";
    font-size: 18px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

h6 {display: block;
    color: #349ac8;
    font-family: "Gelasio", serif;
    font-weight: 400;
    text-align: right;
    font-size: 40px;
    padding: 0px 50px 0px 0px;
    margin: 0px;
    @media (max-width: 600px) {
        font-size: 25px;
    }
}
@media (max-width: 600px) {
    h6 {
        display: none;
    }
}    

.logo {
    background-color: white;
    width: 100%;
    text-align: center;
    border-bottom: 6px solid #6e6f6e;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.logo img {
    width: 200px;
    padding: 20px 50px 20px 50px;
    display: block;
    height: auto;
    max-width: 100%;
}

body {
	display: block;
	background: white;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

strong {
    color: #349ac8;
}

.phoneicon{
    width:auto !important; 
    height:40px !important; 
    vertical-align: middle !important; 
    padding-right: 20px !important;
}

.wrapper {
	display: block;
	width: 100%;
	margin: 0 auto;
}

header {
	background: #fff;
	margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
}

header .top {
    
	display: flex;
	align-items: center;
	background: #ffffff; 
}

.headimg {
    margin-top: 20px;
    height: 125px;
}

header .top .logo {
	display: block;
	width: 100%;
	max-width: 50px;
	margin-left: 40px;
	padding-right: 10px;
}



a {
    text-align: center;
    margin-left: auto;
    margin-right:auto;
    color: #349ac8;
	cursor: pointer;
	text-decoration: underline;
}

.toptitle {
    font-style: normal;
    font-weight: 900;
    font-size: 26px;
    line-height: 35px;
    color: #000000;
    position: relative;
    padding: 15px;
    border-radius: 20px;
    border: none;
    margin-bottom: 25px;
}

.video-header {
    position: relative;
    width: 100%;
    height: 700px; /* Full height of viewport */
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    height: 700px; /* Adjust this to your desired height */
    object-fit: cover;
}

.video-overlay {
    position: absolute; /* Makes it cover the video */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.5); /* Grey with 50% opacity */
    z-index: 1; /* Ensures it stays above the video */
}

/* Ensure your content stays above the overlay */
.headcontent {
    position: relative; /* Keeps it above the overlay */
    z-index: 2; /* Higher than the overlay */
}

/*HEADER SLIDESHOW*/
.slideshow {
    position: relative;
    width: 100%;
    min-height: 75vh; /* Adjusted to be more responsive */
    overflow: hidden;
}

/* Ensure the images fully cover the section */
.slideshow-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slideshow-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures full coverage without stretching */
    opacity: 0;
    transform: scale(1);
    transition: opacity 2.5s ease-in-out, transform 8s ease-in-out;
}

/* Active image - fades in and zooms */
.slideshow-images img.active {
    opacity: 1;
    transform: scale(1.1); /* Slight zoom-in effect */
}

/* 🔹 Fix: Ensure overlay covers the whole section */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ensure full height coverage */
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for contrast */
    z-index: 1;
}

/* 🔹 Fix: Ensure text is centered properly */
.headcontent {
    position: absolute;
    width: 100%; /* Ensure it spans the full section */
    height: 100%;
    text-align: center;
    color: white;
    z-index: 999 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
     .slideshow {
        min-height: 26vh !important; /* Reduce height dynamically */
    }

    .slideshow-images img.active {
        transform: scale(1.05); /* Less aggressive zoom for smaller screens */
    }
    
    .headcontent h1 {
        padding-top: 50px;
       font-size: 75px; 
    }
}

/* Mobile adjustments for video */
@media (max-width: 768px) {
    .video-header {
        height: 400px; /* Reduced height for mobile */
    }
    
    .background-video {
        height: 400px; /* Match the header height */
    }
}

@media (max-480px) {
    .video-header {
        height: 300px; /* Even smaller for very small screens */
    }
    
    .background-video {
        height: 300px; /* Match the header height */
    }
}

/* checkbox list */
.checkmark-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.checkmark-item {
	display: flex;
	align-items: center;
	text-align: left;
	max-width: 600px; /* Adjust as needed */
	width: 100%;
	
	font-size: 16px;
	font-weight: bold;
}
/* Spacing between the checkmark and the text */
.checkmark-item span {
   margin-left: 10px; 
	color: #535151;	
}

/* call button */
.button {
    background-color: #349ac8;
    color: #FFFFFF;
    margin: 30px auto; /* Equal spacing above and below */
    width: 70%; /* Reduced from 80% */
    cursor: pointer;
    font-size: 22px; /* Reduced from 25px */
    padding: 12px 10px; /* Reduced from 15px 10px */
    text-decoration: none;
    font-family: "lato";
    display: block;
    max-width: 350px; /* Reduced from 400px */
    font-weight: bold;
    border-radius: 5px;
    animation: glowing 1500ms infinite;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.buttonglow {
animation: glowingBLUE 1500ms infinite;
}

@keyframes glowingBLUE {
    0% {
        box-shadow: 0 0 5px rgba(61, 159, 218, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(61, 159, 218, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(61, 159, 218, 0.5);
    }
}

.button:hover {
    background-color:#18678a;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #233045;
}

.footer p, li, h3{
    color: #f9f9f9;
    font-size: 10px;
    line-height: 20px;
    padding-top: 10px;
    max-width: 90%; 
    min-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Top of the page pannel */
.hero-image {
background-color: #349ac8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
    padding: 0px;
	@media (max-width: 600px) { 
        height: 250px; 
    }
}

.herocontent{
    padding: 100px;
}

.hero-text {
    width: 65%;
    padding: 0px;
    margin: 0px;
	@media (max-width: 600px) { 
    width: 50%;
	}
}

.herotext2 {
    margin: 0px;
    padding: 150px 0px 75px 0px;
    vertical-align: top;
    color: #fff;
    font-family: "Gelasio", serif;
    font-weight: 400;
    font-size: 80px;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .headcontent .herotext2 {
        font-size: 35px !important;
        padding: 30px 0px 100px 0px;
    }
}

.herotext1 {
    padding: 0px;
    color: white;
    margin-left: 0px;
    margin-right: auto;
    font-weight: 500;
    font-size: 30px;
    text-align: center;
    width: 100%;
		@media (max-width: 600px) {
     	font-size: 25px;
	}
}

/*Custom Tables*/
.table-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates three columns of equal width */
    gap: 10px; /* Adds space between the tables */
    padding: 100px 20px 0px 20px; /* Padding around the grid container */
    vertical-align: top;
}

.hero-table {
    border: none;
    width: 100%; /* Makes each table take the full width of its grid column */
    border-collapse: collapse; /* Optional: For border styling */ 
    vertical-align: top;
}

.hero-table th, .hero-table td {
    border: none;
    padding: 20px; /* Padding inside cells */ 
    vertical-align: top;
}

.highlight {
    background-color: #FFFF00;
    line-height: 200%;}


/* CALL TO ACTION */
.inhero-mobile, inhero-mobile-text {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}
.inhero-image, .inhero-foot {
  background-color:white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 0px 0px 20px 0px;
}

.inhero-text, .inhero-foot-text {
  text-align: center;
  color: black;
  width: 100%;
    padding: 0px;
    margin: 0px;
}

.inhero-text, inhero-foot-text h1 {
	font-size: 18px;
	font-family: "lato";
	font-style: normal;
	padding: 0px !important;
	color: black;
}

.inhero-text, .inhero-foot-text h2 {
    padding: 0px;
}

.image-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap; /* Allows items to wrap onto multiple lines */
	@media (max-width: 600px) {
			flex-direction: column; 
	}
}

/* Ensures that images do not exceed the container's width */
.inhero-text img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    padding: 10px;
}

/* gallary */
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 20px;
}
.gallery img {
	height: auto;
	border-radius: 0px; 
	margin: 0px;
	/* width: 50%; */
}

.copyright {
	display: flex;
	color: white;
	place-content: center;
}

/*CTA Top Right*/
.container {
    display: block;
    justify-content: flex-end; /* Aligns children (the button) to the right */
    padding: 10px;
}

/*Pop up*/
.call-button {
    font-family: "Lato";
    font-size: 22px;
    display: block;
    padding: 12px 20px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    background-color: #349ac8;
    font-weight: bold;
    text-transform: uppercase;
    width: 275px;
    margin: 30px auto;
    animation: glowing 1500ms infinite;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.6);
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

.call-button:hover, .call-button:focus {
    transition: box-shadow 0.75s ease-in-out;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 1); /* Enhanced glowing effect on hover/focus */
}


.ctanumber {
    color: white;
    font-size: 34px;
    margin: 10px;
}

.helpline {
    display: none; /* Hide by default */
}

@media (max-width: 1024px) { /* Target tablets and smaller devices */
    .helpline {
        padding: 20px 0px;
        display: block; /* Show on tablets and mobile devices */
    }
}

.desktop {
    display: block; /* Visible by default on desktops */
}

@media (max-width: 1024px) { /* Target tablets and smaller devices */
    .desktop {
        display: none; /* Hide on tablets and mobile devices */
    }
}

.helplineinfo {
    margin-left: auto;
    margin-right: auto;
    font-family: "lato";
    display: flex;
    text-align: center;
    padding: 20px 0px 0px 0px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: white !important;
    font-weight: 600;
    cursor: pointer; /* Adds a cursor to indicate it's clickable */
}


.button-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.button-container .left-button,
.button-container .right-button {
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.button-container p {
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: white;
}

.action-button {
    background-color: #349ac8;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    min-width: 200px;
    max-width: 300px;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: none;
    margin: 0 auto;
}

.action-button:hover {
    background-color: #18678a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1200px) {
    .button-container {
        gap: 60px;
    }
    
    .action-button {
        min-width: 250px;
        max-width: 350px;
        padding: 20px 45px;
    }
}

.openPopup {
    font-family: "lato";
    display: flex;
    text-align: center;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: #349ac8;
    font-weight: 600;
    cursor: pointer; /* Adds a cursor to indicate it's clickable */
}

.openPopup:hover {
    color: #18678a; 
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1 !important;
}

.popup-overlay.special-padding { /* Example class name */
    padding-top: 30px;
}

.popup-content {
    font-family: "lato";
    position: relative; /* Add this to position the close button absolutely within the content */
    color: black;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 800px; /* Consider using max-width for responsiveness */
    text-align: center;
}

.closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    background: transparent;
    border: none;
    font-size: 24px; /* Make it bigger or adjust as necessary */
    cursor: pointer;
    color: #349ac8; /* Or any color you want */
    font-weight: bold;
}

.closePopup:hover {
    color: #ff0000; /* Change to red on hover, or choose another color */
}

.popup-content h3 {
    color: #349ac8;
    text-transform: uppercase ;
    font-size: 20px !important;
    padding-top: 40px !important;
    padding-bottom: 10px !important;
    font-family: "lato";
}

.popup-content p {
    padding: 20px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

button {
cursor: pointer;
}

/* As Seen In: */
.split {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.left {
    width: 30%;
}

.right {
    width: 60%;
    margin-left: auto;
}

.seenin {
    color: white;
    text-transform: uppercase;
    background-color: #1A1A1A;
    text-align: center; /* Center-align text content */
}

.seencontainer {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0px 0px 30px 0px;
}

.seenin p {
    margin: 0px;
    padding: 20px 0px;
    text-align: center; /* Ensure paragraphs are also centered */
}

.seenin img {
    display: inline-block; /* Display images inline and side by side */
    vertical-align: middle; /* Align images vertically in the middle */
    margin: 0 10px; /* Add some space between images */
    width: auto;
    height: 50px;
}


/*#1 Drug & Alcohol Addiction Treatment*/
.mobile-only-list {
    display: none;
    list-style: none; /* Removes bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    
}

.mobiletreatment {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.treatment {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    color: black;
    background-color: white;
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
    box-shadow: rgba(0, 0, 0, .25) 0 0 11px 0;
}

.treatment h2 {
    font-size: 40px !important;
    font-family: "Gelasio", serif !important;
    font-weight: 400;
    padding: 0px;
    margin: 0px;
    text-align: center;
    color: #349ac8;
    width: 100%;
}

.treatment p {
    font-size: 18px;
    line-height: 160%;
    padding-bottom: 20px;
    max-width: 1200px; 
    min-width: 200px;
    margin-left: auto;
    margin-right: auto; 
}

/*Custom Tables*/
.table-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 columns for desktop */
    gap: 20px;
    padding: 20px 0px;
    background-color: white;
    margin: 0 auto; /* Centers the container horizontally */
    max-width: 70%;
    justify-items: center; /* Centers grid items */
}

.custom-box {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    background-color: white;
    border: 1px solid #ddd; /* Optional for better visualization */
    border-radius: 8px; /* Optional for aesthetics */
}

.custom-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: white;
    border: 1px solid #d9ebf1; /* Optional for better visualization */
    border-radius: 8px; /* Optional for aesthetics */
}

.tableimg {
    width: 100%;
    border-radius: 0px;
    margin-bottom: 10px; /* Add some spacing below the image */
}

.treattitle {
    font-family: "Gelasio", serif;
    font-weight: 300;
    font-size: 30px;
    color: #349ac8;
    margin-bottom: 10px;
}

.treatbody {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 160%;
    color: black;
    text-align: left;
}

/* Adjust for tablets (768px and below) */
@media screen and (max-width: 1024px) {
    .table-container {
        grid-template-columns: repeat(1, 1fr); /* 2 columns for tablets */
        max-width: 80%; /* Wider on tablets for better fit */
    }

    .custom-table {
        padding: 30px; /* Reduce padding for smaller screens */
    }

    .mobile-reviews {
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd; /* Optional for better visualization */
    border-radius: 8px; /* Optional for aesthetics */
    margin: 30px;  
    }
    
    .treattitle {
        font-size: 35px; /* Adjust title size */
    }

    .treatbody {
        font-size: 16px; /* Adjust body text size */
    }
}

/* Adjust for phones (480px and below) */
@media screen and (max-width: 480px) {
    .table-container {
        grid-template-columns: 1fr; /* 1 column for phones */
        gap: 15px; /* Reduce gap between items */
        padding: 20px 20px;
    }

    .custom-table {
        padding: 20px; /* Further reduce padding for small screens */
    }

    .treattitle {
        font-size: 35px; /* Smaller title font for phones */
    }

    .treatbody {
        font-size: 14px; /* Smaller body text font */
        line-height: 140%; /* Adjust line height for better readability */
    }

    .tableimg {
        width: 100%; /* Ensure images fit within the container */
    }
}


/*Custom Table 2*/
.table-container2 {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0px;
    background-color: white;
    width: 70%;
    margin: 0 auto; 
}

.content-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    text-align: center;
}

.right-section {
    margin-left: auto;
    width: 60%;
}

.tableimg2 {
    width: 100%;
    border-radius: 1rem;
}

.treatbody2 p {font-size: 18px;
    line-height: 160%;
    padding-bottom: 50px;
    max-width: 1200px; 
    min-width: 200px;
    margin-left: auto;
    margin-right: auto; 
    text-align: justify;}

.treatbody2 h2 {
    color: #349ac8;
    padding: 0px 0px 20px 0px;
}

/*Coverage*/
.coverage {
    font-family: "lato";
    text-align: center;
    font-size: 25px;
    background: white;
    padding: 20px;
    color: #5a717d;
}
.coverage img{
    width: 950px;
    display: block; /* Makes the img a block-level element */
    margin-left: auto;
    margin-right: auto;
}
/* General Carousel Container */
.carousel-container {
    width: 100%; /* Full width */
    overflow: hidden; /* Hide the overflow */
    margin: auto;
    padding: 0px 0px 60px 0px;
}

/* Default carousel (step-based, non-infinite) */
.carousel {
    padding: 40px 0px 0px 0px;
    display: flex;
    transition: transform 5s ease-in-out; /* Keeps transition for non-infinite carousels */
    width: calc(800px * 7 / 5);
}

/* Default carousel items */
.carousel-item {
    flex: 0 0 20%; /* Ensures 5 items per view */
    box-sizing: border-box;
    padding: 0px 20px;
}

/* ============================= */
/* ✅ INSURANCE CAROUSEL - INFINITE SCROLL */
/* ============================= */
.insurance-carousel-container .carousel {
    display: flex;
    width: fit-content; /* Ensures images align properly */
    animation: scrollLeft 120s linear infinite;
    transition: none !important;
    gap: 20px; /* Add spacing between images */
}

/* Ensures images are in a single row */
.insurance-carousel-container .carousel-track {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between images */
}

/* Ensures images are sized properly */
.insurance-carousel-container .carousel-item {
    flex: 0 0 auto; /* Makes items fit naturally in the scroll */
    width: auto; /* Ensures natural width */
    padding: 0;
}

.insurance-carousel-container .carousel-item img {
    width: 180px; /* Adjust this to your preferred size */
    height: auto; /* Maintain aspect ratio */
    padding: 0px 10px;
}


/* Keyframes for the smooth, infinite left scroll */
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}


/* gallary */
    .gallery {
        width: 100%;
        height: 500px;
        margin: auto;
        overflow: hidden;
        position: relative;
        display: flex;
        }

    .gallery-track {
        display: flex;
        animation: scroll-left 300s linear infinite;
        width: max-content;
}

    .gallery img {
        object-fit: cover;
        flex-shrink: 0;
        height: 500px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000; /* Ensure it's above other content */
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }

/* Keyframes for scrolling animation */
    @keyframes scroll-left {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-100%);
        }
        }


/*Trusted Treatment Provider*/
.treatment h2, p {font-family: "lato";}

.treatprovider {
    text-align: center;
    background: white;
}

.treatprovider h2{
    color: #349ac8;
}

.roomgrid {
    padding-left: 0px;
    padding-right: 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates two columns */
    grid-template-rows: repeat(2, 1fr); /* Creates two rows */

}

.roomgrid img {
    width: 100%; /* Makes each image take up the full space of its grid cell */
    height: auto; /* Maintains the aspect ratio of the images */
    padding: 0px;
}

/*Google Review*/
.mobile-reviews {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.desktop-reviews {
    display: block;
}

/* For tablets and phones: Show mobile-reviews and hide desktop-reviews */
@media screen and (max-width: 1024px) {
    .mobile-reviews {
        display: block;
    }

    .desktop-reviews {
        display: none;
    }
}

.mobile-box {
    width: 100%;
    max-width: 90%; /* Add a max-width for better centering on larger screens */
    margin: 0 auto; /* Centers the box horizontally */
    padding: 0; /* No extra padding needed */
}

.mobile-reviews {
    padding: 20px;
    max-width: 75%; /* Add a max-width to prevent the box from stretching too far */
    margin: 0 auto; /* Centers the reviews container */
    border: 1px solid #ddd; /* Optional for better visualization */
    border-radius: 8px; /* Optional for aesthetics */
    background-color: #fff; /* Optional: Add a background color for contrast */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.mobile-reviews h1 {
    color: #4ea4d4;
    font-family: "Lato", sans-serif;
    padding: 10px 0; /* Add spacing for better readability */
    text-align: center;
    margin-bottom: 10px;
    font-size: 23px;
    line-height: 1.2; /* Improve line spacing */
}

.mobile-reviews h4 {
    font-family: "Lato", sans-serif;
    color: dimgrey;
    text-align: center;
    margin: 10px 0; /* Add margin for spacing */
    font-size: 18px; /* Adjust size for readability */
    line-height: 1.5; /* Enhance line height for better readability */
}

.mobile-reviews img {
    display: block; /* Ensures images are treated as block elements */
    margin: 10px auto; /* Centers the images horizontally */
    max-width: 100%; /* Ensures images are responsive */
    height: auto; /* Maintain aspect ratio */
}

.custom-box {
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    align-items: center; /* Centers content horizontally */
    gap: 20px; /* Adds spacing between the sections */
}

.content-section {
    width: 100%; /* Makes the content full-width */
    padding: 20px; /* Optional padding for spacing */
}

.images-section {
    width: 100%; /* Ensures the section takes full width */
    display: flex; /* Enables flexbox for layout control */
    flex-wrap: wrap; /* Allows images to wrap on smaller screens */
    justify-content: center; /* Centers the images horizontally */
    gap: 10px; /* Adds space between images */
    text-align: center; /* Centers the content text if any */
    padding-bottom: 40px;
}

.google-reviews-content {
    background-color: white;
    text-align: center; /* Centers text horizontally */
    padding: 40px;
}

.google-reviews-images img {
    max-width: 800px;
    width: 100%; /* Ensures images scale properly */
}

.google-reviews-content img.google-logo {
    width: 300px;
    display: block;
    margin: 0 auto;
}

.google-reviews-content h1 {
    color: #349ac8;
    font-family: "Lato", sans-serif;
    padding: 20px 0 0;
    margin: 0;
    text-align: center; /* Change text alignment to match vertical layout */
}

.google-reviews-content h4 {
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
    color: dimgrey;
    text-align: center; /* Change text alignment to match vertical layout */
    font-family: "Lato", sans-serif;
}
.treatlist {
    text-align: center !important;
    color: #3479a0;
    text-transform: uppercase;
    font-weight: 700;
}

.link_offer {
color: white;
}

/* FAQ SECTION */
.faq-container {
    font-family: "lato";
    width: 75%;
    margin: 0 auto;
    padding: 0px 0px 20px 0px;
}
.faq-container h2{
    margin: 60px 0px;
    font-size: 35px;
}

.faq-item {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 10px;
}

.faq-question h4 {
    color: #6e6f6e;
}

.faq-answer {
    line-height: 35px;
  display: none;
  padding: 10px 0;
}

.faq-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.faq-toggle.active {
  transform: rotate(45deg);
}

/* Responsive adjustments for screens smaller than 768px */
@media (max-width: 930px) {
    .call-button {
        padding: 10px 20px !important;
        font-size: 16px;
        width: 275px;
    }
    
    .button {
        font-size: 22px;
        width: 75%; /* Slightly wider on mobile for better touch targets */
        margin: 25px auto; /* Slightly reduced margins on mobile */
    }
    
    .popup-content {
        position: relative !important;
        color: black !important;
        background-color: white !important;
        padding: 20px !important;
        border-radius: 5px !important;
        width: 800px;
        text-align: center;
    }

    .popup-content h3 {
        color: #3851A2 !important;
        text-transform: uppercase !important;
        font-size: 15px !important;
        padding-top: 40px !important;
        padding-bottom: 10px !important;
        font-family: "lato" !important;
    }

    .popup-content p {
        padding: 5px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 180% !important;
    }

    .mobile-reviews {
        background: white;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-reviews img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .moblie-list {
        width: 100%;
        margin: 0px;
        padding: 0px;
    }
    
    .mobiletreatment h2{
        width: 100%;
        padding: 20px 0px;
    }
    
    .mobiletreatment img{
        width: 80%;
    }
    
    .mobp {
        padding: 40px 80px 40px 80px !important;
        font-size: 18px;
        text-align: left;
    }
    
.googlereviews {
    display: none;
    padding: 0;
    margin: 0;
}
    
.inhero-image, inhero-text {
    display: block;
    padding: 20px;
    margin: 0;
    height: auto !important;
}
    
.inhero-mobile, .inhero-foot {
  display: block;
  background-color: white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding:20px;
}
    
.inhero-mobile-text, .inhero-foot-text {
  text-align: center;
  color: black;
  width: 100%;
}

.inhero-mobile-text h1 {
	font-weight: 400;
	font-size: 26px;
	line-height: 25px;
	letter-spacing: 0em;
	font-family: "lato";
	font-style: normal;
	padding: 0px !important;
	color: white;
	letter-spacing: -0.04em;
} 
 

    .heropop {
        
        display: none;
    }
    
    .treatment {
        display: none;
    }
    
     .mobile-only-list {
        display: block;
        color: white;
        background-color: #233045;
        padding: 0px 0px 30px 0px;
        margin: 0px;
        text-align: center;
    }

    .mobile-only-list h2 {
        color: white;
        font-size: 45px;
        padding: 20px 0px;
        margin-bottom: 30px;
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-only-list li {
        font-family: "lato";
        padding: 0px 0px 10px 0px;
        width: 80%;
        font-size: 16px;
        font-weight: 500;
        line-height: 160%;
        text-align: left;
        margin-left: auto;
        margin-right: auto; 
}
    
    .button {
        font-size: 22px;
    }
    
    .mobiletreatment {
        display: block;
        padding: 20px; 
        margin: 0px; 
        background-color: #233045;
        color: white;
        text-align: center;
}
    
    .mobiletreatment h2 {
        color: white;
        font-size: 45px;
        padding: 20px 0px;
        margin-bottom: 30px;
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }

    @media (max-width: 768px) {
        .mobiletreatment h2 {
            font-size: 36px;
            width: 80%;
            padding: 30px 0px;
        }
    }

    @media (max-width: 480px) {
        .mobiletreatment h2 {
            font-size: 32px;
            width: 90%;
            padding: 20px 0px;
        }
    }
    
    .mobiletreatment p {
        padding: 30px 0px;
    }
    
    .mobileimg{
        margin-top: 30px;
        padding: 0px;
        width: 300px;
        border-radius: 1rem;
    }
    
    /* As Seen In: */
.seenin {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 20px 0px;
}

.seencontainer {
    width: 100%;
    display: block;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0px 0px 0px 0px;
}

.seenin p {
    margin: 0px 0px 10px 0px;
    padding: 0px 0px 0px 0px;
    font-size: 12px;
}

.seenin img {
    height: 25px;
    width: auto;
    margin: 0px;
    padding: 0px 10px;
    }
    
    /*Custom Tables*/
    .container {width: 100%;
    display: block;}
    .headimg {
        display: block;
        margin-left: auto;
        margin-right: auto}
    
    .freecall {
        position: relative;
        width: 100%;
        max-width: 400px; /* Increased from 300px */
        margin: 0 auto;
        text-align: center;
    }
    
    .freecall .call-button {
        width: 100%;
        min-width: 350px; /* Added minimum width */
        white-space: nowrap;
        text-align: center;
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .ctanumber {
        font-size: 28px;
    }

    .split {
        display: block;
    }
    
    h2 {
        padding: 0px;
    }
    .treatment {
        width: 100%;
        padding: 40px;
    }

    .treatment p, .popup-content p {
        font-size: 18px;
    }

    .table-container {
        grid-template-columns: repeat(1, 1fr);
        margin-left: auto;
        margin-right: auto;
        padding: 20px 0px;
        margin: 0px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
.custom-table {
width: 100%;
}

    /*Custom Table 2*/
.table-container2 {
    display: block;
    padding-top: 0px;
}

.content-block {
    display: block;
}

.left-section {
    display: block;
    width: 100%;
}

.right-section {
    margin-left: auto;
    width: 100%;
}

.tableimg2 {
    width: 100%;
    border-radius: 1rem;
}
    /**/
    
    .coverage img, .review, .googlelogo img {
        width: 100%;
    }

    .googlereviews {
        margin-left: auto;
        margin-right: auto;
    }

    .googlelogo {
        width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .googlelogo img {
    
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .popup-content {
        width: 90%;
        padding: 15px;
    }

    .roomgrid {
        grid-template-columns: 1fr;
        padding: 0px;
    }
    
    .footer {
        padding: 40px;
    }
}

/* Additional finer adjustments for very small screens */
@media (max-width: 480px) {
    header{
        height: 150px;
    }
    
    h2 {
       padding: 20px 0px 20px 0px;
        margin: 0px;
        width: 80%;
        font-size: 35px;
        margin-left: auto;
        margin-right: auto;
    }
  
    .carousel {
    padding: 40px 0px 0px 0px;
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(1500px * 4 / 5);
}
   
    
    .coverage {
        padding: 0px;
    }
    
    
    .carousel-item {
        padding: 10px;
    }
    

.faq-container {
    font-family: "lato";
    width: 80%;
    margin: 0 auto;
    padding: 0px 0px 20px 0px;
}
.faq-container h2{
    margin: 0px 0px 30px 0px;
    font-size: 25px;
    width: 100%;
}
    
    .treatbody {
        font-size: 16px;
        padding: 0px 20px 20px 20px !important;
        text-align: left;
    }
    
    .whyus p{
        font-size: 18px;
        padding:20px 30px;
    }
    
    .mobp {
        padding: 20px !important;
        font-size: 18px;
        text-align: center;
    }
    
    
    .coverage img{ 
        padding: 20px;
    }
    
    .herotext1{
        font-size: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .herotext2 {
        padding: 0px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .herocontent {
        padding:0px;
    }
    .coverage p, .treatprovider p {
        padding: 0px;
    }
    
    .headimg{
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
        padding: 5px;
    }


.mobile-box {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
}


.mobile-reviews {
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 30px;  
    }
    
.mobile-reviews h1 {
    color: #4ea4d4;
    font-family: "lato";
    padding: 0px;
    text-align: center;
    margin-bottom: 0px;
        font-size: 23px;
}
.mobile-reviews h4 {
        font-family: "lato";
        color: dimgrey;
        text-align: center;
    }

    .mobile-reviews img{
    
        margin-left: auto;
        margin-right: auto;
    }
    
    .review{
        width: 100%;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .call-button {
        font-size: 16px;
    }

    .ctanumber {
        font-size: 24px;
    }
   
    .popup-content {
        width: 95%;
    }
}

/* Masonry Grid Styles */
.masonry-gallery {
    padding: 60px 20px;
    background: #e8f4f9;
    margin: 60px 0;
}

.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry-item {
    flex: 0 0 calc(20% - 16px); /* Changed from flex: 1 1 to flex: 0 0 to maintain exact widths */
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item:hover img {
    filter: brightness(1.1);
}

@media (max-width: 1200px) {
    .masonry-item {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .masonry-item {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .masonry-item {
        flex: 0 0 100%;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.button-container .left-button,
.button-container .right-button {
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.button-container p {
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: white;
}

.action-button {
    background-color: #349ac8;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    min-width: 200px;
    max-width: 300px;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: none;
    margin: 0 auto;
}

.action-button:hover {
    background-color: #18678a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1200px) {
    .button-container {
        gap: 60px;
    }
    
    .action-button {
        min-width: 250px;
        max-width: 350px;
        padding: 20px 45px;
    }
}

/* Insurance Modal Styles */
#insuranceModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: hidden;
}

.modal-content {
    background-color: #213751;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px 20px 20px;
    width: 70%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 98vh;
    color: white;
}

.modal-content h2 {
    color: white;
    margin-top: 5px;
    width: 100%;
    font-size: 32px;
}

.modal-content p {
    text-align: center;
    color: white;
    margin: 10px 0;
    font-family: 'Lato', sans-serif;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

#insuranceForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Lato', sans-serif;
    width: 90%;
    margin: 0 auto;
}

#insuranceForm .form-row {
    display: flex;
    gap: 25px;
}

#insuranceForm .form-field {
    position: relative;
    margin-bottom: 10px;  /* Reduced from 20px */
    width: 100%;
    display: flex;
    justify-content: center;
}

#insuranceForm .form-field input {
    width: 80%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    height: 50px;
}

#insuranceForm .form-field input:focus {
    outline: none;
    border-color: #349ac8;
    background-color: rgba(255, 255, 255, 0.15);
}

#insuranceForm .form-field label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
    background-color: transparent;
}

#insuranceForm .form-field input:focus + label,
#insuranceForm .form-field input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: #349ac8;
    background-color: #213751;
    padding: 0 4px;
}

#insuranceForm .form-field input::placeholder {
    color: transparent;
}

@media (max-width: 768px) {
    #insuranceForm .form-field input {
        width: 90%;
        padding: 10px;
        font-size: 14px;
    }
    
    #insuranceForm .form-field label {
        font-size: 14px;
    }
    
    #insuranceForm .form-field input:focus + label,
    #insuranceForm .form-field input:not(:placeholder-shown) + label {
        font-size: 11px;
    }
}

#insuranceCheckForm button {
    background-color: #349ac8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    width: 60%;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#insuranceCheckForm button:hover {
    background-color: #2b7ea3;
}

@media (max-width: 768px) {
    #insuranceForm .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    #insuranceForm .insurance-check-section {
        padding: 30px 15px;
    }
    
    #insuranceForm .insurance-form-container h2 {
        font-size: 2em;
    }
    
    #insuranceForm .form-group {
        margin-bottom: 15px;
    }
}

/* Footer Styles */
.inhero-image {
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 20px 0;
    margin: 0;
    width: 100%;
}

.inhero-text {
    text-align: center;
    color: black;
    width: 100%;
    padding: 0;
    margin: 0;
}

.footer {
    background-color: #233045;
    padding: 20px;
    margin: 0;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.wrapper {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

.license-info {
    margin: 10px 0;
}

.footer-main {
    margin-bottom: 15px;
    text-align: justify;
}

.footer-bottom {
    text-align: center;
    padding-bottom: 0;
}

.footer-bottom .link_offer {
    display: inline-block;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .license-info p {
        margin: 5px 0;
    }
    .footer-bottom p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .footer-bottom p span {
        display: none;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        padding: 10px 5px;
    }

    .logo img {
        width: 150px;
        padding: 10px 5px;
        margin: 0 auto;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 5px;
    }

    .button-container .left-button,
    .button-container .right-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .button-container p {
        margin: 5px 0;
        font-size: 14px;
    }

    .action-button {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        padding: 10px;
    }

    .logo img {
        width: 180px;
        padding: 15px 30px;
    }

    .button-container {
        padding: 10px 30px 10px 10px;
    }

    .button-container .left-button,
    .button-container .right-button {
        min-width: 200px;
    }
}

#insuranceForm input[type="date"]::-webkit-datetime-edit-text,
#insuranceForm input[type="date"]::-webkit-datetime-edit-month-field,
#insuranceForm input[type="date"]::-webkit-datetime-edit-day-field,
#insuranceForm input[type="date"]::-webkit-datetime-edit-year-field {
    color: transparent;
}

#insuranceForm input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Insurance Check Form Section Styles */
.insurance-check-section {
    position: relative;
    background-color: #193752;
    padding: 25px 20px 40px;
    margin: 20px 0 40px;
    overflow: hidden;
}

.wave-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,96C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    opacity: 0.1;
}

.insurance-form-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: white;
    padding: 0;
    width: 100%;
}

.insurance-form-container h2 {
    text-align: center;
    font-size: 2.5em;
    margin: 0 auto 10px;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.insurance-form-container .subheading {
    text-align: center;
    font-size: 1.1em;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 20px;
    max-width: 600px;
}

.start-button {
    background-color: #349ac8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    width: 50%;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s ease;
    margin-top: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.start-button:hover {
    background-color: #2b7ea3;
}

.form-progress {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #349ac8;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.form-step {
    transition: all 0.3s ease;
}

.form-navigation {
    display: flex;
    justify-content: center;
    margin-top: 15px;  /* Reduced from 30px */
    gap: 10px;
}

.form-navigation button {
    background-color: #349ac8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s ease;
}

.form-navigation button:hover {
    background-color: #2b7ea3;
}

.prev-step {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.prev-step:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.submit-form {
    background-color: #2ecc71 !important;
}

.submit-form:hover {
    background-color: #27ae60 !important;
}

@media (max-width: 768px) {
    .insurance-check-section {
        padding: 30px 15px;
        margin: 20px auto;
        width: 92%;
        border-radius: 8px;
    }

    .insurance-form-container {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .insurance-form-container h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }
    
    .insurance-form-container .subheading {
        font-size: 1em;
        margin-bottom: 25px;
        padding: 0 15px;
        text-align: center;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 18px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Thank You Modal Styles */
.thank-you-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-modal .modal-content {
    background-color: #213751;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.thank-you-modal h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 32px;
}

.thank-you-modal p {
    color: white;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.5;
}

.thank-you-modal .action-button {
    background-color: #349ac8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.thank-you-modal .action-button:hover {
    background-color: #2b7ea3;
}

@media (max-width: 768px) {
    .thank-you-modal .modal-content {
        width: 95%;
        padding: 20px;
    }

    .thank-you-modal h2 {
        font-size: 24px;
    }

    .thank-you-modal p {
        font-size: 16px;
    }
}

.mobile-only-list h2 {
    color: white;
    font-size: 45px;
    padding: 20px 0px;
    margin-bottom: 30px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .mobile-only-list h2 {
        font-size: 36px;
        width: 80%;
        padding: 30px 0px;
    }
}

@media (max-width: 480px) {
    .mobile-only-list h2 {
        font-size: 32px;
        width: 90%;
        padding: 20px 0px;
    }
}

@media (max-width: 375px) {
    .seenin {
        display: none;
    }
    
    header {
        height: 60px;
    }
    
    .logo {
        padding: 2px;
    }
    
    .logo img {
        width: 80px;
        padding: 2px;
    }
    
    .headimg {
        height: 40px;
        margin-top: 3px;
    }
    
    .herotext2 {
        font-size: 20px;
        padding: 10px 0px;
    }
    
    .herotext1 {
        font-size: 12px;
        padding: 5px;
    }
    
    .herocontent {
        padding: 0px;
    }

    #insuranceCheckForm button {
        margin-bottom: 30px;
    }

    .button-container {
        padding-bottom: 40px !important;
    }
}