/* Body Shape Calculator Styles */
/* Theme: Rose/Mauve - elegant, modern feel */

.body-shape-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
}

.body-shape-calculator-container * {
    box-sizing: border-box;
}

/* Hero Section */
.calculator-hero {
    background: linear-gradient(135deg, #be185d 0%, #db2777 50%, #ec4899 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.3);
}

.calculator-hero h1 {
    margin: 0 0 10px 0;
    font-size: 2.3em;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15em;
    opacity: 0.95;
    margin-bottom: 20px;
}

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

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-icon {
    font-weight: bold;
}

/* Introduction Section */
.intro-section {
    background: #fdf2f8;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #ec4899;
}

.intro-section h2 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Body Shapes Preview */
.body-shapes-preview {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.shape-preview {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 15px 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shape-icon {
    font-size: 2em;
    color: #be185d;
    margin-bottom: 8px;
}

.shape-preview span {
    display: block;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

/* Privacy Notice */
.privacy-notice {
    background: #fce7f3;
    border: 1px solid #f9a8d4;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.privacy-icon {
    font-size: 1.5em;
}

.privacy-notice strong {
    color: #9d174d;
    display: block;
}

.privacy-notice p {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    color: #555;
}

/* Form Section */
.calculator-form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.calculator-form-section h2 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 10px;
}

.form-instructions {
    color: #666;
    margin-bottom: 25px;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.form-group select {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #ec4899;
}

/* Measurement Section */
.measurement-section h3 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 20px;
}

.measurement-grid {
    display: grid;
    gap: 15px;
}

.measurement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fdf2f8;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.measurement-item:focus-within {
    border-color: #ec4899;
}

.measurement-item.optional {
    background: #f9fafb;
}

.measurement-info {
    flex: 1;
}

.measurement-info label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.optional-label {
    font-weight: 400;
    font-size: 0.85em;
    color: #888;
}

.measurement-hint {
    font-size: 0.85em;
    color: #666;
}

.measurement-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.measurement-input input {
    width: 80px;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    transition: border-color 0.2s ease;
}

.measurement-input input:focus {
    outline: none;
    border-color: #ec4899;
}

.unit-label {
    font-size: 0.9em;
    color: #666;
    min-width: 25px;
}

/* Measurement Guide */
.measurement-guide {
    margin-top: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.measurement-guide h4 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 15px;
}

.guide-tips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.guide-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip-icon {
    font-size: 1.3em;
}

.guide-tip p {
    margin: 0;
    font-size: 0.9em;
}

.guide-tip strong {
    color: #333;
}

/* Submit Button */
.form-submit {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #be185d, #db2777);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 24, 93, 0.4);
}

/* Results Section */
.results-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border-top: 4px solid #ec4899;
}

.results-section h2 {
    text-align: center;
    color: #be185d;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Shape Result Display */
.shape-result-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-radius: 12px;
    margin-bottom: 25px;
}

.shape-icon-large {
    font-size: 4em;
    color: #be185d;
    margin-bottom: 10px;
}

.shape-result-display h3 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
    color: #333;
}

.shape-tagline {
    margin: 0;
    color: #666;
    font-style: italic;
}

/* Measurements Summary */
.measurements-summary {
    margin: 25px 0;
}

.measurements-summary h4 {
    color: #333;
    margin-bottom: 15px;
}

.measurements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.measurement-box {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.measurement-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.measurement-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #be185d;
}

/* Ratios Section */
.ratios-section {
    margin: 25px 0;
    padding: 20px;
    background: #fdf2f8;
    border-radius: 10px;
}

.ratios-section h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.ratios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.ratio-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.ratio-label {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 8px;
}

.ratio-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

.ratio-status {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.ratio-status.low-risk {
    background: #dcfce7;
    color: #166534;
}

.ratio-status.moderate-risk {
    background: #fef3c7;
    color: #92400e;
}

.ratio-status.high-risk {
    background: #fee2e2;
    color: #991b1b;
}

/* Shape Description */
.shape-description {
    margin: 25px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.shape-description h4 {
    color: #be185d;
    margin-top: 0;
}

.shape-description p {
    margin-bottom: 10px;
}

.shape-description ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Health Insights */
.health-insights {
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
}

.health-insights.low-risk {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.health-insights.moderate-risk {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.health-insights.high-risk {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.health-insights h4 {
    margin-top: 0;
    color: #333;
}

.health-insights ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Style Tips */
.style-tips {
    margin: 25px 0;
    padding: 20px;
    background: #fdf2f8;
    border-radius: 10px;
}

.style-tips h4 {
    color: #be185d;
    margin-top: 0;
}

.style-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}

.style-tips li {
    margin-bottom: 8px;
}

/* Recalculate Section */
.recalculate-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.recalculate-btn {
    background: white;
    color: #be185d;
    border: 2px solid #be185d;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recalculate-btn:hover {
    background: #be185d;
    color: white;
}

/* Education Section */
.education-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.education-section > h2 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Tabs */
.education-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f3f4f6;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e5e7eb;
}

.tab-btn.active {
    background: linear-gradient(135deg, #be185d, #db2777);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #be185d;
    margin-top: 0;
}

.tab-content h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.tab-content h5 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 10px;
}

.tab-content ul {
    margin: 10px 0 15px 0;
    padding-left: 25px;
}

.tab-content li {
    margin-bottom: 8px;
}

/* Shape Details */
.shape-detail {
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 15px;
}

.shape-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shape-icon-med {
    font-size: 1.5em;
    color: #be185d;
}

.shape-detail h4 {
    margin: 0;
    color: #333;
}

.shape-detail p {
    margin: 8px 0;
    font-size: 0.95em;
}

/* WHR Table */
.whr-table {
    margin: 20px 0;
}

.whr-table h5 {
    margin-bottom: 10px;
}

.whr-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.whr-table th,
.whr-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.whr-table th {
    background: #f9fafb;
    font-weight: 600;
}

.whr-table tr.low-risk td:first-child {
    background: #dcfce7;
    color: #166534;
    font-weight: 500;
}

.whr-table tr.moderate-risk td:first-child {
    background: #fef3c7;
    color: #92400e;
    font-weight: 500;
}

.whr-table tr.high-risk td:first-child {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 500;
}

/* Health Note */
.health-note {
    background: #fef3c7;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #f59e0b;
    font-size: 0.95em;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.faq-section h2 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #be185d;
}

.faq-icon {
    font-size: 1.5em;
    color: #be185d;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px 0;
    color: #555;
}

.faq-answer p {
    margin: 0;
}

/* Related Calculators */
.related-calculators {
    background: #fdf2f8;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.related-calculators h2 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.related-name {
    font-weight: 600;
    color: #be185d;
    margin-bottom: 5px;
}

.related-desc {
    font-size: 0.85em;
    color: #666;
}

/* Sources Section */
.sources-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.sources-section h2 {
    color: #be185d;
    margin-top: 0;
    margin-bottom: 20px;
}

.sources-list ul {
    margin: 0;
    padding-left: 20px;
}

.sources-list li {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95em;
}

.sources-list a {
    color: #be185d;
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #fef3c7;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.disclaimer-section h3 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 15px;
}

.disclaimer-section p {
    margin: 0 0 10px 0;
    color: #78350f;
    font-size: 0.95em;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .body-shape-calculator-container {
        padding: 15px;
    }

    .calculator-hero {
        padding: 30px 20px;
    }

    .calculator-hero h1 {
        font-size: 1.8em;
    }

    .body-shapes-preview {
        flex-wrap: wrap;
        justify-content: center;
    }

    .shape-preview {
        flex: 0 0 calc(33% - 10px);
        min-width: auto;
    }

    .intro-section,
    .calculator-form-section,
    .results-section,
    .education-section,
    .faq-section,
    .related-calculators,
    .sources-section,
    .disclaimer-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .measurement-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .guide-tips {
        grid-template-columns: 1fr;
    }

    .measurements-grid {
        grid-template-columns: 1fr;
    }

    .ratios-grid {
        grid-template-columns: 1fr;
    }

    .education-tabs {
        justify-content: center;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .whr-table table {
        font-size: 0.9em;
    }

    .whr-table th,
    .whr-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .calculator-hero h1 {
        font-size: 1.5em;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .shape-preview {
        flex: 0 0 calc(50% - 10px);
    }

    .shape-result-display h3 {
        font-size: 1.5em;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
