/* header Css*/
.has-submenu .dropdown-menu-sub {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-submenu.active .dropdown-menu-sub,
.has-submenu:hover .dropdown-menu-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.has-submenu.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu-sub a {
    display: block;
    padding: 1rem 0;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.3s ease;
}
.dropdown-menu-sub a:hover {
    color: #0840A3 !important;
}


.negative-margin-top {
    margin-bottom: -100px !important;
}




/* ───────────────────────────────────────────────
   Contact Form 7 - Dental Appointment Style 2026
─────────────────────────────────────────────── */

.wpcf7-form {
  font-family: 'Inter', system-ui, sans-serif;
}

.wpcf7-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.wpcf7-form .input-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem !important;         /* space for icon */
  font-size: 1rem;
  color: #374151;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s ease;
  background-position: left 1rem center;
  background-repeat: no-repeat;
  background-size: 20px;
}


/* Icons inside fields */
.wpcf7-form input[name="patient-name"].input-field,
.wpcf7-form input[name="patient-phone"].input-field,
.wpcf7-form input[name="patient-location"].input-field,
.wpcf7-form input[name="preferred-date"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.wpcf7-form select.input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;

  padding-right: 40px;
}

.wpcf7-form input[name="patient-phone"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

.wpcf7-form input[name="patient-location"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

.wpcf7-form input[name="preferred-date"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}
/* Email field icon */
.wpcf7-form input[name="patient-email"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.wpcf7-form select[name="service"].input-field {
  padding-left: 1rem !important;
  padding-right: 2.5rem !important;
}

.wpcf7-form textarea.input-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem !important;
  font-size: 1rem;
  color: #374151;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s ease;
  background-position: left 1rem top 1rem;
  background-repeat: no-repeat;
  background-size: 20px;
  min-height: 110px;
  resize: vertical;
}


.wpcf7-form textarea.input-field:focus {
  border-color: #088685;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: none;
}

.wpcf7-form textarea[name="message"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z'/%3E%3C/svg%3E");
}

.wpcf7-form input[name="patient-email"].input-field {
  width: 100% !important;
}
.wpcf7-form .input-field:focus,
.wpcf7-form select.input-field:focus {
  border-color: #088685;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: none;
}
.wpcf7-form select.input-field {
  padding-left: 1rem !important;
  padding-right: 2.5rem !important;
  -webkit-appearance: none;        
  -moz-appearance:    none;         
  appearance:         none; 
}

.wpcf7-form select[name="service"].input-field,
.wpcf7-form select[name="preferred-time"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-position: right 1.25rem center;
  background-repeat: no-repeat;
  background-size: 18px;
}
.wpcf7-form .radio-custom .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wpcf7-form .radio-custom input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #088685;
}

.wpcf7-form .radio-custom label {
  margin: 0;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.wpcf7-form .submit-btn {
  width: 100%;
  padding: 1.125rem 2rem;
  background-color:#088685;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

.wpcf7-form .submit-btn:hover, .emergency:hover {
  background-color:#405769;
}


.wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}




/* service page form  */

.form-field {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #088685;
  box-shadow: 0 0 0 3px rgba(40, 170, 224, 0.15);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-submit {
  text-align: center;
}

.submit-button {
  background-color: #088685;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 40px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.submit-button:hover {
  background-color: #1e9acd;
  transform: translateY(-1px);
}
.radio-custom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-custom .wpcf7-list-item {
  display: block;
  width: 100%;
  margin: 0;
}

.radio-custom label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}




/* .hero-booking-form .grid {
  align-items: end;               
} */
.hero-booking-form label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -5px !important;
}

.hero-booking-form .wpcf7-form-control-wrap {
  display: block !important;
  margin-top: 0 !important;
}

.hero-booking-form input {
  margin-top: 0 !important;
}

.hero-booking-form button {
  height: 48px;                  
  line-height: 1.5;           
  padding-top: 0.75rem;            
  padding-bottom: 0.75rem;
    width:180px;
}

@media (min-width: 768px) {
  .hero-booking-form .flex.justify-end.items-end {
    margin-top: -4px;              
  }
}

.hero-booking-form input,
.hero-booking-form button {
  font-size: 1rem;               
  line-height: 1.5;

}

.hero-booking-form input{
  border-radius: 0.5rem;            
  border-width: 1px;
}


.hero-booking-form label {
  display: flex !important;        
  align-items: center;             
  gap: 0.5rem;                       
}

.hero-booking-form label svg,
.hero-booking-form label span {
  display: inline-block !important;
  flex-shrink: 0;
  margin: 0 !important;              /* kill any rogue margins */
}

.hero-booking-form input:focus {
  border-color: #0840A3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 64, 163, 0.1);
}

.hero-booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* Mobile stack */
@media (max-width: 767px) {
  .hero-booking-form .grid {
    grid-template-columns: 1fr;
  }
  .hero-booking-form button {
    width: 100%;
  }
}
/* Style the response message inside the form */
.hero-booking-form .wpcf7-response-output {
  margin: 1.5rem 0 !important;           /* Space above/below */
  padding: 1rem 1.5rem !important;
  border-radius: 1rem !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  border: none !important;
  width: 100% !important;                /* Full width inside box */
  box-sizing: border-box !important;
}

/* Error styling (red/pink theme) */
.hero-booking-form .wpcf7-validation-errors,
.hero-booking-form .wpcf7-mail-sent-ng {
  background-color: #fee2e2 !important;  /* Light red bg */
  color: #991b1b !important;             /* Dark red text */
  border: 1px solid #fecaca !important;
}

/* Success styling (if you want it later) */
.hero-booking-form .wpcf7-mail-sent-ok {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

/* Hide any default small per-field tips if still showing (optional) */
.hero-booking-form .wpcf7-not-valid-tip {
  display: none !important;
}
/* Add to your style.css or Additional CSS */
.marquee {
  --gap: 1rem; /* Adjust spacing between logos */
  display: flex;
  overflow: hidden;
  gap: 20px;
  user-select: none;
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  gap: 0px;
  animation: scroll 30s linear infinite; /* Adjust duration for speed */
}

.marquee:hover .marquee-group {
  animation-play-state: paused; /* Optional: pause on hover */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.marquee img:hover {
  filter: grayscale(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-group img {
    height: 48px !important;
  }
  .marquee {
    --gap: 1rem;
  }
  .marquee-group {
    animation-duration: 20s; /* Faster on mobile */
  }
}


/* Testinomials Css */
.testimonials-swiper,
.testimonials-swiper .swiper-wrapper,
.testimonials-swiper .swiper-slide {
  overflow: visible !important;
}

.testimonial-card {
  overflow: visible;
}
.testimonials-swiper {
  padding-top: 3rem;
}

.testimonials-swiper .swiper-slide {
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonials-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 10;
}

.testimonials-swiper .swiper-pagination,
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
  display: none !important;
}
.testimonials-swiper .swiper-slide {
  height: auto;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonials-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 10;
}
.testimonial-card {
  padding-top: 2.5rem;
  min-height: 350px;
}
.avatar-wrapper {
  z-index: 20;
}
.testimonials-swiper {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

@media (min-width: 1024px) {
  .testimonials-swiper {
    padding-left: 4rem;
    padding-right: 4rem;
    margin-left: -4rem;
    margin-right: -4rem;
  }
}


 .mobile-hover:hover{
  border-bottom:2px solid#2B4CA1 !important ;
 }


/* Scroll Animation Keyframes */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply to elements in view */
.animate-on-scroll {
    view-timeline-name: --element;
    view-timeline-axis: block;
    animation-timeline: view();
    animation-name: fade-up;
    animation-range: entry 20% cover 40%;
    animation-fill-mode: both;
}

.animate-scale {
    view-timeline-name: --element;
    view-timeline-axis: block;
    animation-timeline: view();
    animation-name: scale-in;
    animation-range: entry 20% cover 50%;
    animation-fill-mode: both;
}

/* Stagger children automatically (magic!) */
.animate-group > * {
    animation-delay: calc(var(--index) * 150ms);
}


/* FAQ Accordion Styles */
  .faq-item {
    background: transparent;
  }


/* Hover only for desktop visual effect */
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    background: #088685;
     color:white !important;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  }
}

/* Active (open) state — always stronger than hover */
.faq-item.active {
  background: #088685;
  color:white !important;
  box-shadow: 0 25px 30px -10px rgb(0 0 0 / 0.15);
}


  .faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
  }

  .faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
    padding: 0 1.25rem 1.5rem;
  }

  @media (min-width: 640px) {
    .faq-answer {
      padding-left: 2rem;
      padding-right: 2rem;
    }
    .faq-item.active .faq-answer {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }

  .faq-trigger h3 {
    min-width: 0;
  }

.service-card {
  position: relative;        
  z-index: 0;               
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* ------------------------- */
/* BACKGROUND PSEUDO ELEMENT */
/* ------------------------- */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;                   
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;                
}

.service-card > * {
  position: relative;
  z-index: 1;
}
  .service-card  span {
    border-radius: 50px;
    background-color: white;
    text-decoration: none; 
  }

/* ------------------------- */
/* COLORS FOR EACH CARD       */
/* ------------------------- */
.hover-card::before { background-color: #E8F0F3;  border: 2px solid #088685;}
.purple-card::before { background-color: #B700FF; }
.skyblue-card::before   { background-color: #088685; }
.green-card::before  { background-color: #00C853; }
.hover-card:hover h3,
.hover-card:hover p {
  color: #000000 !important;    

}

.hover-card:hover {
  color: #000000 !important;     /* fallback for any direct text */
}
/* ------------------------- */
/* DESKTOP HOVER             */
/* ------------------------- */
@media (hover: hover) {
  .service-card:hover::before {
    opacity: 1;
  }

  .service-card:hover h3 {
    color: white;
  }
  
   
  .service-card:hover span {
    background-color: white;
    border-radius: 50px;
     text-decoration: none; 
    color: #088685;
  }
.service-card span:hover {
    background-color: white !important;
    color: black !important;
    text-decoration: none;
    border-radius: 50px;
    


}
 .service-card:hover .icon-border {
    border-color: #088685;
    box-shadow: 0 0 0 4px rgba(8, 134, 133, 0.15);
  }


  .service-card:hover p {
  color: white;
  }
}
/* ------------------------- */
/* MOBILE TAP / FOCUS         */
/* ------------------------- */
@media (hover: none) {
  /* Make tap/focus visible */
  .service-card:focus-visible::before {
    opacity: 1;
  }
  
body:not(.page-id-5) .service-card:focus-visible h3 {
    color: white;
  }

  .service-card:focus-visible .icon-border {
    border: 2px solid #088685;
  }

  
body:not(.page-id-5) .service-card:focus-visible p {
    color: rgba(255, 255, 255, 0.9);
  }
  .service-card {
    transform: none !important;
  }
}

.service-card.is-active::before {
  opacity: 1;
}
 
body:not(.page-id-5) .service-card.is-active h3 {
  color: white;
}


.service-card.is-active .icon-border {
  border: 2px solid #088685;
}


body:not(.page-id-5) .service-card.is-active p {
  color: rgba(255, 255, 255, 0.9);
}

  @keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .animate-spin-slow {
    animation: spin-slow 35s linear infinite;
    transform-origin: center;
  }

.hover-btn {
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .hover-btn:hover {
    background-color: #405769;
    border:1px solid #405769;
    color:white;
    transform: translateY(-2px);
  }
}
@media (hover: none) {
  .hover-btn:hover{
    background-color: #405769;
    border:1px solid #405769;
    color:white;
  }
}
