/*
 * Custom Stylesheet for Foxx Dental Service Page Template
 * Scoped to prevent global conflicts and loaded conditionally.
 */

/* ===== DESIGN PALETTE — Warm ivory + deep teal + brass gold accents ===== */
.foxx-custom-template {
  --ivory:     #FAF8F4;
  --ivory-2:   #F2EDE4;
  --ivory-3:   #E8E0D3;
  --teal-900:  #0D3D3A;
  --teal-700:  #145450;
  --teal-500:  #1E7A72;
  --teal-300:  #3AADA2;
  --teal-100:  #C8EDEA;
  --teal-50:   #E8F7F6;
  --gold:      #B8883A;
  --gold-light:#D4A85A;
  --gold-pale: #F7EDD8;
  --text-dark: #1A1714;
  --text-mid:  #3D3830;
  --text-muted:#7A7268;
  --text-light:#A09890;
  --white:     #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 12px rgba(13,61,58,0.07);
  --shadow-md: 0 6px 28px rgba(13,61,58,0.10);
  --shadow-lg: 0 16px 48px rgba(13,61,58,0.13);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  
  background: var(--ivory);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.foxx-custom-template *, 
.foxx-custom-template *::before, 
.foxx-custom-template *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

/* Structural elements */
.foxx-custom-template .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.foxx-custom-template .section { padding: 80px 0; }
.foxx-custom-template .section--sm { padding: 56px 0; }
.foxx-custom-template .section--alt { background: var(--white); }
.foxx-custom-template .section--dark { background: var(--teal-900); color: var(--ivory); }
.foxx-custom-template .section--ivory2 { background: var(--ivory-2); }

.foxx-custom-template .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.foxx-custom-template .section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal-900);
  margin-bottom: 16px;
  text-align: left;
}

.foxx-custom-template .section-title--light { color: var(--ivory); }

.foxx-custom-template .section-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.75;
  text-align: left;
}

.foxx-custom-template .section-desc--light { color: var(--teal-100); }

.foxx-custom-template .gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ===== TOP BAR ===== */
.foxx-custom-template .topbar {
  background: var(--teal-900);
  padding: 10px 0;
  font-size: 13px;
  color: var(--teal-100);
}

.foxx-custom-template .topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.foxx-custom-template .topbar a { color: var(--teal-100); text-decoration: none; }
.foxx-custom-template .topbar a:hover { color: var(--gold-light); }
.foxx-custom-template .topbar-links { display: flex; gap: 24px; align-items: center; }

/* ===== NAV ===== */
.foxx-custom-template .custom-nav {
  background: var(--white);
  border-bottom: 1px solid var(--ivory-3);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.foxx-custom-template .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.foxx-custom-template .nav-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 48px;
}

.foxx-custom-template .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1100;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 22px;
}

.foxx-custom-template .nav-toggle .hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--teal-900);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
}

.foxx-custom-template .nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-900);
  text-decoration: none;
}

.foxx-custom-template .nav-logo span { color: var(--gold); }

.foxx-custom-template .nav-links,
.foxx-custom-template .custom-nav ul {
  display: flex;
  gap: 28px;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
  align-items: center;
}

.foxx-custom-template .nav-links li,
.foxx-custom-template .custom-nav ul li {
  position: relative;
  list-style: none !important;
  list-style-type: none !important;
}

.foxx-custom-template .nav-links a,
.foxx-custom-template .custom-nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.foxx-custom-template .nav-links a:hover, 
.foxx-custom-template .nav-links a.active,
.foxx-custom-template .custom-nav ul li a:hover { 
  color: var(--teal-500); 
}

/* ===== DROPDOWN NAV MENUS (SUB-MENUS) ===== */
.foxx-custom-template .nav-links .menu-item-has-children > a::after,
.foxx-custom-template .nav-links .page-item-has-children > a::after,
.foxx-custom-template .custom-nav ul .page-item-has-children > a::after {
  content: " ▾";
  font-size: 11px;
  color: var(--text-muted);
  vertical-align: middle;
  transition: transform 0.2s;
  display: inline-block;
  margin-left: 4px;
}

.foxx-custom-template .nav-links .menu-item-has-children:hover > a::after,
.foxx-custom-template .nav-links .page-item-has-children:hover > a::after,
.foxx-custom-template .custom-nav ul .page-item-has-children:hover > a::after {
  transform: rotate(180deg);
  color: var(--teal-500);
}

.foxx-custom-template .nav-links .sub-menu,
.foxx-custom-template .nav-links .children,
.foxx-custom-template .custom-nav ul .children {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 220px;
  border: 1px solid var(--ivory-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none !important;
  list-style-type: none !important;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  text-align: left;
}

.foxx-custom-template .nav-links .sub-menu::before,
.foxx-custom-template .nav-links .children::before,
.foxx-custom-template .custom-nav ul .children::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--ivory-3);
  border-top: 1px solid var(--ivory-3);
}

.foxx-custom-template .nav-links li:hover > .sub-menu,
.foxx-custom-template .nav-links li:hover > .children,
.foxx-custom-template .custom-nav ul li:hover > .children {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.foxx-custom-template .nav-links .sub-menu li,
.foxx-custom-template .nav-links .children li,
.foxx-custom-template .custom-nav ul .children li {
  width: 100%;
  display: block;
}

.foxx-custom-template .nav-links .sub-menu a,
.foxx-custom-template .nav-links .children a,
.foxx-custom-template .custom-nav ul .children a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.foxx-custom-template .nav-links .sub-menu a:hover,
.foxx-custom-template .nav-links .children a:hover,
.foxx-custom-template .custom-nav ul .children a:hover {
  background: var(--teal-50);
  color: var(--teal-700) !important;
}

/* Interactive Elements */
.foxx-custom-template .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.foxx-custom-template .btn-primary {
  background: var(--teal-500);
  color: var(--white);
}
.foxx-custom-template .btn-primary:hover { background: var(--teal-700); transform: translateY(-1px); }

.foxx-custom-template .btn-gold {
  background: var(--gold);
  color: var(--white);
}
.foxx-custom-template .btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.foxx-custom-template .btn-outline {
  background: transparent;
  color: var(--teal-500);
  border: 1.5px solid var(--teal-300);
}
.foxx-custom-template .btn-outline:hover { background: var(--teal-50); }

.foxx-custom-template .btn-outline--light {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.foxx-custom-template .btn-outline--light:hover { background: rgba(255,255,255,0.1); }

.foxx-custom-template .btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }
.foxx-custom-template .btn-whatsapp { background: #25D366; color: white; }
.foxx-custom-template .btn-whatsapp:hover { background: #1EAD55; }

/* ===== BREADCRUMB ===== */
.foxx-custom-template .breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--ivory-3);
  background: var(--ivory-2);
}

.foxx-custom-template .breadcrumb ol { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; margin: 0; padding: 0; }
.foxx-custom-template .breadcrumb li:not(:last-child)::after { content: " ›"; color: var(--text-light); margin-left: 8px; }
.foxx-custom-template .breadcrumb a { color: var(--teal-500); text-decoration: none; }
.foxx-custom-template .breadcrumb a:hover { text-decoration: underline; }
.foxx-custom-template .breadcrumb li:last-child { color: var(--text-mid); font-weight: 500; }

/* ===== HERO ===== */
.foxx-custom-template .hero {
  background: var(--teal-900);
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
}

.foxx-custom-template .hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(30,122,114,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.foxx-custom-template .hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

.foxx-custom-template .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,136,58,0.15);
  border: 1px solid rgba(184,136,58,0.35);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.foxx-custom-template .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-align: left;
}

.foxx-custom-template .hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.foxx-custom-template .answer-block {
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0 32px;
  font-size: 16px;
  color: var(--teal-100);
  line-height: 1.7;
  text-align: left;
}

.foxx-custom-template .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.foxx-custom-template .hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.foxx-custom-template .hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.foxx-custom-template .hero-trust-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.foxx-custom-template .hero-trust-label {
  font-size: 12px;
  color: var(--teal-100);
}

.foxx-custom-template .hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Booking Card */
.foxx-custom-template .hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.foxx-custom-template .hero-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--teal-900);
  margin-bottom: 6px;
  text-align: left;
}

.foxx-custom-template .hero-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: left;
}

.foxx-custom-template .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  text-align: left;
}

.foxx-custom-template .form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

.foxx-custom-template .form-group input,
.foxx-custom-template .form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--ivory-3);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--ivory);
  transition: border-color 0.2s;
  width: 100%;
}

.foxx-custom-template .form-group input:focus,
.foxx-custom-template .form-group select:focus {
  outline: none;
  border-color: var(--teal-300);
  background: var(--white);
}

.foxx-custom-template .form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ===== TRUST BAR ===== */
.foxx-custom-template .trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--ivory-3);
  padding: 20px 0;
}

.foxx-custom-template .trust-items {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.foxx-custom-template .trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.foxx-custom-template .trust-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.foxx-custom-template .trust-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.foxx-custom-template .trust-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== DEFINITION SECTION ===== */
.foxx-custom-template .definition-box {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
  text-align: left;
}

.foxx-custom-template .definition-box p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
}

.foxx-custom-template .definition-box p strong { color: var(--teal-700); font-weight: 500; }

/* ===== SERVICES GRID ===== */
.foxx-custom-template .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.foxx-custom-template .service-card {
  background: var(--white);
  border: 1px solid var(--ivory-3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  color: inherit;
  display: block;
  text-decoration: none;
  text-align: left;
}

.foxx-custom-template .service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.foxx-custom-template .service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal-100); }
.foxx-custom-template .service-card:hover::before { transform: scaleX(1); }

.foxx-custom-template .service-emoji { font-size: 32px; margin-bottom: 14px; display: block; }

.foxx-custom-template .service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--teal-900);
  margin-bottom: 8px;
}

.foxx-custom-template .service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.65;
}

.foxx-custom-template .service-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== HOW IT WORKS ===== */
.foxx-custom-template .steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  position: relative;
}

.foxx-custom-template .steps-list::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 44px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal-300), var(--teal-100));
}

.foxx-custom-template .step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  text-align: left;
}

.foxx-custom-template .step-num {
  width: 44px;
  height: 44px;
  background: var(--teal-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--teal-50);
}

.foxx-custom-template .step-content h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--teal-900);
  margin-bottom: 6px;
  margin-top: 10px;
}

.foxx-custom-template .step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== WHY US ===== */
.foxx-custom-template .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.foxx-custom-template .why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background 0.2s;
  text-align: left;
}

.foxx-custom-template .why-card:hover { background: rgba(255,255,255,0.1); }
.foxx-custom-template .why-icon { font-size: 28px; margin-bottom: 14px; display: block; }

.foxx-custom-template .why-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.foxx-custom-template .why-card p {
  font-size: 14px;
  color: var(--teal-100);
  line-height: 1.65;
}

/* ===== COST TABLE ===== */
.foxx-custom-template .cost-note {
  background: var(--gold-pale);
  border: 1px solid rgba(184,136,58,0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
  text-align: left;
}

.foxx-custom-template .cost-note strong { color: var(--gold); }

.foxx-custom-template .cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.foxx-custom-template .cost-table thead { background: var(--teal-900); color: var(--white); }

.foxx-custom-template .cost-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.foxx-custom-template .cost-table tbody tr {
  border-bottom: 1px solid var(--ivory-3);
  transition: background 0.15s;
}

.foxx-custom-template .cost-table tbody tr:hover { background: var(--teal-50); }

.foxx-custom-template .cost-table td {
  padding: 14px 18px;
  color: var(--text-mid);
  vertical-align: middle;
}

.foxx-custom-template .cost-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

.foxx-custom-template .cost-range { font-weight: 500; color: var(--teal-700); }

.foxx-custom-template .cost-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ivory-3);
}

/* ===== FAQ ===== */
.foxx-custom-template .faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: left;
}

.foxx-custom-template .faq-item {
  border-bottom: 1px solid var(--ivory-3);
}

.foxx-custom-template .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--teal-900);
  list-style: none;
  transition: color 0.2s;
}

.foxx-custom-template .faq-q:hover { color: var(--teal-500); }
.foxx-custom-template .faq-q::marker, 
.foxx-custom-template .faq-q::-webkit-details-marker { display: none; }

.foxx-custom-template .faq-chevron {
  width: 24px;
  height: 24px;
  background: var(--teal-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--teal-500);
  transition: transform 0.3s, background 0.2s;
  margin-top: 2px;
}

.foxx-custom-template details[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--teal-500);
  color: var(--white);
}

.foxx-custom-template .faq-a {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===== LOCAL AREAS ===== */
.foxx-custom-template .areas-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.foxx-custom-template .area-tag {
  background: var(--white);
  border: 1px solid var(--ivory-3);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.foxx-custom-template .area-tag:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
  color: var(--teal-700);
}

/* ===== TESTIMONIALS ===== */
.foxx-custom-template .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.foxx-custom-template .review-card {
  background: var(--white);
  border: 1px solid var(--ivory-3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.foxx-custom-template .review-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.foxx-custom-template .review-text {
  font-size: 15px;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 18px;
}

.foxx-custom-template .reviewer { display: flex; align-items: center; gap: 12px; }

.foxx-custom-template .reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.foxx-custom-template .reviewer-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.foxx-custom-template .reviewer-area { font-size: 12px; color: var(--text-muted); }
.foxx-custom-template .review-treatment {
  display: inline-block;
  font-size: 11px;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 4px;
}

/* ===== DOCTOR BIO ===== */
.foxx-custom-template .doctor-bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  text-align: left;
}

.foxx-custom-template .doctor-photo {
  width: 200px;
  height: 240px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  border: 1px solid var(--teal-100);
  flex-shrink: 0;
}

.foxx-custom-template .doctor-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 4px;
}

.foxx-custom-template .doctor-qual {
  font-size: 15px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.foxx-custom-template .doctor-bio-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.foxx-custom-template .doctor-quote {
  background: var(--teal-50);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  font-style: italic;
  font-size: 15px;
  color: var(--teal-700);
  margin-top: 20px;
}

.foxx-custom-template .doctor-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.foxx-custom-template .cred-badge {
  background: var(--ivory-2);
  border: 1px solid var(--ivory-3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
}

/* ===== CONTACT / CTA ===== */
.foxx-custom-template .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.foxx-custom-template .contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 20px;
  text-align: left;
}

.foxx-custom-template .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.foxx-custom-template .contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.foxx-custom-template .contact-detail-text strong {
  display: block;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 2px;
}

.foxx-custom-template .contact-detail-text span {
  font-size: 14px;
  color: var(--teal-100);
}

.foxx-custom-template .contact-detail-text a {
  color: var(--gold-light);
  text-decoration: none;
}

.foxx-custom-template .contact-detail-text a:hover { text-decoration: underline; }
.foxx-custom-template .contact-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Map */
.foxx-custom-template .map-placeholder {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--teal-100);
}

.foxx-custom-template .map-placeholder .map-icon { font-size: 36px; }

/* ===== FOOTER ===== */
.foxx-custom-template .custom-footer {
  background: #0A2E2C;
  color: var(--teal-100);
  padding: 48px 0 24px;
  text-align: left;
}

.foxx-custom-template .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.foxx-custom-template .footer-brand p {
  font-size: 14px;
  color: var(--teal-100);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}

.foxx-custom-template .footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.foxx-custom-template .footer-logo span { color: var(--gold-light); }

.foxx-custom-template .footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.foxx-custom-template .footer-col ul { list-style: none; margin: 0; padding: 0; }
.foxx-custom-template .footer-col ul li { margin-bottom: 8px; }

.foxx-custom-template .footer-col a {
  font-size: 14px;
  color: var(--teal-100);
  text-decoration: none;
  transition: color 0.2s;
}

.foxx-custom-template .footer-col a:hover { color: var(--gold-light); }

.foxx-custom-template .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* Rating Display */
.foxx-custom-template .rating-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-pale);
  border: 1px solid rgba(184,136,58,0.3);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 24px;
}

.foxx-custom-template .rating-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.foxx-custom-template .rating-val { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.foxx-custom-template .rating-count { font-size: 13px; color: var(--text-muted); }

/* ===== NRI CALLOUT ===== */
.foxx-custom-template .nri-callout {
  background: var(--teal-900);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  text-align: left;
}

.foxx-custom-template .nri-callout h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}

.foxx-custom-template .nri-callout p {
  font-size: 15px;
  color: var(--teal-100);
}

/* ===== STICKY CTA MOBILE ===== */
.foxx-custom-template .sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--ivory-3);
  padding: 12px 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.foxx-custom-template .sticky-cta-inner {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

/* Loading Spinner & Success State */
.foxx-custom-template .loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== CONTACT FORM 7 INTEGRATION ===== */
.foxx-custom-template .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.foxx-custom-template .wpcf7-form br {
  display: none !important;
}
.foxx-custom-template .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}
.foxx-custom-template .wpcf7-form .fox-45,
.foxx-custom-template .wpcf7-form .fox-46 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 8px;
  width: 100%;
}
.foxx-custom-template .wpcf7-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  text-align: left;
  display: block;
  margin-bottom: 2px;
}
.foxx-custom-template .wpcf7-form input[type="text"],
.foxx-custom-template .wpcf7-form input[type="email"],
.foxx-custom-template .wpcf7-form input[type="tel"],
.foxx-custom-template .wpcf7-form input[type="date"],
.foxx-custom-template .wpcf7-form textarea,
.foxx-custom-template .wpcf7-form select {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid var(--ivory-3) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  color: var(--text-dark) !important;
  background: var(--ivory) !important;
  transition: border-color 0.2s !important;
  box-sizing: border-box !important;
  font-family: var(--font-body) !important;
}
.foxx-custom-template .wpcf7-form input:focus,
.foxx-custom-template .wpcf7-form select:focus,
.foxx-custom-template .wpcf7-form textarea:focus {
  border-color: var(--teal-500) !important;
  outline: none !important;
  background: var(--white) !important;
}
.foxx-custom-template .wpcf7-form input[type="submit"] {
  background: var(--teal-500) !important;
  color: var(--white) !important;
  width: 100% !important;
  padding: 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: block;
}
.foxx-custom-template .wpcf7-form input[type="submit"]:hover {
  background: var(--teal-700) !important;
  transform: translateY(-1px) !important;
}
.foxx-custom-template .wpcf7-form .wpcf7-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.foxx-custom-template .wpcf7-not-valid-tip {
  color: #d9534f !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  text-align: left !important;
}
.foxx-custom-template .wpcf7-response-output {
  border: 2px solid var(--teal-300) !important;
  background: var(--teal-50) !important;
  color: var(--teal-900) !important;
  padding: 12px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 15px 0 0 0 !important;
  text-align: center !important;
}
.foxx-custom-template .wpcf7-mail-sent-ng .wpcf7-response-output,
.foxx-custom-template .wpcf7-validation-errors .wpcf7-response-output {
  border-color: #d9534f !important;
  background: #fdf7f7 !important;
  color: #d9534f !important;
}

.foxx-custom-template .sticky-cta .btn { flex: 1; justify-content: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  /* Common Grid adjustments */
  .foxx-custom-template .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .foxx-custom-template .hero-card { max-width: 480px; margin: 0 auto; }
  .foxx-custom-template .contact-grid { grid-template-columns: 1fr; }
  .foxx-custom-template .footer-grid { grid-template-columns: 1fr 1fr; }
  .foxx-custom-template .doctor-bio { grid-template-columns: 1fr; gap: 30px; }
  .foxx-custom-template .doctor-photo { width: 100%; height: 280px; }

  /* Mobile Responsive Navigation */
  .foxx-custom-template .nav-inner {
    padding: 14px 20px;
  }
  
  .foxx-custom-template .nav-toggle {
    display: flex;
  }
  
  /* Hamburger Animation when open */
  .foxx-custom-template .nav-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: var(--gold);
  }
  .foxx-custom-template .nav-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .foxx-custom-template .nav-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--gold);
  }
  
  /* Animate Hamburger spacing slightly when closed */
  .foxx-custom-template .nav-toggle .hamburger-bar:nth-child(1) { transform: translateY(-3px); }
  .foxx-custom-template .nav-toggle .hamburger-bar:nth-child(2) { transform: scaleX(1); }
  .foxx-custom-template .nav-toggle .hamburger-bar:nth-child(3) { transform: translateY(3px); }

  /* Drawer Container */
  .foxx-custom-template .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--ivory-3);
    box-shadow: var(--shadow-lg);
    padding: 88px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    overflow-y: auto;
  }
  
  .foxx-custom-template .nav-menu-wrapper.is-open {
    transform: translateX(0);
  }
  
  /* Backdrop overlay */
  .foxx-custom-template .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 61, 58, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    z-index: 1020;
  }
  
  .foxx-custom-template .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  
  /* Prevent scroll when menu is active */
  body.nav-menu-active {
    overflow: hidden !important;
  }
  
  /* Restructure Nav Links vertically */
  .foxx-custom-template .nav-links,
  .foxx-custom-template .custom-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  
  .foxx-custom-template .nav-links li,
  .foxx-custom-template .custom-nav ul li {
    width: 100%;
  }
  
  .foxx-custom-template .nav-links a,
  .foxx-custom-template .custom-nav ul li a {
    font-size: 16px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--ivory-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .foxx-custom-template .nav-cta-wrapper {
    width: 100%;
    margin-top: auto;
  }
  
  .foxx-custom-template .nav-cta-wrapper .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
  }
  
  /* --- Mobile Expandable Sub-menus --- */
  .foxx-custom-template .nav-links .sub-menu,
  .foxx-custom-template .nav-links .children,
  .foxx-custom-template .custom-nav ul .children {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 0 16px !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: transparent !important;
  }
  
  .foxx-custom-template .nav-links .sub-menu::before,
  .foxx-custom-template .nav-links .children::before {
    display: none !important; /* remove arrow pointer on mobile */
  }
  
  .foxx-custom-template .nav-links li.sub-menu-open > .sub-menu,
  .foxx-custom-template .nav-links li.sub-menu-open > .children {
    max-height: 500px; /* arbitrary height to allow expansion */
    padding-top: 10px !important;
    padding-bottom: 5px !important;
  }
  
  .foxx-custom-template .nav-links .sub-menu li a,
  .foxx-custom-template .custom-nav ul .children li a {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: none;
    color: var(--text-muted);
  }
  
  /* Rotate carets on mobile */
  .foxx-custom-template .nav-links li.sub-menu-open > a::after {
    transform: rotate(180deg) !important;
  }
}

@media (max-width: 600px) {
  .foxx-custom-template .section { padding: 56px 0; }
  .foxx-custom-template .hero { padding: 56px 0; }
  .foxx-custom-template .trust-items { gap: 20px; }
  .foxx-custom-template .footer-grid { grid-template-columns: 1fr; }
  .foxx-custom-template .sticky-cta { display: block; }
  .foxx-custom-template .hero-ctas .btn { flex: 1; justify-content: center; }
  .foxx-custom-template .topbar .topbar-links { display: none; }
}

/* ===== PRICING TABLE RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .foxx-custom-template .cost-table,
  .foxx-custom-template .cost-table thead,
  .foxx-custom-template .cost-table tbody,
  .foxx-custom-template .cost-table th,
  .foxx-custom-template .cost-table td,
  .foxx-custom-template .cost-table tr {
    display: block;
    width: 100%;
  }

  /* Hide table headers on mobile screens */
  .foxx-custom-template .cost-table thead {
    display: none !important;
  }

  .foxx-custom-template .cost-table tbody tr {
    border-bottom: 2px solid var(--ivory-3);
    padding: 16px 8px;
    background: var(--white);
  }

  .foxx-custom-template .cost-table tbody tr:hover {
    background: var(--white); /* remove hover effect on mobile */
  }

  .foxx-custom-template .cost-table tbody tr:last-child {
    border-bottom: none;
  }

  .foxx-custom-template .cost-table td {
    border: none;
    position: relative;
    padding: 10px 18px 10px 50% !important;
    text-align: right !important;
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 44px;
  }

  /* Left-aligned bold labels */
  .foxx-custom-template .cost-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 18px;
    width: 45%;
    text-align: left;
    font-weight: 600;
    color: var(--teal-900);
    text-transform: capitalize;
  }

  /* Treatment specific styles (acts as card header) */
  .foxx-custom-template .cost-table td[data-label="Treatment"] {
    font-size: 16px;
    color: var(--teal-900) !important;
    font-family: var(--font-display);
    font-weight: 700;
    border-bottom: 1px dashed var(--ivory-3);
    padding-bottom: 14px !important;
    margin-bottom: 10px;
    justify-content: flex-start;
    padding-left: 18px !important;
    text-align: left !important;
  }

  .foxx-custom-template .cost-table td[data-label="Treatment"]::before {
    display: none !important; /* Hide label for treatment row as it serves as card title */
  }

  .foxx-custom-template .cost-range {
    font-size: 15px;
    color: var(--gold) !important;
  }
}