/* 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;
  gap:20px;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1.5rem; 
}

.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: white;
  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,
.wpcf7-form input[name="patient-email"].input-field {
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px;
  padding-left: 44px;
}

/* Name */
.wpcf7-form input[name="patient-name"].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='%23088685' 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");
}

/* Phone */
.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='%23088685' 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");
}

/* Location */
.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='%23088685' 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");
}

/* Date */
.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='%23088685' 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 */
.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='%23088685' 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: white;
  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="reason"].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.7rem;
  margin-bottom: 0.3rem;
  color:#088685;
}

.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;
}



/* ------------------------- */
/* 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;
  }
}
