/* =============================================================================
   contact.css — /contact page styles (namespaced, do NOT edit shared tokens)
   Brand rule: NO BLUE, pages stay cream (#FAF6ED), element-scale gradients only.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Shared button system (used on both contact + connect)
   --------------------------------------------------------------------------- */
.gv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--gv-font-label);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    filter var(--gv-dur) var(--gv-ease),
    box-shadow var(--gv-dur) var(--gv-ease),
    transform var(--gv-dur-press) var(--gv-ease-out);
  -webkit-tap-highlight-color: transparent;
}

.gv-btn:focus-visible {
  outline: 3px solid var(--gv-gold-text);
  outline-offset: 3px;
}

.gv-btn:active {
  transform: scale(0.97);
}

/* Gold gradient fill — primary CTA (canonical per style guide §6) */
.gv-btn--filled {
  background: var(--gv-grad-gold);
  color: var(--gv-ink-deepest);
  border-color: transparent;
}

.gv-btn--filled:hover {
  filter: brightness(1.04);
  box-shadow: var(--gv-shadow-lg);
}

/* Gold-outline — secondary / calm */
.gv-btn--outline {
  background: transparent;
  color: var(--gv-gold-text);
  border-color: var(--gv-gold);
}

.gv-btn--outline:hover {
  background: rgba(196, 140, 60, 0.06);
  box-shadow: 0 2px 10px rgba(196, 140, 60, 0.12);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .gv-btn { transition: none; }
  .gv-btn:active { transform: none; }
}


/* ---------------------------------------------------------------------------
   §1 — PAGE HEADER
   --------------------------------------------------------------------------- */
.gv-contact-header {
  padding-top: 36px;
  padding-bottom: 28px;
}

@media (min-width: 768px) {
  .gv-contact-header {
    padding-top: 64px;
    padding-bottom: 40px;
  }
}

.gv-contact-header__rule {
  max-width: 200px;
  margin: 10px 0 20px;
}

.gv-contact-header__h1 {
  font-family: var(--gv-font-display);
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 500;
  color: var(--gv-text);
  line-height: var(--gv-display-lh);
  letter-spacing: var(--gv-display-tracking);
  margin: 0 0 14px;
  max-width: 20ch;
}

.gv-contact-header__sub {
  font-family: var(--gv-font-body);
  font-size: 19px;
  color: var(--gv-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}


/* ---------------------------------------------------------------------------
   §2 — BOOK A CALL: tabbed calendar interface (Medicare | Final Expense).
   Tabs at all viewports — replaces the old side-by-side desktop grid.
   --------------------------------------------------------------------------- */
.gv-contact-booking {
  padding-bottom: 24px;
}
.gv-contact-booking__intro {
  font-family: var(--gv-font-body);
  font-size: 18px;
  color: var(--gv-text-muted);
  line-height: 1.55;
  margin: 8px 0 24px;
  max-width: 60ch;
}
@media (min-width: 768px) {
  .gv-contact-booking {
    padding-bottom: 40px;
  }
}

/* Warm pre-calendar image: slim band capped to the booking column width.
   Fixed-ratio box (object-fit: cover) → CLS-free. */
.gv-contact-booking__media {
  display: block;
  border-radius: var(--gv-radius);
  overflow: hidden;
  box-shadow: var(--gv-shadow);
  margin: 0 0 28px;
  max-width: 720px;
}
.gv-contact-booking__img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.05);
}
@media (min-width: 768px) {
  .gv-contact-booking__img { height: 220px; }
}

/* ---- Tab strip ---- */
.gv-cal-tabs {
  width: 100%;
}

.gv-cal-tablist {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gv-rule);
  margin-bottom: 24px;
}

.gv-cal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-family: var(--gv-font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gv-text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition:
    color var(--gv-dur) var(--gv-ease),
    border-color var(--gv-dur) var(--gv-ease);
  -webkit-tap-highlight-color: transparent;
}

.gv-cal-tab:hover {
  color: var(--gv-text);
}

.gv-cal-tab[aria-selected="true"] {
  color: var(--gv-gold-text);
  border-bottom-color: var(--gv-gold);
}

.gv-cal-tab:focus-visible {
  outline: 3px solid var(--gv-gold-text);
  outline-offset: 2px;
  border-radius: 4px 4px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .gv-cal-tab { transition: none; }
}

/* ---- Tab panels ---- */
.gv-cal-panel {
  width: 100%;
}

.gv-cal-panel[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .gv-cal-tablist {
    margin-bottom: 32px;
  }
  .gv-cal-tab {
    min-height: 56px;
    padding: 0 32px;
    font-size: 15px;
  }
}

/* ---------------------------------------------------------------------------
   §3 — SEND A MESSAGE form section (single column, capped width)
   --------------------------------------------------------------------------- */
.gv-contact-embeds {
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .gv-contact-embeds {
    padding-bottom: 64px;
  }
  .gv-contact-embeds--form-only {
    max-width: 620px;
  }
}

.gv-embed-card {
  background: var(--gv-card);
  border: 1px solid var(--gv-rule);
  border-radius: var(--gv-radius);
  padding: 24px 20px;
  /* Double-bezel: matches embed.css canonical treatment */
  box-shadow:
    var(--gv-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: 100%;
}

@media (min-width: 768px) {
  .gv-embed-card {
    padding: 32px;
  }
}

/* Booking calendar cards: a contained, centered column. NO viewport-breakout —
   the old `calc(50% - min(50vw - 1rem, 680px))` trick made the card wider than
   its container and shifted/clipped the whole embed on wide screens / with a
   classic scrollbar (vw counts the scrollbar, % does not). Plain max-width +
   auto margins can't shift. (Matches the /final-expense/ fix.) */
@media (min-width: 900px) {
  .gv-contact-booking .gv-embed-card {
    max-width: 1100px;
    margin-inline: auto;
  }
}

.gv-embed-card__label {
  margin-bottom: 6px;
}

.gv-embed-card__intro {
  font-family: var(--gv-font-body);
  font-size: 17px;
  color: var(--gv-text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

/* Embed wrapper holds skeleton, fallback, or iframe */
.gv-embed-wrapper {
  position: relative;
  width: 100%;
  /* GHL booking widget reports ~805px content on mobile, ~830px on desktop
     (measured via its highlevel.setHeight postMessage). A too-short value left
     a dead, un-scrollable scrollbar inside the widget. Height set to fully
     clear the content + buffer for month/view reflow, with no big empty gap. */
  min-height: 880px;
  border-radius: var(--gv-radius-sm);
  overflow: hidden;
}
@media (min-width: 768px) {
  .gv-embed-wrapper {
    min-height: 880px;
  }
}

/* When the calm pre-launch state is the content, the tall reserved min-height
   leaves a dead cream band. Collapse to content height — the iframe path still
   uses its own min-height. Pre-launch flows in normal (non-absolute) layout. */
/* Cross-browser: was :has(> .gv-embed-prelaunch:not([hidden])) — Safari <15.4 / FF <121
   don't support :has(). Class is set by contact.js at the same time prelaunch is shown. */
.gv-embed-wrapper--prelaunch {
  min-height: 0;
}

/* Skeleton shimmer */
.gv-embed-skeleton {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--gv-rule);
  border-radius: var(--gv-radius-sm);
  overflow: hidden;
}

.gv-embed-skeleton__shimmer {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 253, 246, 0.6) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gv-shimmer 1.6s linear infinite;
}

@keyframes gv-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gv-embed-skeleton__shimmer { animation: none; }
}

/* Fallback block */
.gv-embed-fallback {
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
/* [hidden] must win over display:flex (else the error fallback always shows) */
.gv-embed-fallback[hidden] { display: none; }
.gv-embed-skeleton[hidden] { display: none; }

.gv-embed-fallback__line {
  font-family: var(--gv-font-body);
  font-size: 18px;
  color: var(--gv-text-body);
  margin: 0;
  line-height: 1.5;
}

/* Pre-launch holding state (calm, phone/email-first; not an error) */
.gv-embed-prelaunch {
  position: relative; /* normal flow, not absolute — sizes the wrapper */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 4px 2px 2px;
}
.gv-embed-prelaunch[hidden] { display: none; }

.gv-embed-prelaunch__line {
  font-family: var(--gv-font-body);
  font-size: 18px;
  color: var(--gv-text-body);
  margin: 0;
  line-height: 1.6;
  max-width: 46ch;
}

.gv-embed-prelaunch__action {
  width: 100%;
  max-width: 360px;
  letter-spacing: 0.06em; /* the phone number makes the label long — tighter tracking keeps it to one line */
}

.gv-embed-prelaunch__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.gv-embed-prelaunch__alt {
  font-family: var(--gv-font-body);
  font-size: 16px;
  color: var(--gv-text-muted);
  margin: 0;
  line-height: 1.5;
}
.gv-embed-prelaunch__alt a {
  /* >=48px tap target for an older thumb (was ~20px inline) */
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 2px;
  color: var(--gv-gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}


/* ---------------------------------------------------------------------------
   §4 — DIRECT CONTACT (secondary — demoted below embeds)
   --------------------------------------------------------------------------- */
.gv-contact-direct {
  padding-top: 8px;
  padding-bottom: 32px;
}

/* Secondary modifier: tighter vertical rhythm, reduced rule prominence */
.gv-contact-direct--secondary {
  padding-top: 4px;
  padding-bottom: 28px;
}

@media (min-width: 768px) {
  .gv-contact-direct--secondary {
    padding-top: 0;
    padding-bottom: 40px;
  }
}

@media (min-width: 768px) {
  .gv-contact-direct {
    padding-top: 0;
    padding-bottom: 56px;
  }
}

.gv-contact-direct__rule {
  margin-bottom: 28px;
}

.gv-contact-direct__label {
  margin-bottom: 20px;
}

.gv-contact-direct__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .gv-contact-direct__rows {
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
  }
}

.gv-direct-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 20px;
  border-radius: var(--gv-radius-sm);
  text-decoration: none;
  background: var(--gv-card);
  border: 1px solid var(--gv-rule);
  transition:
    background-color var(--gv-dur) var(--gv-ease),
    box-shadow var(--gv-dur) var(--gv-ease);
  flex: 1;
}

.gv-direct-row:hover {
  background: var(--gv-card);
  box-shadow: var(--gv-shadow);
}

.gv-direct-row:focus-visible {
  outline: 3px solid var(--gv-gold-text);
  outline-offset: 2px;
}

.gv-direct-row__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--gv-gold-text);
}

.gv-direct-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gv-direct-row__verb {
  font-family: var(--gv-font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gv-text-muted);
}

.gv-direct-row__value {
  font-family: var(--gv-font-body);
  font-weight: 600;
  color: var(--gv-text);
  line-height: 1.2;
}

/* Phone row — prominent number in secondary section (18px; was 22px when it was primary) */
.gv-direct-row--phone .gv-direct-row__value {
  font-size: 18px;
}

.gv-direct-row--email .gv-direct-row__value {
  font-size: 16px;
  word-break: break-all;
}

@media (min-width: 768px) {
  .gv-direct-row--email .gv-direct-row__value {
    font-size: 17px;
    word-break: normal;
  }
}

/* Save-contact row — same quiet treatment as email */
.gv-direct-row--save .gv-direct-row__value {
  font-size: 16px;
}

@media (min-width: 768px) {
  .gv-direct-row--save .gv-direct-row__value {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-direct-row { transition: none; }
}


/* ---------------------------------------------------------------------------
   §5 — SAVE MY CONTACT link (→ /connect)
   --------------------------------------------------------------------------- */
.gv-contact-save-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .gv-contact-save-link {
    padding-top: 16px;
    padding-bottom: 48px;
  }
}

.gv-contact-save-link__line {
  font-family: var(--gv-font-body);
  font-size: 18px;
  color: var(--gv-text-body);
  margin: 0;
}


/* ---------------------------------------------------------------------------
   §6 — HOURS + STATES
   --------------------------------------------------------------------------- */
.gv-contact-info {
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .gv-contact-info {
    padding-bottom: 64px;
  }
}

.gv-contact-info__rule {
  margin-bottom: 28px;
}

.gv-contact-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .gv-contact-info__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.gv-contact-info__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gv-contact-info__value {
  font-family: var(--gv-font-body);
  font-size: 18px;
  color: var(--gv-text-muted);
  margin: 0;
  line-height: var(--gv-body-lh);
  max-width: 52ch;
}

