/* ===========================================
   Baby Age Calculator Tool Styles
   =========================================== */

.baby-age-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
   =========================================== */
.baby-age-calculator-page .tool-hero {
  padding: 80px 24px 60px;
  text-align: center;
}

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

.baby-age-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;
}

.baby-age-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;
}

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

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

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

/* Calculator Card */
.baby-age-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;
}

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

.baby-age-calculator-page .input-group {
  margin-bottom: 24px;
}

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

.baby-age-calculator-page .input-hint {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
  display: block;
  margin-top: 2px;
}

.baby-age-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;
}

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

.baby-age-calculator-page .input-field::placeholder {
  color: var(--text-secondary);
}

.baby-age-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;
}

.baby-age-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;
}

.baby-age-calculator-page .btn-calculate .mdi {
  font-size: 22px;
}

.baby-age-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;
}

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

.baby-age-calculator-page .btn-clear .mdi {
  font-size: 18px;
}

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

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

/* Results Header */
.baby-age-calculator-page .results-header {
  background: white;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.baby-age-calculator-page .results-header-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.baby-age-calculator-page .results-header-icon .mdi {
  font-size: 28px;
  color: var(--primary);
}

.baby-age-calculator-page .results-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.baby-age-calculator-page .results-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Age Display Card */
.baby-age-calculator-page .age-display-card {
  background: linear-gradient(135deg, var(--primary) 0%, #E07A5F 100%);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
}

.baby-age-calculator-page .age-primary {
  margin-bottom: 32px;
}

.baby-age-calculator-page .age-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

.baby-age-calculator-page .age-breakdown {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.baby-age-calculator-page .age-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-left: 40px;
}

.baby-age-calculator-page .age-stat:first-child {
  padding-left: 0;
}

.baby-age-calculator-page .age-stat:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.3);
}

.baby-age-calculator-page .age-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.baby-age-calculator-page .age-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-top: 4px;
}

/* Adjusted Age Card */
.baby-age-calculator-page .adjusted-age-card {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.baby-age-calculator-page .adjusted-age-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.baby-age-calculator-page .adjusted-age-header .mdi {
  font-size: 24px;
  color: #D97706;
}

.baby-age-calculator-page .adjusted-age-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #92400E;
  margin: 0;
}

.baby-age-calculator-page .adjusted-age-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #92400E;
  margin: 0 0 8px;
}

.baby-age-calculator-page .adjusted-age-note {
  font-size: 13px;
  color: #B45309;
  margin: 0;
}

/* Breakdown Card */
.baby-age-calculator-page .breakdown-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;
}

.baby-age-calculator-page .breakdown-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.baby-age-calculator-page .breakdown-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.baby-age-calculator-page .breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.baby-age-calculator-page .breakdown-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.baby-age-calculator-page .breakdown-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.baby-age-calculator-page .breakdown-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.baby-age-calculator-page .breakdown-note strong {
  color: var(--primary);
}

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

.baby-age-calculator-page .milestones-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.baby-age-calculator-page .milestones-title .mdi {
  font-size: 24px;
  color: var(--primary);
}

.baby-age-calculator-page .milestones-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.baby-age-calculator-page .milestone-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.baby-age-calculator-page .milestone-icon .mdi {
  font-size: 22px;
  color: var(--primary);
}

.baby-age-calculator-page .milestone-info {
  flex: 1;
}

.baby-age-calculator-page .milestone-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.baby-age-calculator-page .milestone-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.baby-age-calculator-page .milestone-countdown {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* Results CTA */
.baby-age-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;
}

.baby-age-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);
}

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

.baby-age-calculator-page .results-cta-content {
  flex: 1;
}

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

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

/* Buttons */
.baby-age-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;
}

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

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

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

.baby-age-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;
}

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

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

.baby-age-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);
  transition: background 0.2s ease;
}

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

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

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

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

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

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

/* ===========================================
   Final CTA Section
   =========================================== */
.baby-age-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;
}

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

.baby-age-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;
}

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

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

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

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

  .baby-age-calculator-page .tool-hero-title {
    font-size: 32px;
  }

  .baby-age-calculator-page .tool-hero-subtitle {
    font-size: 17px;
  }

  .baby-age-calculator-page .tool-main {
    padding: 40px 20px 60px;
  }

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

  .baby-age-calculator-page .calculator-title {
    font-size: 20px;
  }

  .baby-age-calculator-page .age-display-card {
    padding: 32px 24px;
  }

  .baby-age-calculator-page .age-value {
    font-size: 28px;
  }

  .baby-age-calculator-page .age-breakdown {
    gap: 24px;
  }

  .baby-age-calculator-page .age-stat {
    padding-left: 24px;
  }

  .baby-age-calculator-page .age-stat:not(:first-child)::before {
    height: 36px;
  }

  .baby-age-calculator-page .age-stat-value {
    font-size: 24px;
  }

  .baby-age-calculator-page .breakdown-grid {
    gap: 16px;
  }

  .baby-age-calculator-page .breakdown-value {
    font-size: 24px;
  }

  .baby-age-calculator-page .milestone-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .baby-age-calculator-page .milestone-countdown {
    text-align: center;
  }

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

  .baby-age-calculator-page .results-cta-icon {
    width: 80px;
    height: 80px;
  }

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

  .baby-age-calculator-page .results-cta-title {
    font-size: 20px;
  }

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

  .baby-age-calculator-page .tool-faq {
    padding: 60px 20px;
  }

  .baby-age-calculator-page .tool-section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .baby-age-calculator-page .tool-cta {
    padding: 60px 20px;
  }

  .baby-age-calculator-page .tool-cta-title {
    font-size: 28px;
  }
}
