/**
 * HealthN.E.S.S. — Global guided recommendation modal
 * Modal shell + scoped form layout. Shared guide component styles follow.
 */

/* —— Modal shell —— */
.guide-modal[hidden] {
  display: none !important;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 5, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.guide-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 64px));
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 0;
  border-radius: 1rem;
  border: 1px solid rgba(153, 144, 124, 0.32);
  background:
    linear-gradient(165deg, rgba(24, 26, 24, 0.99), rgba(10, 12, 11, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.guide-modal.is-visible .guide-modal__backdrop {
  opacity: 1;
}

.guide-modal.is-visible .guide-modal__dialog {
  transform: scale(1);
  opacity: 1;
}

.guide-modal__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  flex-shrink: 0;
  padding: 1.15rem 1.35rem 0.95rem;
  border-bottom: 1px solid rgba(153, 144, 124, 0.22);
  background: rgba(16, 18, 17, 0.97);
}

.guide-modal__intro {
  min-width: 0;
}

.guide-modal__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

.guide-modal__lede {
  margin: 0.45rem 0 0;
  max-width: 48rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(153, 144, 124, 0.35);
  border-radius: 999px;
  background: rgba(18, 20, 19, 0.92);
  color: var(--color-on-background, #e2e3e1);
  cursor: pointer;
}

.guide-modal__close:hover,
.guide-modal__close:focus-visible {
  color: var(--color-primary, #f2ca50);
  outline: none;
}

.guide-modal__close:focus-visible {
  outline: 2px solid rgba(242, 202, 80, 0.55);
  outline-offset: 2px;
}

.guide-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.35rem 1.35rem;
}

/* Flatten nested card so the dialog is the only framed surface */
.guide-modal .pricing-guide,
.guide-modal .guide-modal__guide {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.guide-modal .pricing-guide::before {
  display: none;
}

.guide-modal .pricing-guide .pricing-section__intro {
  display: none;
}

.guide-modal .guide-modal__form-layout,
.guide-modal .pricing-guide__layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.guide-modal .guide-modal__selectors,
.guide-modal .pricing-guide__selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.guide-modal .pricing-guide__chips {
  margin: 0;
}

.guide-modal .pricing-guide__legend,
.guide-modal .pricing-guide__label {
  margin-bottom: 0.5rem;
}

.guide-modal .pricing-guide__chip-row {
  gap: 0.4rem;
}

.guide-modal .pricing-guide__chip {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
}

.guide-modal .guide-modal__compose,
.guide-modal .pricing-guide__compose {
  width: 100%;
}

.guide-modal .pricing-guide__field {
  margin-bottom: 0.75rem;
}

.guide-modal .pricing-guide__textarea {
  min-height: 7.5rem !important;
  max-height: none;
  padding: 0.9rem 1rem !important;
  font-size: 0.98rem !important;
}

.guide-modal .pricing-guide__submit-row,
.guide-modal .guide-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.guide-modal .pricing-guide__submit-row .proof-action {
  min-height: 44px;
}

.guide-modal .pricing-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary, #f2ca50);
}

.guide-modal .pricing-body {
  color: var(--color-on-surface-variant, #d0c5af);
  line-height: 1.5;
}

html.guide-modal-open,
body.guide-modal-open {
  overflow: hidden;
}

/* —— Tablet —— */
@media (max-width: 1023px) {
  .guide-modal {
    padding: 16px;
  }

  .guide-modal__dialog {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
  }

  .guide-modal .guide-modal__selectors,
  .guide-modal .pricing-guide__selectors {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guide-modal__header {
    padding: 1rem 1.1rem 0.85rem;
  }

  .guide-modal__content {
    padding: 0.9rem 1.1rem 1.15rem;
  }
}

/* —— Mobile full-screen sheet —— */
@media (max-width: 767px) {
  .guide-modal {
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
  }

  .guide-modal__dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    height: 100svh;
    max-height: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    transform: translateY(0.75rem);
  }

  .guide-modal.is-visible .guide-modal__dialog {
    transform: translateY(0);
  }

  .guide-modal__header {
    position: sticky;
    top: 0;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .guide-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding:
      0.85rem
      max(16px, env(safe-area-inset-right))
      calc(var(--mobile-modal-bottom-clearance, 5.75rem) + 1rem)
      max(16px, env(safe-area-inset-left));
  }

  .guide-modal .pg-result__conversion {
    position: static;
    bottom: auto;
    z-index: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 0 0;
  }

  .guide-modal__title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  .guide-modal__lede {
    font-size: 0.9rem;
  }

  .guide-modal .pricing-guide__textarea {
    min-height: 8rem !important;
  }

  .guide-modal .pricing-guide__submit-row,
  .guide-modal .guide-modal__actions {
    flex-direction: column;
  }

  .guide-modal .pricing-guide__submit-row .proof-action,
  .guide-modal .guide-modal__actions .proof-action {
    width: 100%;
    justify-content: center;
  }
}

/* Compact taller forms on shorter desktop viewports */
@media (min-width: 1024px) and (max-height: 820px) {
  .guide-modal__header {
    padding: 0.85rem 1.2rem 0.7rem;
  }

  .guide-modal__lede {
    margin-top: 0.3rem;
  }

  .guide-modal__content {
    padding: 0.75rem 1.2rem 1rem;
  }

  .guide-modal .guide-modal__form-layout,
  .guide-modal .pricing-guide__layout {
    gap: 0.85rem;
  }

  .guide-modal .pricing-guide__chip {
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
  }

  .guide-modal .pricing-guide__textarea {
    min-height: 5.75rem !important;
  }

  .guide-modal .pricing-guide__field {
    margin-bottom: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-modal__backdrop,
  .guide-modal__dialog {
    transition: none;
  }

  .guide-modal__dialog {
    transform: none;
  }
}

/* —— Embedded / page guide UI (shared with /pricing/) —— */
#help-me-choose {
  scroll-margin-top: 6.5rem;
}

.pricing-section--guide {
  position: relative;
}

.pricing-guide {
  position: relative;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(153, 144, 124, 0.28);
  background:
    linear-gradient(160deg, rgba(28, 30, 28, 0.92), rgba(12, 13, 12, 0.96)),
    rgba(18, 19, 18, 0.9);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.pricing-guide::before {
  content: "";
  display: block;
  height: 2px;
  margin: -0.35rem 0 1.35rem;
  background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.7), transparent);
  pointer-events: none;
}

.pricing-guide .pricing-section__intro {
  margin-bottom: 1.75rem;
}

.pricing-guide__layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .pricing-guide__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 2rem;
  }
}

.pricing-guide__legend,
.pricing-guide__label {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(211, 197, 173, 0.9);
}

.pricing-guide__optional,
.pricing-guide__req {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
  font-family: var(--font-body, Manrope, sans-serif);
}

.pricing-guide__chips {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.pricing-guide__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pricing-guide__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(153, 144, 124, 0.35);
  background: rgba(14, 15, 14, 0.85);
  color: rgba(245, 240, 230, 0.92);
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-guide__chip input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  appearance: none !important;
  background: transparent !important;
}

.pricing-guide__chip:hover {
  border-color: rgba(242, 202, 80, 0.45);
}

.pricing-guide__chip:focus-within {
  outline: 2px solid rgba(242, 202, 80, 0.55);
  outline-offset: 2px;
}

.pricing-guide__chip:has(input:checked) {
  border-color: rgba(242, 202, 80, 0.85);
  background: rgba(242, 202, 80, 0.16);
  color: #fff8e8;
  box-shadow: inset 0 0 0 1px rgba(242, 202, 80, 0.25);
}

.pricing-guide__chip:has(input:checked)::after {
  content: "✓";
  margin-left: 0.15rem;
  color: var(--color-primary, #f2ca50);
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-guide__field {
  margin-bottom: 1.1rem;
}

.pricing-guide__textarea,
.pricing-guide__input {
  width: 100%;
  min-height: 12rem;
  padding: 1.1rem 1.15rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(153, 144, 124, 0.4) !important;
  background: rgba(8, 9, 8, 0.9) !important;
  color: #f5f0e6 !important;
  font-family: var(--font-body, Manrope, sans-serif) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  resize: vertical;
}

.pricing-guide__input {
  min-height: 3rem;
}

.pricing-guide__textarea--compact {
  min-height: 6rem !important;
}

.pricing-guide__textarea:focus,
.pricing-guide__input:focus {
  outline: 2px solid rgba(242, 202, 80, 0.6) !important;
  outline-offset: 2px;
  border-color: rgba(242, 202, 80, 0.65) !important;
}

.pricing-guide__count {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: rgba(211, 197, 173, 0.65);
  text-align: right;
}

.pricing-guide__hint {
  display: none;
}

.pricing-guide__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pricing-guide__hp input {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}

.pricing-guide__submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pricing-guide__status {
  margin: 0.85rem 0 0;
  color: rgba(245, 240, 230, 0.88);
  font-size: 0.92rem;
}

.pricing-guide__status[role="alert"] {
  color: #ffb4a8;
}

.pricing-guide__result {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(153, 144, 124, 0.28);
  animation: pg-reveal 0.45s ease;
}

@keyframes pg-reveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pg-result__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Inter, sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #f5f0e6;
}

.pg-result__mode {
  margin: 0 0 1.25rem;
  color: rgba(211, 197, 173, 0.75);
  font-size: 0.9rem;
}

.pg-result__eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.8);
}

.pg-result__grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 720px) {
  .pg-result__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pg-result__block {
  margin-bottom: 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(153, 144, 124, 0.28);
  background: rgba(14, 15, 14, 0.72);
}

.pg-result__block h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.9);
}

.pg-result__block p {
  margin: 0;
  color: rgba(245, 240, 230, 0.9);
  line-height: 1.55;
}

.pg-result__services {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 900px) {
  .pg-result__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
  }
}

.pg-result__group {
  margin: 1.35rem 0 0.5rem;
}

.pg-result__group-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.9);
}

.pg-result__block--story {
  margin-bottom: 1.25rem;
}

.pg-card {
  padding: 1.15rem 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(153, 144, 124, 0.3);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.pg-card h4 {
  margin: 0 0 0.15rem;
  color: #f5f0e6;
  font-size: 1.08rem;
  line-height: 1.3;
}

.pg-card p {
  margin: 0;
  color: rgba(211, 197, 173, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pg-card__why-label {
  margin: 0.45rem 0 0.15rem !important;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.68rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.78) !important;
}

.pg-card__why {
  margin-bottom: 0.25rem;
}

.pg-card__price {
  margin-top: 0.65rem !important;
  color: #f2ca50 !important;
  font-weight: 600;
  font-size: 1rem !important;
}

.pg-card__price span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  color: rgba(211, 197, 173, 0.8);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pg-card__include {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  color: rgba(245, 240, 230, 0.9);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pg-card__include input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.pg-card__ascend-note {
  display: block;
  margin-top: 0.35rem;
  color: rgba(211, 197, 173, 0.78);
  font-size: 0.8rem;
  font-weight: 400;
}

.pg-ongoing-summary {
  margin-top: 0.55rem !important;
  color: rgba(245, 240, 230, 0.92) !important;
}

.pg-hourly-summary {
  margin-top: 0.45rem !important;
  color: rgba(211, 197, 173, 0.88) !important;
  font-size: 0.86rem !important;
  line-height: 1.5;
}

.pg-result__hint {
  margin: 0.25rem 0 0.75rem;
  color: rgba(211, 197, 173, 0.75);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pg-project-money {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.pg-project-money__estimate,
.pg-project-money__retainer {
  padding: 1.15rem 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(242, 202, 80, 0.28);
  background: rgba(0, 0, 0, 0.24);
}

.pg-project-money h4 {
  margin: 0 0 0.45rem;
  color: #f5f0e6;
  font-size: 0.95rem;
}

.pg-project-money p {
  margin: 0.28rem 0;
  color: rgba(211, 197, 173, 0.86);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pg-project-money__range,
.pg-project-money__total {
  color: #f2ca50 !important;
  font-weight: 650;
  font-size: 1.12rem !important;
}

@media (min-width: 720px) {
  .pg-project-money:has(.pg-project-money__retainer) {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

/* —— Recommendation → Client Portal conversion —— */
.pg-result__conversion {
  margin: 1.35rem 0 0;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(242, 202, 80, 0.42);
  background:
    linear-gradient(165deg, rgba(242, 202, 80, 0.12) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.55) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.pg-result__conversion-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary, #f2ca50);
}

.pg-result__conversion-title {
  margin: 0 0 0.45rem;
  color: #f8f4ea;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  font-weight: 650;
}

.pg-result__conversion-copy {
  margin: 0 0 0.85rem;
  color: rgba(232, 222, 198, 0.92);
  font-size: 0.98rem;
  line-height: 1.55;
}

.pg-result__keep-list {
  margin: 0 0 1.15rem;
  padding: 0 0 0 1.1rem;
  color: rgba(232, 222, 198, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pg-result__keep-list li {
  margin: 0.28rem 0;
}

.pg-result__conversion-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
}

.pg-btn--conversion,
.pg-result__conversion-actions .pg-btn--primary {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 0.7rem;
  box-shadow: 0 10px 28px rgba(242, 202, 80, 0.22);
}

.pg-result__conversion-actions .pg-btn--secondary {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(242, 202, 80, 0.55);
  background: transparent;
  color: #f2ca50;
  font-weight: 600;
}

.pg-result__conversion-actions .pg-btn--secondary:hover,
.pg-result__conversion-actions .pg-btn--secondary:focus-visible {
  background: rgba(242, 202, 80, 0.1);
}

.pg-result__conversion-note {
  margin: 0 0 1rem;
  color: rgba(211, 197, 173, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pg-result__actions--secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(153, 144, 124, 0.22);
}

.proof-action--quiet {
  opacity: 0.82;
  font-size: 0.88rem;
}

@media (min-width: 720px) {
  .pg-result__conversion-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .pg-result__conversion-actions .pg-btn--primary {
    flex: 1 1 16rem;
  }

  .pg-result__conversion-actions .pg-btn--secondary {
    flex: 0 1 14rem;
  }
}

@media (max-width: 639px) {
  .pg-result__conversion {
    position: sticky;
    bottom: 0.35rem;
    z-index: 3;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding: 1.1rem 1rem 1rem;
  }

  .pg-result__keep-list {
    display: none;
  }

  .pg-result__conversion-copy {
    font-size: 0.92rem;
  }

  .pg-btn--conversion,
  .pg-result__conversion-actions .pg-btn--primary {
    min-height: 3.35rem;
    font-size: 1.05rem;
  }
}

.pg-card__actions,
.pg-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.pg-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pg-btn--primary {
  border-color: var(--color-primary, #f2ca50);
  background: var(--color-primary, #f2ca50);
  color: #17140c;
}

.pg-btn--primary:hover,
.pg-btn--primary:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.pg-btn--ghost {
  border-color: rgba(242, 202, 80, 0.35);
  background: transparent;
  color: rgba(245, 240, 230, 0.92);
}

.pg-btn--ghost:hover,
.pg-btn--ghost:focus-visible {
  border-color: rgba(242, 202, 80, 0.7);
  background: rgba(242, 202, 80, 0.08);
  outline: none;
}

.pg-result__note {
  margin: 0.75rem 0 1rem;
  color: rgba(211, 197, 173, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pricing-guide__lead {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(242, 202, 80, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.pricing-guide__lead-title {
  margin: 0 0 0.35rem;
  color: #f5f0e6;
  font-size: 1.15rem;
}

.pricing-guide__lead-copy {
  margin: 0 0 1rem;
  color: rgba(211, 197, 173, 0.8);
  font-size: 0.9rem;
}

.pricing-guide__lead-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .pricing-guide__lead-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-guide__field--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .pricing-guide__chip-row {
    gap: 0.5rem;
  }

  .pricing-guide__chip {
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.92rem;
    border-radius: 0.65rem;
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    text-align: center;
  }

  .pg-result__services {
    grid-template-columns: 1fr;
  }

  .pg-project-money {
    grid-template-columns: 1fr;
  }

  .pg-card__include {
    min-height: 2.75rem;
    align-items: center;
  }

  .pg-card__include input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0;
  }
}

@media (max-width: 639px) {
  .pricing-guide {
    padding: 1.15rem;
  }

  .pricing-guide__textarea {
    min-height: 9rem;
  }

  .pricing-guide__chip {
    flex: 1 1 100%;
  }

  .pricing-guide__lead-grid {
    grid-template-columns: 1fr;
  }

  .pg-card__actions .proof-action,
  .pg-result__actions .proof-action {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }

  .guide-modal__dialog {
    /* Keep submit actions clear of mobile browser chrome / keyboard */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pricing-guide__chip {
    min-height: 2.7rem;
  }

  .pg-result__services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-guide__result {
    animation: none;
  }
}

/* —— Post-recommendation account gate —— */
.pricing-guide__account-gate {
  margin-top: 1.25rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(153, 144, 124, 0.22);
}

.pricing-guide__gate-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-label, Montserrat, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary, #f2ca50);
}

.pricing-guide__gate-form .pricing-guide__field {
  margin-bottom: 0.85rem;
}

.pricing-guide__gate-switch {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--color-on-surface-variant, #c9c3b4);
}

.pricing-guide__gate-switch .auth-text-link,
.pricing-guide__gate-switch a.auth-text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--color-primary, #f2ca50);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

