/* CalcSolarPH — About & Contact page
   Scoped, additive styles only. Everything else (colors, cards, buttons)
   reuses the existing Tailwind utility classes used site-wide. */

/* Scroll-reveal (Intersection Observer driven) */
.calc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.calc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quick-nav pill underline */
.calc-about-nav a {
  position: relative;
}
.calc-about-nav a.is-active {
  color: #047857; /* emerald-700 */
}
.calc-about-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -2px;
  height: 2px;
  background: #10b981; /* emerald-500 */
  border-radius: 2px;
}

/* Stat counters */
.calc-stat-value {
  font-variant-numeric: tabular-nums;
}

/* FAQ accordion */
.calc-faq-item {
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.calc-faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: #111827; /* gray-900 */
  background: transparent;
  border: none;
  cursor: pointer;
}
.calc-faq-question:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: -2px;
}
.calc-faq-icon {
  flex-shrink: 0;
  color: #059669; /* emerald-600 */
  transition: transform 0.25s ease;
}
.calc-faq-item.is-open .calc-faq-icon {
  transform: rotate(45deg);
}
.calc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.calc-faq-answer-inner {
  padding: 0 1.25rem 1.1rem;
  color: #4b5563; /* gray-600 */
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Contact form states */
.calc-field-error {
  color: #dc2626; /* red-600 */
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}
.calc-field.has-error .calc-field-error {
  display: block;
}
.calc-field.has-error input,
.calc-field.has-error select,
.calc-field.has-error textarea {
  border-color: #dc2626;
}
.calc-form-banner {
  display: none;
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.6rem;
}
.calc-form-banner.is-visible {
  display: flex;
}
.calc-form-banner.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.calc-form-banner.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Honeypot field — hidden from real users, visible to naive bots */
.calc-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .calc-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .calc-faq-icon,
  .calc-faq-answer {
    transition: none;
  }
}
