/* Copyright (c) Janyasi's Legal Associates. All Rights Reserved. */

.content-feedback {
  margin: clamp(2.5rem, 6vw, 5.5rem) auto clamp(2rem, 5vw, 4rem);
  padding: 0 1rem;
}

.content-feedback__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: #f7f3ed;
  color: #171412;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.content-feedback__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  background: #f7f3ed;
  border: 1px solid rgba(184, 147, 90, 0.28);
  border-radius: 1rem;
}

.content-feedback__body {
  display: none;
}

.content-feedback.is-expanded .content-feedback__body {
  display: block;
}

.content-feedback__toggle:hover,
.content-feedback__toggle:focus-visible {
  background: #efe7da;
}

.content-feedback__toggle:focus-visible {
  outline: 3px solid rgba(184, 147, 90, 0.45);
  outline-offset: -3px;
}

.content-feedback__toggle-icon {
  color: #a98035;
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.content-feedback.is-expanded .content-feedback__toggle-icon {
  transform: rotate(180deg);
}

.content-feedback h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-feedback .eyebrow {
  margin: 0 0 0.65rem;
}

.content-feedback h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.content-feedback__choices {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.content-feedback__choice {
  min-width: 8.5rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid #caa85d;
  border-radius: 999px;
  background: #fff;
  color: #171412;
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.content-feedback__choice:hover,
.content-feedback__choice:focus-visible,
.content-feedback__choice.is-selected {
  background: #caa85d;
  color: #171412;
  transform: translateY(-1px);
}

.content-feedback__choice:focus-visible,
.content-feedback__follow-up textarea:focus-visible,
.content-feedback__follow-up .btn:focus-visible {
  outline: 3px solid rgba(184, 147, 90, 0.45);
  outline-offset: 3px;
}

.content-feedback__follow-up {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

.content-feedback__follow-up label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.content-feedback__follow-up textarea {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  padding: 0.8rem;
  border: 1px solid #d5c4a2;
  border-radius: 0.5rem;
  background: #fff;
  color: #171412;
  font: inherit;
  resize: vertical;
}

.content-feedback__follow-up .btn {
  margin-top: 0.75rem;
}

.content-feedback__status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: #5b4722;
  font-weight: 600;
}

.content-feedback__note {
  margin: 0.85rem 0 0;
  color: #716b63;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .content-feedback {
    width: min(32rem, calc(100% - 2rem));
    margin-inline: auto;
    padding: 0;
  }

  .content-feedback__inner {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .content-feedback__choices {
    flex-direction: column;
    align-items: stretch;
  }

  .content-feedback__choice {
    width: 100%;
  }
}

@media (min-width: 761px) {
  .content-feedback {
    width: min(32rem, calc(100% - 2rem));
    padding: 0;
  }

  .content-feedback__inner {
    padding: 0;
    overflow: hidden;
    border-radius: 0.8rem;
    box-shadow: 0 0.75rem 2rem rgba(23, 20, 18, 0.16);
    text-align: left;
  }

  .content-feedback.is-expanded .content-feedback__body {
    padding: 0.9rem 1rem 1rem;
    background: #fff;
  }

  .content-feedback .eyebrow {
    display: none;
  }

  .content-feedback__choices {
    justify-content: flex-start;
    margin-top: 0;
  }

  .content-feedback__choice {
    min-width: 0;
    flex: 1;
    padding: 0.65rem 0.8rem;
  }

  .content-feedback__note {
    font-size: 0.72rem;
  }
}

/* Keep the consultation CTA and feedback prompt together as the final public
   action area. The CTA section stays the primary surface while the feedback
   panel uses the available secondary column. */
.public-final-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

main > .public-final-actions {
  padding-block: clamp(44px, 6vw, 62px);
}

.landing-layout > .public-final-actions {
  width: 100%;
  margin-top: 3rem;
  padding-inline: 0;
}

.public-final-actions > section[class*="final-cta"],
.public-final-actions > section.article-cta {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.public-final-actions > section[class*="final-cta"] > .container {
  max-width: none;
  height: 100%;
  padding: 0;
}

.public-final-actions > .faq-cta-band {
  max-width: none;
  height: 100%;
  margin: 0;
}

.public-final-actions .cta-panel {
  max-width: none;
  height: 100%;
  margin: 0;
}

.public-final-actions .content-feedback {
  width: auto;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.public-final-actions .content-feedback__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.public-final-actions .content-feedback__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-final-actions .content-feedback__choice {
  min-width: 0;
}

@media (max-width: 760px) {
  .public-final-actions {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-inline: var(--container-padding);
  }

  main > .public-final-actions {
    padding-block: 48px;
  }

  .landing-layout > .public-final-actions {
    padding-inline: 0;
  }

  .public-final-actions .cta-panel,
  .public-final-actions .content-feedback__inner {
    height: auto;
  }
}
