#front-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  user-select: none;
  -webkit-user-select: none;
  padding: 10px 15px;
}

#front-modal .modal-container {
  background-color: #f5f5f5;
  width: clamp(290px, 60%, 500px);
  height: 250px;
  padding: 10px 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 0 15px 2px #cfcac5;
}
#front-modal .modal-container h1 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 600;
  text-align: center;
}
#front-modal .modal-container .expired-heading {
  color: #9f1a05;
}
#front-modal .modal-container .success-heading {
  color: #0c8b26;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#front-modal .modal-container .loading-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
#front-modal .modal-container .loading-logo img {
  animation: rotate 2s linear infinite;
}

#front-modal .modal-container button {
  background-color: #1d5b8b;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
#front-modal .modal-container button:hover {
  box-shadow: inset 0 0 20px 1px #153b58b0;
}

#left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-grow: 1;
}
.content .heading-container {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  margin-right: 500px;
}
.heading-container h2 {
  font-size: 35px;
  font-weight: bold;
  color: #1a6692;
  align-self: flex-end;
  margin-bottom: 5px;
}
.heading-container h1 {
  display: inline;
  color: #2f4050;
  font-size: 45px;
  font-weight: bolder;
}
.enclosure-container {
  margin: 20px auto auto auto;
  position: relative;
  height: fit-content;
  cursor: pointer;
  z-index: 1;
  margin-left: 250px;
}
.benefits-agent-encolsure {
  pointer-events: none;
  position: relative;
}
.benefits-agent-inner {
  position: relative;
  width: fit-content;
  pointer-events: none;
  user-select: none;
}
.benefits-enclosure {
  position: absolute;
  top: 50%;
  left: -220px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.benefits-enclosure .benefits {
  color: whitesmoke;
  padding: 10px 20px;
  width: 250px;
  height: auto;
  border: 1px solid #2f4050;
  border-radius: 20px 0 0 20px;
}
.benefits-enclosure #benefit-1 {
  width: 300px;
  margin-left: 25px;
  background-color: rgba(201, 58, 22, 0.875);
}
.benefits-enclosure #benefit-2 {
  background-color: #67341d;
}
.benefits-enclosure #benefit-3 {
  background-color: #276b94;
}
.benefits-enclosure #benefit-4 {
  margin-left: 25px;
  width: 300px;
  background-color: #d77d08;
}

.agent-enclosure,
.cheerful-family-enclosure {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid rgb(62, 123, 161);
  border-radius: 50%;
  background-color: whitesmoke;
  overflow: clip;
}
.agent-enclosure {
  border-color: #2b4b65;
  width: 380px;
  height: 380px;
  z-index: 2;
  position: relative;
}
.agent-enclosure img {
  width: 140%;
  height: auto;
}

.cheerful-family-enclosure {
  position: absolute;
  bottom: 0;
  transform: translate(150%, 70%);
  width: 200px;
  height: 200px;
  overflow: clip;
}
.cheerful-family-enclosure img {
  margin-top: 45px;
  width: 250px;
  height: auto;
}
.enclosure-container .contact-now {
  position: absolute;
  right: -72%;
  top: 30%;
  transform: translateY(-50%);
  min-width: 330px;
  box-shadow: 0 0 10px 1px #4d97c8a0;
  background-color: #d9e0e3a0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 35px;
  border: 1px dashed rgb(62, 123, 161);
  border-radius: 0 50px 50px 0;
  z-index: -1;
}
.enclosure-container .contact-now h2 {
  font-weight: 700;
  line-height: 20px;
  color: #d05333;
}
.enclosure-container .contact-now a {
  color: #276b94;
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  line-height: 25px;
  cursor: pointer;
}
.content #right-content {
  max-width: 700px;
  margin-left: auto;
}
#right-content #form-container {
  /* background-image: linear-gradient(to bottom right, #907c6c6d, #2868903b), url("../img/still-life-with-scales-justice.jpg"); */
  background-image: linear-gradient(to bottom right, #c3a3894c, #5e9abf20);
  background-size: cover;
  background-repeat: no-repeat;
  margin: 20px 10px;
  margin-top: -400px;
}
.validation-error {
  box-shadow: 0 0 5px 1px #d05333;
  border: 1px solid transparent !important;
  outline: none !important;
}
form {
  display: flex;
  flex-direction: column;
  padding: 30px 40px;
  border-radius: 10px;
  align-content: flex-end;
  backdrop-filter: blur(10px);
}
form .refresh-timer {
  margin-top: -10px;
  font-size: 11px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}
form #expiry-timer {
  width: 20px;
  font-size: 13px;
}
form .heading {
  color: #d05333;
  text-transform: uppercase;
}
form .sub-heading {
  color: #2a5675;
  text-transform: capitalize;
  margin-bottom: 20px;
}
/* .form-group input:required{
  position: relative;
}
.form-group input:required::after{
  position: absolute;
  right: 0;
  top: 0;
  content: "*";
  width: 20px;
  height: 20px;
  color: #1a6692;
} */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
  caret-color: #27729e;
}
.form-group input:not([type="radio"]),
.form-group select {
  border: 1px solid #2d5877;
  font-size: 15px;
  flex: 1 1 auto;
  padding: 10px 6px 10px 30px;
}
.form-group input:not([type="radio"]):focus,
.form-group select:focus {
  outline: none;
  border: 1px solid transparent;
  box-shadow: 0 0 2px 1px #2d5877;
}
.form-group input,
.form-group select,
.form-group datalist {
  border-radius: 5px;
  background-color: transparent;
}
.form-group select,
.form-group datalist,
.form-group input[type="date"] {
  background-image: url("../icons/drop-down-arrow.svg");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  appearance: none;
  -moz-appearance: none;
}
/* .form-group select,
.form-group input[type="date"] {
   padding-left: 12px; 
 } */
.form-group .input-wrap {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex: 1 1 auto;
  margin-bottom: 10px;
}
.form-group .phone-wrap,
.form-group .email-wrap,
.form-group .st-address-wrap,
.form-group .doa-wrap {
  position: relative;
}
.form-group .phone-wrap::before,
.form-group .email-wrap::before,
.form-group .st-address-wrap::before,
.form-group .doa-wrap::before {
  position: absolute;
  top: calc(50% + 2px);
  transform: translateY(-50%);
  width: 15px;
  height: auto;
}
.form-group .phone-wrap::before {
  left: 10px;
  content: url("../icons/phone-icon-solid.svg");
}
.form-group .email-wrap::before {
  left: 10px;
  content: url("../icons/email_icon_solid.svg");
}
.form-group .st-address-wrap::before {
  left: 10px;
  content: url("../icons/addres_mark_solid.svg");
}
.form-group .doa-wrap::before {
  pointer-events: none;
  left: 10px;
  content: url("../icons/calendar_icon_solid.svg");
  z-index: 9;
}

.form-group .region-container {
  display: flex;
  flex-direction: row;
  column-gap: 8px;
  flex: 1 1 auto;
}
.form-group .name-wrap,
.form-group .region-container,
.lead-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.form-group .att-rep-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.att-rep-wrap .radios-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.att-rep-wrap .radios-container label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.att-rep-wrap .radios-container input[type="radio"] {
  width: 18px;
  height: 18px;
}
.lead-info {
  gap: 8px;
}
/* .lead-info select { 
 padding: 5px 10px; 
} */
.lead-info .lead-info-wrap {
  display: flex;
}
.lead-info .lead-info-wrap,
.lead-info .doa-wrap {
  flex-wrap: wrap;
  width: 200px;
  flex: 1 1 auto;
}
.lead-info-wrap .age-wrap,
.lead-info-wrap .income-wrap {
  width: calc(50% - 5px);
  margin-bottom: 0px;
}
.region-container .zip-wrap,
.region-container .country-wrap {
  width: calc(50% - 5px);
}
.doa-wrap input[type="date"] {
  border: 1px solid black;
  text-transform: uppercase;
  position: relative;
}
.doa-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  color: transparent;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  width: auto;
}
input[type="date"].enabled-overlay:not(:focus)::before {
  content: "Date";
  position: absolute;
  top: 50%;
  height: 20px;
  transform: translateY(-50%);
  background-color: #ecedec;
}
.form-group #lead_id_tcpa_disclosure {
  width: 15px;
  height: 15px;
  padding-top: 5px;
  margin: 0px 5px 0px 5px;
}
#disclosure-label span {
  /* color: white; */
  font-family: "Netflix Regular";
  font-size: 12px;
  font-weight: 500;
  text-align: justify;
}
input[type="submit"] {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
  padding: 8px 10px;
  border: none;
  background-image: linear-gradient(to right, #5fa7ce, #286990);
  width: 180px;
  height: auto;
  margin: 20px 0 5px auto;
  cursor: pointer;
  transition: all 0.3s ease;
}
input[type="submit"]:hover {
  background-image: linear-gradient(to right, #4f87a5d8, #286890b3);
}
@media all and (min-width: 1401px) {
  .agent-enclosure img {
    width: 140%;
  }
}
@media all and (max-width: 1400px) {
  #left-content {
    margin-right: 10px;
  }
  .heading-container h2 {
    font-size: 18px;
  }
  .heading-container h1 {
    font-size: 35px;
  }
  .benefits-enclosure {
    gap: 8px;
    left: -185px;
  }
  .benefits-enclosure .benefits {
    padding: 8px 15px;
    width: 200px;
    font-size: 14px;
  }
  .agent-enclosure {
    width: 250px;
    height: 250px;
  }
  .cheerful-family-enclosure {
    width: 140px;
    height: 140px;
    overflow: clip;
  }
  .cheerful-family-enclosure img {
    margin-top: 35px;
    width: 160px;
  }
  .enclosure-container .contact-now {
    right: -70%;
    min-width: 230px;
    padding: 8px 16px;
  }
  .enclosure-container .contact-now h2 {
    font-size: 14px;
    line-height: 14px;
  }
  .enclosure-container .contact-now a {
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
  }
  .content #right-content {
    max-width: 620px;
    margin-left: auto;
  }
  form {
    padding: 12px 25px;
  }
  .form-group input:not([type="radio"]),
  .form-group select {
    font-size: 13px;
    padding: 6px 4px 6px 30px;
  }
  .form-group .input-wrap {
    gap: 5px;
  }
  .att-rep-wrap .radios-container {
    gap: 10px;
  }
  .att-rep-wrap .radios-container label {
    gap: 3px;
  }
  .att-rep-wrap .radios-container input[type="radio"] {
    width: 14px;
    height: 14px;
  }
  #disclosure-label span {
    /* color: white; */
    font-size: 11px;
  }
  input[type="submit"] {
    font-size: 14px;
    width: 150px;
  }
}

@media all and (max-width: 980px) {
  #left-content {
    margin: 10px auto;
  }
  .heading-container h2 {
    font-size: 25px;
  }
  .heading-container h1 {
    font-size: 25px;
  }
  .benefits-enclosure {
    gap: 8px;
    left: -185px;
  }
  .benefits-enclosure .benefits {
    padding: 8px 15px;
    width: 200px;
    font-size: 14px;
  }
  .agent-enclosure {
    width: 250px;
    height: 250px;
  }
  .cheerful-family-enclosure {
    width: 140px;
    height: 140px;
    overflow: clip;
  }
  .cheerful-family-enclosure img {
    margin-top: 35px;
    width: 160px;
  }
  .enclosure-container .contact-now {
    right: -65%;
    min-width: 200px;
    padding: 8px 16px;
  }
  .enclosure-container .contact-now h2 {
    font-size: 14px;
    line-height: 14px;
  }
  .enclosure-container .contact-now a {
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
  }
  .content #right-content {
    max-width: 600px;
    margin: 120px auto 20px auto;
  }
  form {
    padding: 12px 25px;
  }
  .form-group input:not([type="radio"]),
  .form-group select {
    font-size: 13px;
    padding: 6px 4px 6px 30px;
  }
  .form-group .input-wrap {
    gap: 5px;
  }
  .att-rep-wrap .radios-container {
    gap: 10px;
  }
  .att-rep-wrap .radios-container label {
    gap: 3px;
  }
  .att-rep-wrap .radios-container input[type="radio"] {
    width: 14px;
    height: 14px;
  }
  #disclosure-label span {
    /* color: white; */
    font-size: 11px;
  }
  input[type="submit"] {
    font-size: 14px;
    width: 150px;
  }
}

@media all and (max-width: 520px) {
  #front-modal .modal-container {
    height: 200px !important;
  }
  #front-modal .modal-container h1 {
    font-size: 20px;
    line-height: 20px;
  }
  #left-content {
    margin: 10px auto;
  }
  .heading-container h2 {
    font-size: 20px;
  }
  .heading-container h1 {
    margin-left: auto;
    font-size: 20px;
  }
  .enclosure-container {
    margin: 10px auto 0px 5%;
  }
  .agent-enclosure {
    width: 180px;
    height: 180px;
  }
  .agent-enclosure img {
    width: 140%;
  }
  .enclosure-container .contact-now {
    right: -84%;
    min-width: 180px;
    padding: 6px 14px;
  }
  .enclosure-container .contact-now h2 {
    font-size: 12px;
    line-height: 12px;
  }
  .enclosure-container .contact-now a {
    font-size: 14px;
    line-height: 14px;
    cursor: pointer;
  }
  .benefits-enclosure {
    gap: 8px;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
  }
  .benefits-enclosure .benefits {
    padding: 8px 15px;
    width: 180px !important;
    font-size: 12px;
    border-radius: 20px;
  }
  .cheerful-family-enclosure {
    top: 62% !important;
    left: -10% !important;
    width: 140px;
    height: 140px;
    overflow: clip;
  }
  .cheerful-family-enclosure img {
    margin-top: 35px;
    width: 160px;
  }

  .content #right-content {
    max-width: 600px;
    margin: 220px auto 20px auto;
  }
  form {
    padding: 12px 25px;
  }
  .form-group input:not([type="radio"]),
  .form-group select {
    font-size: 13px;
    padding: 6px 4px 6px 30px;
  }
  .form-group .input-wrap {
    gap: 5px;
  }
  .lead-info-wrap .age-wrap,
  .lead-info-wrap .income-wrap,
  .region-container .zip-wrap,
  .region-container .country-wrap {
    width: 100%;
  }
  .att-rep-wrap .radios-container {
    gap: 10px;
  }
  .att-rep-wrap .radios-container label {
    gap: 3px;
  }
  .att-rep-wrap .radios-container input[type="radio"] {
    width: 14px;
    height: 14px;
  }
  #disclosure-label span {
    /* color: white; */
    font-size: 11px;
  }
  input[type="submit"] {
    font-size: 14px;
    width: 150px;
  }
}
.right-content {
  width: 40%;
  float: right;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 100px;
  margin-top: -640px;
}
.right-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.right-content p {
  font-size: 16px;
  line-height: 1.5;
}
form {
  max-width: 400px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  margin-left: -10px;
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
}
input[type="email"],
select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}
select {
  padding-right: 30px; /* Add space for dropdown icon */
}
button {
  padding: 10px 2px;
  background-color: skyblue;
  border: none;
  color: white;
  cursor: pointer;
}
button:hover {
  background-color: #1E90FF;
}
.bottom-section {
  justify-content: space-between;
  margin-top: 40px;
}
.left-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.left-images img {
  width: 100%;
  height: auto;
}
.right-text {
  flex: 1;
  padding: 20px;
  margin-left: 900px;
  margin-top: -200px;
}
.right-text h2 {
  color: skyblue;
}
.right-text ul {
  list-style: none;
  padding: 0;
}
.right-text ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.right-text ul li::before {
  content: "\2713"; /* Check mark symbol */
  margin-right: 10px;
  color: green;
}
.quote-button {
padding: 10px 20px; /* Top and bottom padding, left and right padding */
border: none; /* Remove default border */
border-radius: 8px; /* Rounded corners */
background-color: #007BFF; /* Background color */
color: white; /* Text color */
font-size: 16px; /* Font size */
cursor: pointer; /* Pointer cursor on hover */
transition: background-color 0.3s; /* Smooth background color transition */
}

.quote-button:hover {
background-color: #0056b3; /* Darker background on hover */
}
.form-container {
display: flex;
justify-content: space-between;
padding: 20px;
}

.form-left {
flex: 1;
padding-right: 20px;
}

/* .headers {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}

.header-btn {
background-color: #007BFF;
color: white;
border: none;
padding: 10px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s;
}

.header-btn:hover {
background-color: #0056b3;
}
*/
.form-heading {
margin-bottom: 20px;
}

#form-content {
display: none;
}

.form-section {
display: none;
}

input, select {
display: block;
width: 100%;
margin-bottom: 10px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}

.quote-button {
padding: 10px 20px;
border: none;
border-radius: 8px;
background-color: #007BFF;
color: white;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.quote-button:hover {
background-color: #0056b3;
}

.form-right {
padding-left: 20px;
}
.form-container {
display: flex;
justify-content: space-between;
padding: 20px;
box-sizing: border-box;
width: 100%; /* Ensure full width */
overflow: auto; /* Allow scrolling if needed */
}

.form-left, .form-right {
flex: 1;
}

.main-container {
  display: flex;
  padding: 20px;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  width: 100%;
}

.sidebar {
  flex: 1;
  padding-right: 20px;
}

.image-section {
  text-align: center; /* Center the heading */
  margin-top: 20px; /* Space above the heading */
}

.heading {
  font-size: 24px; /* Adjust size as needed */
  font-weight: bold;
  color: #333; /* Adjust color as needed */
  margin-bottom: 20px; /* Space below the heading */
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  justify-content: center; /* Center images horizontally */
}

.image-grid .image-item {
  position: relative;
  width: 100%; /* Make width responsive */
  max-width: 500px; /* Set fixed max width */
  height: 400px; /* Set fixed height */
  overflow: hidden;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire area */
  display: block;
}

.image-grid .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 0, 128, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s;
}

.image-grid .overlay .overlay-content {
  text-align: center;
}

.image-grid .overlay .title {
  font-size: 1.5em;
  font-weight: bold;
}

.image-grid .overlay .description {
  margin-top: 10px;
  font-size: 1em;
}

.image-grid .image-item:hover .overlay {
  opacity: 1;
}

.overlay-link {
  display: block; /* Make sure the anchor tag takes up the full width */
  text-decoration: none; /* Remove the default underline from the link */
  color: inherit; /* Inherit color from the parent element */
}

.bottom-section .left-images .img-1 {
  width: 400px;height: 300px; margin-left: 10px; margin-top: 50px;
}

.bottom-section .left-images .img-2 {
  width: 400px; height: 300px; margin-left: 120px; margin-top: -40px;
}

.bottom-section .left-images .img-3 {
  width: 300px; height: 200px; margin-left: 450px; margin-top: -450px;
}



/* For screens between 1100px and 1199px */
@media (min-width: 1100px) and (max-width: 1199px) {
  .enclosure-container {
    margin: 20px auto auto auto;
    position: relative;
    height: fit-content;
    cursor: pointer;
    z-index: 1;
    margin-left: 190px;
  }
}


/* Responsive styling for large screens (1300px - 1400px) */
@media (max-width: 1400px) and (min-width: 1300px) {
  #left-content, .right-content {
      width: 48%;
  }

  /* Maintaining side-by-side layout for larger screens */
  .content {
      flex-direction: row;
      justify-content: space-between;
      height: 700px;
  }

  .enclosure-container {
      flex-direction: row;
  }

  .contact-now {
      text-align: right;
  }

  .right-content {
    margin-top: -600px; 
  }
}

@media (max-width: 1299px) and (min-width: 1201px) {
  #left-content, .right-content {
      width: 48%;
  }

  /* Maintaining side-by-side layout for larger screens */
  .content {
      flex-direction: row;
      justify-content: space-between;
      height: 700px;
  }

  .enclosure-container {
      flex-direction: row;
      margin-left: 200px;
  }

  .contact-now {
      text-align: right;
  }

  .right-content {
    margin-top: -600px; 
  }
}

.image-section {
  text-align: center; /* Center the heading */
  margin-top: 20px; /* Space above the heading */
}

.heading {
  font-size: 24px; /* Adjust size as needed */
  font-weight: bold;
  color: #333; /* Adjust color as needed */
  margin-bottom: 20px; /* Space below the heading */
}

.image-grid {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsive design */
  gap: 20px;
  margin-top: 40px;
  justify-content: center; /* Center images horizontally */
}

.image-grid .image-item {
  position: relative;
  flex: 0 0 250px; /* Set base width */
  min-width: 250px; /* Ensure minimum width for visibility */
  max-width: 300px; /* Optional: Set a maximum width */
  height: 250px; /* Set a fixed height for uniformity */
  overflow: hidden;
  border-radius: 10px; /* Round corners of the image item */
}

.image-grid img {
  width: 100%;
  height: 100%; /* Ensure all images fill the fixed height */
  object-fit: cover; /* Ensures the image covers the entire area */
  display: block;
  border-radius: 10px; /* Round corners of the image */
}

.image-grid .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 0, 128, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 10px; /* Round corners of the overlay */
  padding: 10px; /* Add some padding for better visibility */
}

.image-grid .overlay .overlay-content {
  text-align: center;
  flex-grow: 1; /* Allow content to take up available space */
}

.image-grid .overlay .title {
  font-size: 1.5em;
  font-weight: bold;
}

.image-grid .overlay .description {
  margin-top: 10px;
  font-size: 1em;
}

.image-grid .image-item:hover .overlay {
  opacity: 1;
}

/* Media Queries for different screen sizes */
@media (max-width: 400px) {
  .image-grid .image-item {
      height: 200px; /* Adjust height for smaller screens */
  }

  .heading {
      font-size: 20px; /* Adjust heading size for smaller screens */
  }
}

@media (min-width: 1100px) and (max-width: 1200px) {
  .image-grid .image-item {
      height: 140px; /* Adjust height for medium screens */
  }

  .heading {
      font-size: 22px; /* Adjust heading size */
  }
}

@media (min-width: 1201px) and (max-width: 1300px) {
  .image-grid .image-item {
      height: 140px; /* Adjust height for larger medium screens */
  }

  .heading {
      font-size: 23px; /* Adjust heading size */
  }
  .content {
    flex-direction: row;
    justify-content: space-between;
    height: 800px;
}
}

@media (min-width: 1301px) and (max-width: 1400px) {
  .image-grid .image-item {
      height: 140px; /* Adjust height for larger screens */
  }

  .heading {
      font-size: 24px; /* Adjust heading size */
  }
}


/* Responsive styling for medium screens (1100px - 1200px) */
@media (max-width: 1200px) and (min-width: 1100px) {
  #left-content, .right-content {
      width: 45%;
  }

  /* Ensuring both contents remain side by side */
  .content {
      flex-direction: row;
      justify-content: space-between;
      height: 800px;
  }

  .enclosure-container {
      flex-direction: row;
  }

  .contact-now {
      text-align: right;
  }

  .right-content {
    margin-top: -600px; 
  }
}



/* Responsive styling for small screens (300px - 400px) */
@media (max-width: 400px) {
  .content {
      display: flex;
      flex-direction: column;
      align-items: center;  /* Center align both sections */
      padding: 10px;
  }

  /* Ensure the left content comes first, then the right content */
  #left-content, .right-content {
      width: 100%;  /* Each section takes full width */
      margin-bottom: 20px;  /* Add space between stacked sections */
  }

  .right-content {
    margin-top: 100px;
  }

  /* Ensure the enclosure container adjusts properly */
  .enclosure-container {
      flex-direction: column;
      align-items: center;
  }

  /* Benefits enclosure should stack properly */
  .benefits-agent-encolsure {
      flex-direction: column;
      align-items: center;
  }

  /* Benefits should be centered */
  .benefits-enclosure {
      text-align: center;
  }

  /* Center the 'Call Now' section */
  .contact-now {
      text-align: center;
      margin-top: 20px;
  }

  /* Ensure images scale properly and stay within bounds */
  .agent-enclosure img,
  .cheerful-family-enclosure img {
      width: 100%;
      max-width: 100%;  /* Make images responsive */
  }

  /* Ensure form adjusts properly */
  form {
      width: 100%;
  }

  .form-group {
      width: 100%;
  }

  input[type="email"] {
      width: 100%;
  }

  button[type="submit"] {
      width: 100%;
      padding: 10px;
      font-size: 1rem;
  }
}

@media (max-width: 1700px) and (min-width: 1500px) {
  .content {
    height: 800px;
  }
}

@media (max-width: 400px) {
      .bottom-section { 
      display: flex; 
      flex-direction: column;  
      align-items: center; 
      padding: 10px; 
  } 

  .left-images, .right-text {
      width: 100%;  
      margin-bottom: 20px;  
  }

  .bottom-section .left-images .img-1 {
    width: 150px;height: 100px; margin-left: 10px; margin-top: 50px;
  }

  .bottom-section .left-images .img-2 {
    width: 150px;height: 100px; margin-left: 50px; margin-top: -30px;
  }

  .bottom-section .left-images .img-3 {
    width: 150px;height: 100px; margin-left: 180px; margin-top: -210px;
  }

  .right-text {
    margin-top: 180px;
    margin-left: -50px;
  }

  .left-images img {
      width: 100%; 
      margin-bottom: 10px; 
  }
  .quote-button {
      width: 100%;
      padding: 10px;
      font-size: 1rem;
  }
}

@media (max-width: 1200px) and (min-width: 1100px) {
  .left-images, .right-text {
    width: 50%;
  }
}

@media (max-width: 1300px) and (min-width: 1201px) {
  .left-images, .right-text {
    width: 50%;
  }
}

@media (max-width: 1400px) and (min-width: 1301px) {
  .left-images, .right-text {
    width: 50%;
  }
}