/* ============================================
   Child BMI Percentile Calculator — Green Theme
   ============================================ */

.child-bmi-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.child-bmi-calculator-container *,
.child-bmi-calculator-container *::before,
.child-bmi-calculator-container *::after {
    box-sizing: border-box;
}

/* ============ HERO ============ */

.child-bmi-hero {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    text-align: center;
    padding: 48px 32px 40px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.child-bmi-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.2;
}

.child-bmi-hero .hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin: 0 0 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.child-bmi-hero .hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.child-bmi-hero .badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.child-bmi-hero .badge-icon {
    margin-right: 4px;
}

/* ============ STATS ROW ============ */

.child-bmi-calculator-container .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.child-bmi-calculator-container .stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.2;
}

.child-bmi-calculator-container .stat-label {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
}

/* ============ PRIVACY NOTICE ============ */

.child-bmi-calculator-container .privacy-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 0.9rem;
    margin-bottom: 32px;
    color: #166534;
}

/* ============ CALCULATOR FORM ============ */

.child-bmi-calculator-container .calculator-form-section {
    margin-bottom: 32px;
}

.child-bmi-calculator-container .form-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .form-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.child-bmi-calculator-container .form-hint {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* Radio toggle */
.child-bmi-calculator-container .radio-toggle {
    display: flex;
    gap: 10px;
}

.child-bmi-calculator-container .toggle-btn {
    flex: 1;
    max-width: 160px;
    cursor: pointer;
    margin: 0;
}

.child-bmi-calculator-container .toggle-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.child-bmi-calculator-container .toggle-btn span {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.child-bmi-calculator-container .toggle-btn:hover span {
    border-color: #86efac;
    color: #16a34a;
}

.child-bmi-calculator-container .toggle-btn input[type="radio"]:checked + span {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* Age input row */
.age-input-row {
    display: flex;
    gap: 16px;
}

.age-field {
    flex: 1;
    max-width: 200px;
}

.age-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.age-field input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s ease;
}

.age-field input:focus {
    outline: none;
    border-color: #16a34a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* Unit toggle buttons */
.unit-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}

.unit-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.unit-btn.active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.3);
}

.unit-btn:hover:not(.active) {
    color: #16a34a;
}

/* Input row */
.input-row {
    display: flex;
    gap: 16px;
}

.input-field {
    flex: 1;
    max-width: 200px;
}

.input-field-full {
    max-width: 300px;
}

.input-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.input-field input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s ease;
}

.input-field input:focus {
    outline: none;
    border-color: #16a34a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* Submit button */
.child-bmi-calculator-container .form-submit {
    text-align: center;
    margin-top: 32px;
}

.child-bmi-calculator-container .submit-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.child-bmi-calculator-container .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.child-bmi-calculator-container .submit-btn:active {
    transform: translateY(0);
}

/* ============ RESULTS ============ */

.child-bmi-calculator-container .results-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .results-section h2 {
    text-align: center;
    font-size: 1.6rem;
    color: #1e293b;
    margin: 0 0 32px;
}

/* BMI Value Circle */
.bmi-value-display {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.bmi-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.5s ease;
}

.bmi-circle .bmi-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.bmi-circle .bmi-unit {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 600;
}

/* Percentile Display */
.percentile-display {
    text-align: center;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.percentile-value {
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.2;
}

.percentile-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
}

/* Weight Category Card */
.weight-category-card {
    text-align: center;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
}

.weight-category-card.category-underweight {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.weight-category-card.category-healthy {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.weight-category-card.category-overweight {
    background: #fefce8;
    border-color: #fde68a;
}

.weight-category-card.category-obese {
    background: #fef2f2;
    border-color: #fecaca;
}

.category-label {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.category-underweight .category-label {
    color: #2563eb;
}

.category-healthy .category-label {
    color: #16a34a;
}

.category-overweight .category-label {
    color: #ca8a04;
}

.category-obese .category-label {
    color: #dc2626;
}

.category-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* ============ PERCENTILE BAR ============ */

.percentile-bar-section {
    margin-bottom: 28px;
}

.percentile-bar-section h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
    color: #1e293b;
    text-align: center;
}

.percentile-bar-wrapper {
    position: relative;
    padding: 30px 0 32px;
}

.percentile-bar {
    display: flex;
    height: 36px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bar-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bar-underweight {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.bar-healthy {
    background: linear-gradient(135deg, #4ade80, #16a34a);
}

.bar-overweight {
    background: linear-gradient(135deg, #fbbf24, #eab308);
}

.bar-obese {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.zone-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.percentile-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.6s ease;
    z-index: 2;
}

.marker-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #1e293b;
}

.marker-label {
    background: #1e293b;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ============ INTERPRETATION CARD ============ */

.interpretation-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.interpretation-card h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: #166534;
}

.interpretation-card p {
    font-size: 0.93rem;
    color: #475569;
    margin: 0 0 8px;
    line-height: 1.6;
}

.interpretation-card ul {
    padding-left: 20px;
    margin: 0 0 8px;
}

.interpretation-card li {
    font-size: 0.93rem;
    color: #475569;
    margin-bottom: 4px;
}

/* ============ RESULT ACTIONS ============ */

.child-bmi-calculator-container .result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.child-bmi-calculator-container .mdcv2-print-btn,
.child-bmi-calculator-container .mdcv2-share-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: all 0.2s ease;
}

.child-bmi-calculator-container .mdcv2-print-btn:hover,
.child-bmi-calculator-container .mdcv2-share-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}

/* ============ HISTORY ============ */

.child-bmi-calculator-container .mdcv2-history-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.child-bmi-calculator-container .mdcv2-history-section h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
    color: #1e293b;
}

.child-bmi-calculator-container .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.child-bmi-calculator-container .history-date {
    color: #64748b;
    font-weight: 500;
}

.child-bmi-calculator-container .history-result {
    color: #16a34a;
    font-weight: 700;
}

.child-bmi-calculator-container .mdcv2-clear-history {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 0;
    margin-top: 4px;
    text-decoration: underline;
}

.child-bmi-calculator-container .mdcv2-clear-history:hover {
    color: #ef4444;
}

/* ============ RETAKE ============ */

.child-bmi-calculator-container .retake-wrapper {
    text-align: center;
}

.child-bmi-calculator-container .retake-btn {
    background: #fff;
    color: #16a34a;
    border: 2px solid #16a34a;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.child-bmi-calculator-container .retake-btn:hover {
    background: #16a34a;
    color: #fff;
}

/* ============ EDUCATION TABS ============ */

.child-bmi-calculator-container .education-tabs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .tab-nav {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.child-bmi-calculator-container .tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.child-bmi-calculator-container .tab-btn:hover {
    color: #16a34a;
}

.child-bmi-calculator-container .tab-btn.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.child-bmi-calculator-container .tab-content {
    display: none;
}

.child-bmi-calculator-container .tab-content.active {
    display: block;
}

.child-bmi-calculator-container .tab-content h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0 0 16px;
}

.child-bmi-calculator-container .tab-content h4 {
    font-size: 1.02rem;
    color: #15803d;
    margin: 20px 0 10px;
}

.child-bmi-calculator-container .tab-content h4:first-of-type {
    margin-top: 0;
}

.child-bmi-calculator-container .tab-content p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 14px;
}

.child-bmi-calculator-container .tab-content ul {
    padding-left: 20px;
    margin: 0 0 14px;
}

.child-bmi-calculator-container .tab-content li {
    font-size: 0.93rem;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ============ FAQ ACCORDION ============ */

.child-bmi-calculator-container .faq-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .faq-section h2 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0 0 20px;
}

.child-bmi-calculator-container .faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.child-bmi-calculator-container .faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 48px 16px 20px;
    border: none;
    background: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.child-bmi-calculator-container .faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #16a34a;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.child-bmi-calculator-container .faq-item.active .faq-question::after {
    content: '\2212';
}

.child-bmi-calculator-container .faq-question:hover {
    background: #f1f5f9;
}

.child-bmi-calculator-container .faq-item.active .faq-question {
    background: #f0fdf4;
}

.child-bmi-calculator-container .faq-answer {
    display: none;
    padding: 0 20px 16px;
    background: #fff;
}

.child-bmi-calculator-container .faq-item.active .faq-answer {
    display: block;
}

.child-bmi-calculator-container .faq-answer p {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.7;
    margin: 12px 0 0;
}

/* ============ MEDICAL DISCLAIMER ============ */

.child-bmi-calculator-container .medical-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.child-bmi-calculator-container .medical-disclaimer h3 {
    font-size: 1rem;
    color: #92400e;
    margin: 0 0 8px;
}

.child-bmi-calculator-container .medical-disclaimer p {
    font-size: 0.88rem;
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

/* ============ RELATED CALCULATORS ============ */

.child-bmi-calculator-container .related-calculators {
    margin-bottom: 32px;
}

.child-bmi-calculator-container .related-calculators h2 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0 0 20px;
}

.child-bmi-calculator-container .related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.child-bmi-calculator-container .related-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .related-card:hover {
    border-color: #86efac;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.12);
    transform: translateY(-2px);
}

.child-bmi-calculator-container .related-card h4 {
    font-size: 0.95rem;
    color: #16a34a;
    margin: 0 0 8px;
}

.child-bmi-calculator-container .related-card p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ============ REFERENCES ============ */

.child-bmi-calculator-container .references-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.child-bmi-calculator-container .references-section h2 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0 0 16px;
}

.child-bmi-calculator-container .references-section ol {
    padding-left: 20px;
    margin: 0;
}

.child-bmi-calculator-container .references-section li {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.6;
}

.child-bmi-calculator-container .references-section em {
    font-style: italic;
}

.child-bmi-calculator-container .references-section a {
    color: #16a34a;
    text-decoration: none;
}

.child-bmi-calculator-container .references-section a:hover {
    text-decoration: underline;
}

/* ============ MOBILE RESPONSIVE ============ */

@media (max-width: 768px) {
    .child-bmi-hero {
        padding: 32px 20px 28px;
    }

    .child-bmi-hero h1 {
        font-size: 1.6rem;
    }

    .child-bmi-hero .hero-subtitle {
        font-size: 0.92rem;
    }

    .child-bmi-hero .hero-badges {
        gap: 8px;
    }

    .child-bmi-hero .badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .child-bmi-calculator-container .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .child-bmi-calculator-container .stat-card {
        padding: 16px;
    }

    .child-bmi-calculator-container .stat-number {
        font-size: 1.5rem;
    }

    .child-bmi-calculator-container .form-group {
        padding: 16px;
    }

    .age-input-row {
        flex-direction: row;
    }

    .age-field {
        max-width: none;
    }

    .input-row {
        flex-direction: row;
    }

    .input-field {
        max-width: none;
    }

    .input-field-full {
        max-width: none;
    }

    .child-bmi-calculator-container .submit-btn {
        width: 100%;
        padding: 14px 32px;
    }

    .child-bmi-calculator-container .results-section {
        padding: 28px 20px;
    }

    .bmi-circle {
        width: 130px;
        height: 130px;
    }

    .bmi-circle .bmi-number {
        font-size: 2.2rem;
    }

    .percentile-value {
        font-size: 1.6rem;
    }

    .zone-label {
        font-size: 0.62rem;
    }

    .child-bmi-calculator-container .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .child-bmi-calculator-container .mdcv2-print-btn,
    .child-bmi-calculator-container .mdcv2-share-btn {
        width: 100%;
        max-width: 280px;
    }

    .child-bmi-calculator-container .tab-nav {
        gap: 4px;
    }

    .child-bmi-calculator-container .tab-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .child-bmi-calculator-container .education-tabs {
        padding: 24px 20px;
    }

    .child-bmi-calculator-container .faq-section {
        padding: 24px 20px;
    }

    .child-bmi-calculator-container .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .child-bmi-calculator-container .references-section {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .child-bmi-calculator-container {
        padding: 0 10px;
    }

    .child-bmi-hero {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .child-bmi-hero h1 {
        font-size: 1.35rem;
    }

    .child-bmi-calculator-container .related-grid {
        grid-template-columns: 1fr;
    }

    .child-bmi-calculator-container .tab-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 2px;
    }

    .child-bmi-calculator-container .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        margin-bottom: 0;
        padding: 10px 14px;
        background: #f8fafc;
        border-radius: 6px;
    }

    .child-bmi-calculator-container .tab-btn.active {
        border-bottom-color: transparent;
        border-left-color: #16a34a;
        background: #f0fdf4;
    }

    .bar-labels {
        font-size: 0.65rem;
    }

    .percentile-bar {
        height: 28px;
    }
}
