/*
 * Probate landing — probate-only rules, layered over bk-landing.css.
 *
 * The page's root carries both .bk-landing (the shared base: tokens, hero,
 * form card, quiz cards, closing band, FAQ, footer) and .pb-landing (this
 * file). Everything here is scoped under .pb-landing. Loaded only on the
 * probate template (lib/probate-landing.php). No gradients, no emoji, no
 * all-caps labels.
 */

/* Anchor jumps and sticky offsets clear the fixed header. --pb-header is
   measured by probate-landing.js (145px desktop / 66px phone fallback). */
.pb-landing #which-path,
.pb-landing #consult,
.pb-landing #faq,
.pb-landing #deadlines {
  scroll-margin-top: calc(var(--pb-header, 145px) + 20px);
}

/* Hero: start below the fixed header (the theme's body padding is 66px). */
.pb-landing .pb-hero {
  padding-top: calc(var(--pb-header, 145px) - 66px + 32px);
}

/* Results card: the shared bk-landing scroll offset (24px phone, 132px
   desktop) is shorter than this page's fixed header (66px / 145px), which
   hid the "Your results" kicker when the results were scrolled into view. */
.pb-landing .bk-summary {
  scroll-margin-top: calc(var(--pb-header, 145px) + 16px);
}

.pb-landing .pb-hero__ctas {
  align-items: center;
}

.pb-landing .pb-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
}

/* Path chips (inside the sticky navy card) */
.pb-landing .pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pb-landing .pb-chip {
  align-items: center;
  background-color: transparent;
  border: 1.5px solid #5A6E84;
  border-radius: 999px;
  color: #C4CDD6;
  display: inline-flex;
  font-family: var(--bk-font-headings);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 32px;
  padding: 4px 12px;
}

.pb-landing .pb-chip[data-state="may"] {
  background-color: #DDEBDF;
  border-color: #9DBBA5;
  color: #2F4A39;
}

.pb-landing .pb-chip[data-state="urgent"] {
  background-color: #FBE9D2;
  border-color: #D9A46A;
  color: #7A3E0B;
}

/* Answer tags: time-sensitive and important share the court palette;
   "Noted" uses the note palette (the bk tag base styles cover --none). */
.pb-landing .bk-q__tag--urgent,
.pb-landing .bk-q__tag--important {
  background-color: var(--bk-court-bg);
  color: var(--bk-court-text);
}

/* Results card: bullets the answers do not call for stay out of the DOM
   flow entirely. */
.pb-landing .bk-summary__list li[hidden] {
  display: none;
}

/* Deadlines band (white) */
.pb-landing .pb-deadlines {
  background-color: var(--bk-surface);
  padding: 72px 0;
}

.pb-landing .pb-deadlines__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.pb-landing .pb-deadline {
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: 14px;
  border-top: 3px solid var(--bk-sage);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.pb-landing .pb-deadline:first-child {
  border-top-color: var(--bk-accent);
}

.pb-landing .pb-deadline__eyebrow {
  color: var(--bk-green-text);
  display: block;
  font-family: var(--bk-font-headings);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pb-landing .pb-deadline h3 {
  margin: 0 0 8px;
}

.pb-landing .pb-deadline p {
  font-size: 16px;
  margin: 0 0 16px;
}

.pb-landing .pb-deadline__cite {
  color: var(--bk-muted);
  font-family: var(--bk-font-headings);
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}

.pb-landing .pb-deadlines__note {
  color: var(--bk-muted);
  font-size: 14px;
  margin: 28px 0 0;
}

/* Bridge band to estate planning (same band style as the estate page) */
.pb-landing .pb-bridge {
  background-color: #E7EFE8;
  border-bottom: 1px solid #CFE0D2;
  border-top: 1px solid #CFE0D2;
  padding: 56px 0;
}

.pb-landing .pb-bridge__container {
  max-width: 760px;
}

.pb-landing .pb-bridge .bk-lead {
  margin-bottom: 24px;
}

.pb-landing .pb-faq__heading {
  margin-bottom: 24px;
}

/* Sticky phone call bar (phones only) */
.pb-landing .pb-callbar {
  background-color: var(--bk-surface);
  border-top: 1px solid var(--bk-border);
  bottom: 0;
  box-shadow: 0 -4px 16px rgba(28, 42, 57, 0.12);
  display: flex;
  gap: 10px;
  left: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 60;
}

.pb-landing .pb-callbar[hidden] {
  display: none;
}

.pb-landing .pb-callbar.is-visible {
  transform: translateY(0);
}

.pb-landing .pb-callbar .pb-btn {
  flex: 1 1 0;
  font-size: 16px;
  min-height: 48px;
  padding: 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  .pb-landing .pb-callbar {
    transition: none;
  }
}

@media (min-width: 641px) {
  .pb-landing .pb-callbar {
    display: none;
  }
}

/* Consultation form fields. Gravity Forms renders the drop-downs as a native
   <select> (field type "select") and the phone as a plain US input (phoneFormat
   "standard"). Both match the estate page: 46px high, 10px radius, 1px border,
   full width, label above the field. */
.bk-landing.pb-landing .bk-form-card input[type="text"],
.bk-landing.pb-landing .bk-form-card input[type="tel"],
.bk-landing.pb-landing .bk-form-card select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--bk-input-border);
  border-radius: 10px;
}

.bk-landing.pb-landing .bk-form-card select {
  padding: 10px 38px 10px 14px;
  background-color: var(--bk-surface);
  color: var(--bk-ink);
  font-family: var(--bk-font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2334424F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.bk-landing.pb-landing .bk-form-card .gform_footer {
  margin-top: 16px;
}

/* Phones */
@media (max-width: 860px) {
  .pb-landing .pb-deadlines {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .pb-landing {
    padding-bottom: 72px;
  }

  .pb-landing .pb-hero {
    padding-top: calc(var(--pb-header, 66px) - 66px + 24px);
  }

  .pb-landing .bk-h1 {
    font-size: 32px;
    line-height: 1.1;
    text-wrap: balance;
  }

  .pb-landing .pb-hero__ctas {
    flex-direction: column;
    gap: 10px;
  }

  .pb-landing .pb-hero__ctas .pb-btn {
    width: 100%;
  }

  .pb-landing .pb-deadline {
    padding: 20px;
  }

  .pb-landing .pb-bridge {
    padding: 44px 0;
  }

  .pb-landing .pb-chip {
    font-size: 13px;
  }

  /* Inline disclosure link: a tap target of at least 44px on phones. */
  .pb-landing .bk-footer-disc__text a {
    display: inline-block;
    padding: 12px 0;
  }
}
