/* Treatment & service detail pages — shared sections */

.page-hero--therapy h1 {
  max-width: 16ch;
}

.page-hero--caregiver h1,
.page-hero--corporate h1 {
  max-width: 18ch;
}

.tx-section {
  padding-top: 0;
}

.tx-signs {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.tx-sign-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 51, 132, 0.1);
  box-shadow: var(--shadow-soft);
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: center;
}

.tx-sign-item .tx-sign-icon {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.tx-sign-footer {
  margin-top: 1.25rem;
  text-align: center;
  color: rgba(65, 43, 71, 0.78);
  font-size: var(--text-sm);
  max-width: 36rem;
  margin-inline: auto;
}

.tx-edu {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .tx-edu {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.tx-edu img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.tx-edu h3 {
  font-size: var(--text-lg);
  margin: 1.25rem 0 0.5rem;
  color: var(--mauve);
}

.tx-edu h3:first-of-type {
  margin-top: 0;
}

.tx-reflection {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(244, 146, 198, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(214, 51, 132, 0.12);
}

.tx-reflection h2 {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.tx-reflection p {
  max-width: 32rem;
  margin-inline: auto;
  color: rgba(65, 43, 71, 0.82);
}

.tx-testimonials {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tx-testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tx-testimonial {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 51, 132, 0.1);
  box-shadow: var(--shadow-soft);
}

.tx-testimonial blockquote {
  margin: 0 0 0.85rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}

.tx-testimonial cite {
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 650;
  color: rgba(65, 43, 71, 0.72);
}

.tx-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
}

.tx-faq-item {
  border-radius: var(--radius);
  border: 1px solid rgba(214, 51, 132, 0.12);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.tx-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--mauve);
}

.tx-faq-item summary::-webkit-details-marker {
  display: none;
}

.tx-faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--pink-deep);
  transition: transform var(--dur) var(--ease);
}

.tx-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.tx-faq-item .tx-faq-body {
  padding: 0 1.15rem 1rem;
  line-height: 1.6;
  color: var(--text-on-light);
}

.tx-cta-band {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(153, 165, 176, 0.35), rgba(249, 201, 224, 0.55));
  border: 1px solid rgba(214, 51, 132, 0.14);
}

.tx-cta-band h2 {
  margin-bottom: 0.65rem;
}

.tx-cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.35rem;
  color: rgba(65, 43, 71, 0.82);
}

.tx-detail {
  max-width: 42rem;
}

.tx-detail h2 {
  margin-bottom: 0.75rem;
}

.tx-detail h3,
.tx-detail h4 {
  margin: 1.25rem 0 0.5rem;
  color: var(--mauve);
}

.tx-detail p,
.tx-detail li {
  line-height: 1.6;
}

.tx-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-weight: 650;
  color: var(--pink-deep);
  text-decoration: none;
}

.tx-back:hover {
  text-decoration: underline;
}

.tx-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tx-format-chip {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(214, 51, 132, 0.12);
  font-size: var(--text-sm);
  font-weight: 600;
}

.tx-ideal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tx-ideal span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--cat-pink);
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--mauve);
}

.tx-worksheet-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}

.tx-worksheet {
  max-width: 46rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.tx-worksheet .tx-ws-section {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 51, 132, 0.1);
  box-shadow: var(--shadow-soft);
}

.tx-worksheet .tx-ws-section h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.75rem;
}

.tx-worksheet table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
}

.tx-worksheet th,
.tx-worksheet td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  text-align: left;
}

.tx-worksheet-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tx-worksheet-header h1 {
  margin-bottom: 0.35rem;
}

.tx-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.tx-modal.is-open {
  display: flex;
}

.tx-modal-content {
  background: #fff;
  margin: auto;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-width: 800px;
  width: 90%;
  box-shadow: var(--shadow-card);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.tx-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  background: var(--pink-deep);
  color: #fff;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
}

.tx-proposal-form {
  padding: 1.25rem 0.5rem 0.5rem;
}

.tx-form-section {
  margin-bottom: 1.75rem;
}

.tx-form-section h3 {
  font-size: var(--text-lg);
  color: var(--mauve);
  margin-bottom: 0.85rem;
  border-bottom: 2px solid rgba(214, 51, 132, 0.12);
  padding-bottom: 0.5rem;
}

.tx-form-group {
  margin-bottom: 1rem;
}

.tx-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--ink);
}

.tx-form-group .required {
  color: #e74c3c;
}

.tx-form-group input,
.tx-form-group select,
.tx-form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(214, 51, 132, 0.18);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-sm);
}

.tx-form-group textarea {
  resize: vertical;
  min-height: 5rem;
}

.tx-proposal-confirmation {
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.tx-notice {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e0f2fe;
  color: #333;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  z-index: 2000;
  font-weight: 650;
  max-width: 90%;
  text-align: center;
}

@media print {
  .tx-worksheet-tools,
  .site-header,
  .site-footer,
  .float-actions,
  .mobile-tab-bar {
    display: none !important;
  }

  .tx-worksheet .tx-ws-section {
    box-shadow: none;
    break-inside: avoid;
  }
}
