/* ===========================================
   Child Cost Calculator Tool Styles
   =========================================== */

.child-cost-calculator-page {
  --tool-cream: #FFFBF7;
  --tool-warm-gray: #F5F0EB;
  --tool-peach: #FFF5EB;
  --font-display: 'Lora', Georgia, serif;
  background: linear-gradient(160deg, #FFFCFA 0%, #FFF8F2 100%);
}

/* ===========================================
   Hero Section
   =========================================== */
.child-cost-calculator-page .tool-hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.child-cost-calculator-page .tool-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.child-cost-calculator-page .tool-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.child-cost-calculator-page .tool-hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.child-cost-calculator-page .tool-hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================================
   Main Section
   =========================================== */
.child-cost-calculator-page .tool-main {
  background: var(--tool-warm-gray);
  padding: 60px 24px 80px;
}

.child-cost-calculator-page .tool-main-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Calculator Card */
.child-cost-calculator-page .calculator-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.child-cost-calculator-page .calculator-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  text-align: center;
}

.child-cost-calculator-page .input-group {
  margin-bottom: 24px;
}

.child-cost-calculator-page .input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.child-cost-calculator-page .input-field {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.child-cost-calculator-page .input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.child-cost-calculator-page select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 44px;
}

.child-cost-calculator-page .btn-calculate {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 17px;
  border-radius: 30px;
  margin-top: 8px;
}

.child-cost-calculator-page .btn-calculate .mdi {
  font-size: 22px;
}

.child-cost-calculator-page .btn-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}

.child-cost-calculator-page .btn-clear:hover {
  background: #FEE2E2;
  color: #DC2626;
}

/* Results Section */
.child-cost-calculator-page .results-section {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Total Cost Card */
.child-cost-calculator-page .total-cost-card {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
}

.child-cost-calculator-page .total-cost-label {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.child-cost-calculator-page .total-cost-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.child-cost-calculator-page .total-cost-note {
  font-size: 14px;
  opacity: 0.9;
}

/* Family Total Card */
.child-cost-calculator-page .family-total-card {
  background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
}

.child-cost-calculator-page .family-total-label {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.child-cost-calculator-page .family-total-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.child-cost-calculator-page .family-total-note {
  font-size: 14px;
  opacity: 0.9;
}

/* Annual Cost Card */
.child-cost-calculator-page .annual-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.child-cost-calculator-page .annual-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.child-cost-calculator-page .annual-title .mdi {
  font-size: 20px;
  color: var(--primary);
}

.child-cost-calculator-page .annual-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.child-cost-calculator-page .annual-note {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Breakdown Card with Pie Chart */
.child-cost-calculator-page .breakdown-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.child-cost-calculator-page .breakdown-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
}

.child-cost-calculator-page .breakdown-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.child-cost-calculator-page .pie-chart-container {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}

.child-cost-calculator-page .pie-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.child-cost-calculator-page .breakdown-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.child-cost-calculator-page .legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.child-cost-calculator-page .legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.child-cost-calculator-page .legend-label {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.child-cost-calculator-page .legend-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.child-cost-calculator-page .legend-percent {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* Categories Card */
.child-cost-calculator-page .categories-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.child-cost-calculator-page .categories-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
}

.child-cost-calculator-page .categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.child-cost-calculator-page .category-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--tool-cream);
  border-radius: 12px;
}

.child-cost-calculator-page .category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.child-cost-calculator-page .category-icon .mdi {
  font-size: 22px;
  color: white;
}

.child-cost-calculator-page .category-info {
  flex: 1;
}

.child-cost-calculator-page .category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.child-cost-calculator-page .category-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.child-cost-calculator-page .category-cost {
  text-align: right;
}

.child-cost-calculator-page .category-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.child-cost-calculator-page .category-annual {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Source Card */
.child-cost-calculator-page .source-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--tool-cream);
  border-radius: 16px;
  margin-bottom: 24px;
}

.child-cost-calculator-page .source-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.child-cost-calculator-page .source-icon .mdi {
  font-size: 22px;
  color: var(--primary);
}

.child-cost-calculator-page .source-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.child-cost-calculator-page .source-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.child-cost-calculator-page .source-content a {
  color: var(--primary);
  text-decoration: none;
}

.child-cost-calculator-page .source-content a:hover {
  text-decoration: underline;
}

/* Results CTA */
.child-cost-calculator-page .results-cta {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--tool-peach) 100%);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.child-cost-calculator-page .results-cta-icon {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.child-cost-calculator-page .results-cta-icon .mdi {
  font-size: 48px;
  color: var(--primary);
}

.child-cost-calculator-page .results-cta-content {
  flex: 1;
}

.child-cost-calculator-page .results-cta-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.child-cost-calculator-page .results-cta-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Buttons */
.child-cost-calculator-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.child-cost-calculator-page .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===========================================
   FAQ Section
   =========================================== */
.child-cost-calculator-page .tool-faq {
  background: var(--tool-cream);
  padding: 80px 24px;
}

.child-cost-calculator-page .tool-faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.child-cost-calculator-page .tool-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

.child-cost-calculator-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.child-cost-calculator-page .faq-item {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.child-cost-calculator-page .faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.child-cost-calculator-page .faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.child-cost-calculator-page .faq-question .mdi {
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.child-cost-calculator-page .faq-item.active .faq-question .mdi {
  transform: rotate(180deg);
}

.child-cost-calculator-page .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.child-cost-calculator-page .faq-item.active .faq-answer {
  max-height: 300px;
}

.child-cost-calculator-page .faq-answer-content {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================================
   Final CTA Section
   =========================================== */
.child-cost-calculator-page .tool-cta {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--tool-peach) 50%, var(--tool-cream) 100%);
  padding: 80px 24px;
  text-align: center;
}

.child-cost-calculator-page .tool-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.child-cost-calculator-page .tool-cta-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.child-cost-calculator-page .tool-cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.child-cost-calculator-page .btn-large {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 30px;
}

.child-cost-calculator-page .tool-cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 768px) {
  .child-cost-calculator-page .tool-hero {
    padding: 60px 20px 40px;
  }

  .child-cost-calculator-page .tool-hero-title {
    font-size: 32px;
  }

  .child-cost-calculator-page .tool-main {
    padding: 40px 20px 60px;
  }

  .child-cost-calculator-page .calculator-card {
    padding: 28px 24px;
    max-width: none;
  }

  .child-cost-calculator-page .total-cost-card {
    padding: 40px 24px;
  }

  .child-cost-calculator-page .total-cost-value {
    font-size: 36px;
  }

  .child-cost-calculator-page .family-total-card {
    padding: 32px 24px;
  }

  .child-cost-calculator-page .family-total-value {
    font-size: 32px;
  }

  .child-cost-calculator-page .breakdown-layout {
    flex-direction: column;
    gap: 24px;
  }

  .child-cost-calculator-page .pie-chart-container {
    width: 180px;
    height: 180px;
  }

  .child-cost-calculator-page .category-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .child-cost-calculator-page .category-cost {
    text-align: center;
  }

  .child-cost-calculator-page .source-card {
    flex-direction: column;
    text-align: center;
  }

  .child-cost-calculator-page .results-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .child-cost-calculator-page .results-cta-icon {
    width: 80px;
    height: 80px;
  }

  .child-cost-calculator-page .results-cta-icon .mdi {
    font-size: 40px;
  }

  .child-cost-calculator-page .results-cta-content .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .child-cost-calculator-page .tool-faq {
    padding: 60px 20px;
  }

  .child-cost-calculator-page .tool-section-title {
    font-size: 26px;
  }

  .child-cost-calculator-page .tool-cta {
    padding: 60px 20px;
  }

  .child-cost-calculator-page .tool-cta-title {
    font-size: 28px;
  }
}
