.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
  justify-content: center;
}

.card {
  width: 250px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.card-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* Pushes meta section to bottom */
}

.card-meta i {
  margin-left: 10px;
  cursor: pointer;
}

/* === Popup Overlay === */
#cf7-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* === Popup Container === */
#cf7-popup {
  max-width: 650px;
  width: 90%;
  background: #fff;
  padding: 40px;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, top 0.3s ease;
}

#cf7-popup.active,
#cf7-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

#cf7-popup.active {
  top: 12%;
}

/* === Close Button === */
#close-popup {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #444;
}

/* === Form Heading === */
#cf7-popup h2 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #222;
}

/* === Form Layout === */
#cf7-popup .wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#cf7-popup .wpcf7-form > p {
  flex: 1 1 48%;
}

#cf7-popup .wpcf7-form p:nth-child(5),
#cf7-popup .wpcf7-form p:nth-child(6) {
  flex: 1 1 100%;
}

/* === Input Fields === */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 6px;
  font-size: 15px;
  background: transparent;
  transition: border-color 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-bottom: 1.5px solid #000;
  outline: none;
}

/* === Submit Button === */
.wpcf7 input[type="submit"] {
  background: #f36c6c;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #e25555;
}

/* === Mobile Friendly === */
@media (max-width: 600px) {
  #cf7-popup {
    padding: 30px 20px;
    top: 5%;
  }

  #cf7-popup .wpcf7-form > p {
    flex: 1 1 100%;
  }

  #cf7-popup h2 {
    font-size: 22px;
  }
}



@media only screen and (min-width: 600px) {
.elementor-43 .elementor-element.elementor-element-a8c6dce .wpr-forms-container .wpcf7-form div.w50 {
    width: 49%;
    float: left;
    padding: 0 15px;
}
.elementor-43 .elementor-element.elementor-element-a8c6dce .wpr-forms-container .wpcf7-form div.msg {
    padding: 0 15px;
}
.elementor-43 .elementor-element.elementor-element-a8c6dce .wpr-forms-container{
    height:100%!important;
}
}
.wpcf7-form-control::placeholder {font-size: 14px; letter-spacing: 0; font-weight: medium; font-family: 'Lato'; color: dimgray;}

.wpcf7-not-valid-tip {
    font-size: 14px!important;
   margin-top: -20px;
    margin-bottom: 10px;
}

.w50 {
    width: 48% !important;
    float: left;
   
}
.w50{
	 padding: 0 15px;
}
.msg{
	 padding-left:15px;
	width: 100%;
}
.wpcf7-validates-as-required, .wpcf7 textarea {
    background: none!important;
}
.elementor-widget-shortcode .wpcf7 textarea{
	height: 50px;
}