/* Fold-critical /consult layout. Works even if Tailwind CDN is slow. */
:root {
  --cc-navy: #111a2d;
  --cc-gold: #edb417;
}

.bg-navy { background-color: var(--cc-navy); }
.text-navy { color: var(--cc-navy); }
.bg-gold { background-color: var(--cc-gold); }
.text-gold { color: var(--cc-gold); }
.text-white { color: #fff; }

.hidden { display: none !important; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-stretch { align-items: stretch; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.container { width: 100%; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

header.sticky {
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 26, 45, 0.08);
}
header a { color: var(--cc-navy); text-decoration: none; }
header a.bg-navy { color: #fff; }
.consult-hero {
  background: var(--cc-navy);
  color: #fff;
}
.consult-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.consult-gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-gold);
  color: var(--cc-navy);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
}
.consult-doc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0.85rem;
  max-width: 22rem;
}
.consult-doc img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 0.75rem;
  border: 1px solid rgba(237, 180, 23, 0.4);
  flex-shrink: 0;
  background: #0b1220;
}
.consult-doc figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #e2e8f0;
}
.consult-doc figcaption strong {
  color: #fff;
  font-weight: 600;
}
.consult-pay-note {
  color: #cbd5e1;
}
.consult-next {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: consult-next;
}
.consult-next li {
  counter-increment: consult-next;
  position: relative;
  padding-left: 2.5rem;
  color: #4b5563;
  line-height: 1.55;
}
.consult-next li::before {
  content: counter(consult-next);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--cc-gold);
  color: var(--cc-navy);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consult-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.25rem 0;
}
.consult-faq-item:last-child {
  border-bottom: 0;
}
.consult-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--cc-navy);
  padding: 1rem 0;
}
.consult-faq-item summary::-webkit-details-marker {
  display: none;
}
.consult-faq-item p {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.65;
}
.ghl-consult-embed,
.ghl-consult-embed iframe,
#lead-form {
  max-width: 100%;
}
.ghl-consult-embed {
  overflow-x: hidden;
}
.consult-hero-long,
.consult-mobile-story {
  display: none !important;
}

@media (max-width: 767px) {
  .consult-hero {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .consult-hero p {
    margin-bottom: 0.5rem;
  }
  .consult-hero-phone {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    padding: 0.15rem 0 0;
    border: 0;
    background: transparent;
  }
  /* Conversion page: drop the extra ES nav row so the form starts on-screen. */
  html[lang="es-MX"] .cc-mobile-nav {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-wrap { flex-wrap: wrap; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 1.15; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:rounded-full { border-radius: 9999px; }
  .sm\:font-semibold { font-weight: 600; }
  .sm\:border { border-width: 1px; }
  .sm\:no-underline { text-decoration: none; }
  .sm\:text-white { color: #fff; }
}

@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:mb-4 { margin-bottom: 1rem; }
  .md\:mb-5 { margin-bottom: 1.25rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .consult-hero-long { display: none !important; }
  .consult-mobile-story { display: none !important; }
  .consult-doc img {
    width: 5.5rem;
    height: 5.5rem;
  }
  .consult-hero-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:mb-0 { margin-bottom: 0; }
}

#lead-form {
  scroll-margin-top: 5.5rem;
}
html[lang="es-MX"] #lead-form {
  scroll-margin-top: 8rem;
}
