/* tcc-engagement.css - Styles for engagement enhancements */

/* Feature 1: Micro-summary */
.tcc-micro-summary {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background-color: #e8f4f8;
  border-left: 3px solid #2AA5D5;
  border-radius: 4px;
  transition: opacity 0.5s ease;
}

.tcc-micro-summary-text {
  display: block;
  font-size: 0.95rem !important;
  color: #333 !important;
}

/* Feature 2: Export hint */
.tcc-export-hint {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background-color: #f0f8f0;
  border-left: 3px solid #4caf50;
  border-radius: 4px;
  transition: opacity 0.5s ease;
}

.tcc-export-hint p {
  margin: 0;
  font-size: 0.8rem !important;
  color: #2e7d32 !important;
}

/* Feature 3: Calculator helper */
.calculator-helper {
  margin: 2rem 0 1.5rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.calculator-helper p {
  margin: 0;
}

/* Feature 4: Anchor navigation */
.calculator-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  justify-content: center;
}

.calculator-anchor-link {
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #2AA5D5;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.calculator-anchor-link:hover,
.calculator-anchor-link:focus {
  background-color: #2AA5D5;
  color: white;
  border-color: #2AA5D5;
  text-decoration: none;
}

@media (max-width: 767px) {
  .calculator-anchors {
    flex-direction: column;
  }
  
  .calculator-anchor-link {
    text-align: center;
  }
}

/* Feature 6: Early FAQ */
.calculator-faq-early {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.calculator-faq-early details {
  cursor: pointer;
}

.calculator-faq-early summary {
  font-weight: 600;
  color: #2AA5D5;
  padding: 0.5rem 0;
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.calculator-faq-early summary::-webkit-details-marker {
  display: none;
}

.calculator-faq-early summary::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #2AA5D5;
  transition: transform 0.2s ease;
}

.calculator-faq-early details[open] summary::before {
  content: '−';
}

.calculator-faq-early details p {
  margin: 0.75rem 0 0.5rem 1.5rem;
  color: #555;
  line-height: 1.6;
}

/* Feature 8: Sample week button - now next to instruction text */
.input-container p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

/* Set font-weight for all form buttons */
.form-buttons input[type=submit],
.form-buttons input[type=button] {
  font-weight: 600 !important;
}

.tcc-sample-week-btn {
  padding: 0.5rem 1rem;
  color: #fff !important;
  border-radius: 5px;
  background-color: #2AA5D5;
  box-shadow: var(--shadow-md);
  border: 2px #2AA5D5 solid;
  font-size: 0.95rem;
  font-weight: 600 !important;
  transition: all .3s ease;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}

.tcc-sample-week-btn:hover,
.tcc-sample-week-btn:focus {
  background-color: #1d7fa8;
  border-color: #1d7fa8;
  color: #fff !important;
}

.tcc-sample-week-btn:active {
  transform: translateY(1px);
}

/* Responsive layout for 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {

  .input-container > p {
    display: none;
  }
}

@media (max-width: 767px) {
  .input-container p {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .tcc-sample-week-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* Feature 5: Video CTA */
.tcc-video-cta {
  margin-bottom: 1rem !important;
  font-weight: 500;
  color: #333;
  text-align: center;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .tcc-micro-summary,
  .tcc-export-hint,
  .calculator-helper {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.625rem 0.875rem;
  }
  
  .tcc-micro-summary-text {
    font-size: 0.9rem;
  }
  
  .tcc-export-hint p {
    font-size: 0.75rem;
  }
  
  .calculator-anchors {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.75rem;
  }
  
  .calculator-faq-early {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* Print styles - hide engagement elements below calculator */
@media print {
  .tcc-micro-summary,
  .tcc-export-hint,
  .calculator-helper,
  .calculator-anchors,
  .calculator-faq-early,
  .tcc-sample-week-btn {
    display: none !important;
  }
}
