/* Treatment Plan Section Styles */
#treatment-plan {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

/* Background container will be managed by JavaScript for dynamic sizing */
.section-wrapper.beige-wrapper {
  position: relative; /* Ensure the wrapper can contain absolute positioned elements */
}

.background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('/background.webp');
  background-size: cover;
  background-position: center;
}

.background-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.treatment-plan-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1; /* Ensures content appears above the blur */
}

/* Add text shadow to all headings directly inside the treatment plan container */
.treatment-plan-container > h1,
.treatment-plan-container > h2,
.treatment-plan-container > h3,
.treatment-plan-container > h4,
.treatment-plan-container > p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.welcome-heading {
  font-size: 36px;
  color: #fcf8f0;
  margin-bottom: 30px;
  padding-top: 80px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.session-cta {
  text-align: center;
  margin-bottom: 25px;
  background-color: #fcf8f0;
  padding: 25px 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 800px;
}

/* Ensure both CTA containers match the exact size of the progress tracker */
#session-cta-container, #meditation-cta-container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.session-cta h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  color: #240d01;
}

#session-cta-button {
  font-size: 18px;
  padding: 12px 30px;
  width: 100%;
  border-radius: 5px;
  margin-top: 5px;
}

.progress-tracker {
  width: 100%;
  max-width: 800px;
  background-color: #fcf8f0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

.progress-header {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.progress-header h2 {
  margin: 0;
  font-size: 24px;
  color: #240d01;
}

.progress-module {
  margin-bottom: 20px;
}

.progress-module h3 {
  font-size: 18px;
  color: #240d01;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar-container {
  position: relative;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  position: absolute;
  height: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  transition: width 0.5s ease-in-out;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background-color: #ffb134;
  border-radius: 10px;
}

.progress-percentage {
  font-size: 14px;
  color: #240d01;
  font-weight: normal;
}

.plan-details-section {
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.plan-details-header {
  cursor: pointer;
  font-weight: bold;
  color: #240d01;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.plan-details-header:hover {
  color: #ffb134;
}

.toggle-icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.plan-details-header.active .toggle-icon {
  transform: rotate(45deg);
}

.plan-details-content {
  padding: 15px 0;
  color: #240d01;
}

/* Reset all font sizes to the same base size */
.plan-details-content p,
.plan-details-content ul,
.plan-details-content li {
  font-size: 15px !important; /* Use exact pixel size to ensure consistency */
  line-height: 1.5 !important;
}

/* Make sure the strong tags don't change the size */
.plan-details-content strong {
  font-size: inherit !important;
}

.plan-details-content p {
  margin-bottom: 10px;
}

.plan-details-content ul {
  margin-left: 40px; /* Increased to align with 'T' in Tasks */
  list-style-type: disc;
}

.plan-details-content li {
  margin-bottom: 8px;
}

.goals-container {
  width: 100%;
  max-width: 280px;
  position: absolute;
  right: 15px;
  top: 100px;
}

:root {
  --goals-bg-color: #ffe8cc;
}

.goals-box {
  background-color: var(--goals-bg-color); /* Pastel light orange */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  padding: 15px;
}

.goals-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: #000;
  border-bottom: 1px solid rgba(255, 177, 52, 0.3);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goals-content {
  color: #555;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 5px;
  padding: 5px;
  border-radius: 6px;
}

.small-button {
  background-color: #f8f0e5;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #000;
  transition: all 0.3s;
}

.small-button:hover {
  background-color: #ffb134;
  color: white;
}

/* No animations for challenge box */

.wisdom-note {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 25px;
  background-color: #fff8ee;
  position: relative;
  /* transform: rotate(-1deg); */ /* Removed rotation to make note straight */
  font-family: 'Caveat', cursive, sans-serif;
  background-image: linear-gradient(#fffaf5 2px, #fff8ee 2px);
  background-size: 100% 28px;
  border-radius: 0; /* Sharp edges with no rounded corners */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wisdom-quote {
  color: #240d01;
  font-size: 28px;
  line-height: 1.4;
  text-align: center;
  position: relative;
  margin: 0;
  font-weight: normal;
}

.wisdom-quote::before,
.wisdom-quote::after {
  content: '"';
  color: #ffb134;
  font-size: 32px;
  position: relative;
}

.wisdom-attribution {
  color: #666;
  font-size: 18px;
  text-align: right;
  margin-top: 15px;
  font-style: italic;
}

#goals-textarea {
  width: 100%;
  min-height: 65px;
  padding: 6px;
  border: 1px solid rgba(255, 177, 52, 0.5);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 4px;
  resize: vertical;
  background-color: var(--goals-bg-color); /* Same as the box background */
}

#save-goals-button {
  background-color: #ffb134;
  color: white;
}

#save-goals-button:hover {
  background-color: #e89d28;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .goals-container {
    position: static;
    margin-top: 30px;
    max-width: 800px;
  }
  
  .progress-tracker {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .session-cta,
  .progress-tracker,
  .goals-box {
    padding: 20px;
  }
  
  .welcome-heading {
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  #treatment-plan {
    padding: 30px 0;
  }
  
  .welcome-heading {
    font-size: 26px;
  }
  
  .session-cta h3 {
    font-size: 18px;
  }
  
  .progress-header h2 {
    font-size: 20px;
  }
}