/* --- Savvy Search Form (Exact Alignment Edition) --- */
.savvy-search-form {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.3fr 1fr 1.4fr auto;
  align-items: end;
  gap: 1.25rem;
  margin: 2rem auto;
  max-width: 100%;
  padding: 1.75rem 2rem;

  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.savvy-search-form:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.8);
}

.savvy-field-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.savvy-search-form label {
  display: block;
  font-weight: 600;
  color: #e8f3ec;
  margin-bottom: 6px;
  font-size: 17px;
  letter-spacing: 0.3px;
}

/* --- Inputs + Dropdowns unified --- */
.savvy-search-form input[type="text"],
.savvy-search-form select {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.06)
    url("data:image/svg+xml,%3Csvg fill='%23ffffff' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  background-size: 12px;
  font-size: 17px;
  color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.savvy-search-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.savvy-search-form input[type="text"]:focus,
.savvy-search-form select:focus {
  border-color: #6eb98d;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.35);
  outline: none;
  background: rgba(255, 255, 255, 0.15)
    url("data:image/svg+xml,%3Csvg fill='%236eb98d' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
}

/* --- Range --- */
.savvy-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #d8e7dd;
  font-weight: 600;
}
.savvy-search-form input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, #4a7c59, #6eb98d);
  outline: none;
  cursor: pointer;
}

.savvy-search-form input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #6eb98d;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.savvy-search-form input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 10px rgba(110, 185, 141, 0.8),
    0 3px 6px rgba(0, 0, 0, 0.5);
}

/* Support for Firefox */
.savvy-search-form input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #6eb98d;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.savvy-search-form input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 10px rgba(110, 185, 141, 0.8),
    0 3px 6px rgba(0, 0, 0, 0.5);
}

/* --- Search Button (EXACT height match to inputs) --- */
.savvy-search-form .savvy-submit {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.savvy-search-form button[type="submit"] {
  height: 50px;
  padding: 0 40px;
  border-radius: 10px;
  border: none;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #4a7c59 0%, #6eb98d 100%) !important;
  color: #fff;
  box-shadow:
    0 6px 16px rgba(74, 124, 89, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  position: relative;
}

.savvy-search-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #5fa778 0%, #4a7c59 100%) !important;
  box-shadow:
    0 8px 22px rgba(74, 124, 89, 0.55),
    0 0 10px rgba(110, 185, 141, 0.35);
  transform: translateY(-1px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .savvy-search-form {
    grid-template-columns: repeat(2, 1fr);
  }
  .savvy-submit {
    grid-column: span 2;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .savvy-search-form {
    grid-template-columns: 1fr;
  }
  .savvy-submit {
    grid-column: 1;
    justify-content: center;
  }
  .savvy-search-form button[type="submit"] {
    width: 100%;
  }
}

/* --- Glow + Hover --- */
.savvy-search-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #5fa778 0%, #4a7c59 100%) !important;
  box-shadow:
    0 8px 22px rgba(74, 124, 89, 0.55),
    0 0 10px rgba(110, 185, 141, 0.35);
  transform: translateY(-2px);
}

/* --- Button Glow Animation --- */
@keyframes greenGlowPulse {
  0% { box-shadow: 0 0 0 rgba(110, 185, 141, 0.0); }
  50% { box-shadow: 0 0 20px 5px rgba(110, 185, 141, 0.35); }
  100% { box-shadow: 0 0 0 rgba(110, 185, 141, 0.0); }
}
.savvy-search-form button[type="submit"]:focus {
  animation: greenGlowPulse 2.5s infinite ease-in-out;
}

/* --- Loading Spinner --- */
.savvy-search-form button.loading {
  background: linear-gradient(135deg, #7ea88b 0%, #4a7c59 100%);
  cursor: wait;
  padding: 14px 48px !important;
}
.savvy-search-form button.loading::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: savvy-spin 0.8s linear infinite;
}
@keyframes savvy-spin {
  to { transform: rotate(360deg); }
}

/* --- Dropdowns --- */
.savvy-province-suggest,
.savvy-city-suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}
.savvy-province-suggest div,
.savvy-city-suggest div {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 16px;
  color: #fff;
}
.savvy-province-suggest div:hover,
.savvy-city-suggest div:hover {
  background: rgba(74, 124, 89, 0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .savvy-search-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 95%;
  }

  .savvy-field-group {
    width: 100%;
  }

  .savvy-search-form .savvy-submit {
    text-align: center;
  }

  .savvy-search-form button {
    width: 100%;
  }
}

/* --- Service Dropdown --- */
.savvy-search-form select[name="service"] {
  border-radius: 10px;
  padding: 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.06)
    url("data:image/svg+xml,%3Csvg fill='%23ffffff' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  background-size: 12px;
  font-size: 17px;
  color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.savvy-search-form select[name="service"]:focus {
  border-color: #6eb98d;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.35);
  outline: none;
  background: rgba(255, 255, 255, 0.15)
    url("data:image/svg+xml,%3Csvg fill='%236eb98d' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
}

.savvy-search-form select[name="service"] option,
.savvy-search-form select[name="province"] option,
.savvy-search-form select[name="country"] option {
  background: #222;
  color: #fff;
}

/* keep everything in one horizontal row */
.savvy-search-form {
  flex-wrap: nowrap;
  align-items: flex-end;
}

/* --- Savvy Results Web Form First --- */

#savvy-lead-gate {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  text-align: center;
}

#savvy-lead-gate h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

/* --- Savvy Results Grid Layout (previous working version) --- */
.savvy-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Card Base --- */
.savvy-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.savvy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(74, 124, 89, 0.25);
}

/* --- Image --- */
.savvy-card img {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  background: #f2f2f2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- Card Body --- */
.savvy-card > div {
  padding: 1.5rem 1.5rem 4rem; /* space for footer hover bar */
  flex-grow: 1;
}

/* --- Title --- */
.savvy-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

/* --- Description --- */
.savvy-card p {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

/* --- Location Chip --- */
.savvy-card .savvy-location {
  font-size: 15px;
  font-weight: 600;
  color: #4a7c59;
  background: rgba(74, 124, 89, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 0.25px;
}
.savvy-card .savvy-location span {
  font-weight: 500;
  color: #6b6b6b;
}

/* --- Links (website/email/phone) --- */
.savvy-card .savvy-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 15px;
  margin-bottom: 1.25rem;
}
.savvy-card .savvy-links a,
.savvy-card .savvy-links span {
  color: #4a7c59;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.savvy-card .savvy-links a:hover { color: #6eb98d; }
.savvy-card .savvy-links i {
  color: #6eb98d;
  font-size: 16px;
  width: 18px;
  text-align: center;
}

/* --- Footer Hover Bar --- */
.savvy-card .savvy-footer {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(135deg, #4a7c59 0%, #6eb98d 100%);
  display: flex;
  justify-content: space-between; /* makes divider dead-center */
  align-items: center;
  padding: 0; /* buttons handle their own padding */
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}
.savvy-card:hover .savvy-footer {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer Buttons + Center Divider --- */
.savvy-footer a {
  flex: 1 1 50%;
  text-align: center;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 14px 0;
  position: relative;
}
.savvy-footer a:first-child {
  padding-right: 28px;            /* equal visual weight vs divider */
}
.savvy-footer a:last-child {
  padding-left: 28px;
}

/* razor-thin divider perfectly centered between the two flex items */
.savvy-footer a:first-child::after {
  content: "";
  position: absolute;
  right: 0;                /* anchor to the right edge of the first link */
  top: 50%;
  transform: translate(50%, -50%); /* push it halfway into the gap */
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.45);
}

.savvy-footer a:hover { transform: translateY(-1px); opacity: 0.9; }

/* --- Load More Button --- */
.savvy-load-more {
  background: linear-gradient(135deg, #4a7c59 0%, #6eb98d 100%) !important;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.savvy-load-more:hover {
  background: linear-gradient(135deg, #5fa778 0%, #4a7c59 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 124, 89, 0.25);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .savvy-search-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .savvy-search-results { grid-template-columns: 1fr; }
}

/* ===========================================
   WPForms – Savvy Lightglass Edition v7
   =========================================== */

.wpforms-container {
  --savvy-green: #4a7c59;
  --savvy-green-light: #6eb98d;
  --savvy-green-faint: rgba(110, 185, 141, 0.15);
  --savvy-border: rgba(0, 0, 0, 0.08);
  --savvy-radius: 14px;
  --savvy-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Form Container --- */
.wpforms-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,250,250,0.95));
  border-radius: var(--savvy-radius);
  border: 1px solid var(--savvy-border);
  box-shadow: var(--savvy-shadow);
  padding: 1.75rem 2rem;
  margin: 2rem auto;
  max-width: 720px;
  transition: all 0.25s ease;
  backdrop-filter: blur(14px);
}
.wpforms-form:hover {
  box-shadow: 0 12px 28px rgba(74, 124, 89, 0.12);
}

/* --- Labels --- */
.wpforms-field-label {
  font-weight: 600;
  color: #1c1c1c;
  font-size: 15px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

/* --- Fields --- */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="url"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="number"],
.wpforms-field textarea,
.wpforms-field select {
  width: 100%;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 15px;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255,255,255,0.8);
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* --- Focus Glow --- */
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
  outline: none;
  border-color: var(--savvy-green-light);
  background: rgba(255,255,255,1);
  box-shadow:
    0 0 0 2px var(--savvy-green-faint),
    0 0 10px rgba(110, 185, 141, 0.25);
  transform: translateY(-1px);
}

/* --- Placeholder --- */
.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-size: 14px;
}

/* --- Select Field --- */
.wpforms-field select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.85)
    url("data:image/svg+xml,%3Csvg fill='%234a7c59' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  background-size: 12px;
}

/* --- Field Spacing --- */
.wpforms-field {
  margin-bottom: 0.9rem;
}

/* --- Submit Button --- */
.wpforms-submit {
  display: inline-block;
  background: linear-gradient(135deg, var(--savvy-green) 0%, var(--savvy-green-light) 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  padding: 12px 34px !important;
  cursor: pointer !important;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px rgba(74, 124, 89, 0.25);
}
.wpforms-submit:hover {
  background: linear-gradient(135deg, var(--savvy-green-light) 0%, var(--savvy-green) 100%) !important;
  box-shadow: 0 8px 20px rgba(74, 124, 89, 0.35);
  transform: translateY(-2px);
}

/* --- Confirmation --- */
.wpforms-confirmation-container-full {
  background: rgba(110, 185, 141, 0.08);
  border: 1px solid rgba(110,185,141,0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #305843;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 2px 10px rgba(74,124,89,0.1);
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(6px);}
  to {opacity: 1; transform: translateY(0);}
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .wpforms-form {
    padding: 1.25rem 1.5rem;
  }
  .wpforms-submit {
    width: 100%;
  }
}

h1.savvy-provider-name {
  font-family: "Poppins", Sans-serif;
  font-weight: 800;
  line-height: 1.4em;
  color:#FFF;
}
h4.savvy-provider-location {
  font-family: "Poppins", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFF;
}
p.savvy-provider-desc {
  font-family: "Roboto", Sans-serif;
  font-weight: 400;
  line-height: 1.4em;
  color:#FFF;
}
.savvy-provider-image img {
  border-radius: 10px;
}
.savvy-provider-image {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-left: 2rem;
  position: relative;
  z-index: 1;
}

.savvy-provider-image img {
  width: 280px;
  height: auto;
  border-radius: 20px !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);

  /* --- Layered upscale shadow --- */
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.10),
    0 18px 40px rgba(74, 124, 89, 0.15);

  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  will-change: transform, box-shadow;
}

.savvy-provider-image img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.15),
    0 20px 48px rgba(74, 124, 89, 0.25);
  filter: brightness(1.03) contrast(1.05);
}

/* --- Optional soft ambient glow (matches your green palette) --- */
.savvy-provider-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(110, 185, 141, 0.25),
    rgba(74, 124, 89, 0.05) 70%
  );
  z-index: -1;
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .savvy-provider-image {
    justify-content: center;
    margin-left: 0;
  }

  .savvy-provider-image img {
    width: 220px;
  }
}

.savvy-rating-bar {
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:8px;
    font-size:16px;
    color:#f4b400; /* gold stars */
}

.savvy-rating-stars {
    font-size:18px;
    line-height:1;
}

.savvy-rating-count {
    font-size:14px;
    color:#555;
}