/* Twins Calculator Styles */

.twins-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero Section */
.calc-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

.calc-hero h2 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.calc-subtitle {
    font-size: 1.2em;
    margin: 20px auto;
    opacity: 0.95;
    max-width: 800px;
}

.calc-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Calculator Section */
.calc-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.calc-section h3 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Form Styles */
#twins-calculator-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.input-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: #f093fb;
}

.input-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.calc-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.calc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.calc-results {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h3 {
    color: #333;
    margin-bottom: 15px;
}

.result-main {
    font-size: 4em;
    font-weight: 700;
    color: #f093fb;
    margin: 10px 0;
}

.result-value {
    font-size: 1em;
}

.result-unit {
    font-size: 0.6em;
    margin-left: 5px;
}

.result-comparison {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

/* Chart */
.chart-container {
    max-width: 500px;
    height: 300px;
    margin: 40px auto;
}

/* Breakdown Section */
.result-breakdown {
    margin-top: 40px;
}

.result-breakdown h4 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.breakdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.breakdown-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.breakdown-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.breakdown-card.highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f093fb;
}

.breakdown-label {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.breakdown-value {
    font-size: 2.5em;
    font-weight: 700;
    margin: 10px 0;
}

.breakdown-desc {
    font-size: 0.9em;
    opacity: 0.85;
    font-style: italic;
}

.breakdown-card.highlight .breakdown-label,
.breakdown-card.highlight .breakdown-value,
.breakdown-card.highlight .breakdown-desc {
    color: white;
}

.probability-context {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    border-radius: 4px;
}

.probability-context p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.probability-context ul {
    margin: 0;
    padding-left: 25px;
}

.probability-context li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.95em;
    color: #856404;
}

/* Expert Insights */
.expert-insights {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.expert-insights h3 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.expert-insights h4 {
    color: #f093fb;
    font-size: 1.5em;
    margin: 30px 0 15px 0;
}

.insight-content p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.insight-content strong {
    color: #333;
}

/* Educational Section */
.calc-education {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.education-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.education-tabs .tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95em;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.education-tabs .tab-btn.active {
    color: #f093fb;
    border-bottom-color: #f093fb;
}

.education-tabs .tab-btn:hover {
    color: #f093fb;
}

.tab-content {
    display: none;
}

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

.tab-content h4 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.tab-content h5 {
    color: #f093fb;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

.tab-content p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

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

.tab-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Data Tables */
.data-table {
    margin: 25px 0;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.info-card {
    background: #f8f9fa;
    border-left: 4px solid #f093fb;
    border-radius: 8px;
    padding: 25px;
}

.info-card h5 {
    color: #f093fb;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

/* Treatment Grid */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.treatment-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #f093fb;
}

.treatment-card h5 {
    color: #f093fb;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.treatment-card p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

/* Methodology Section */
.calc-methodology {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.calc-methodology h3 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.calc-methodology h4 {
    color: #f093fb;
    font-size: 1.5em;
    margin: 30px 0 15px 0;
}

.calc-methodology p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.calc-methodology ul {
    margin: 15px 0;
    padding-left: 25px;
}

.calc-methodology li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.methodology-section {
    background: #f8f9fa;
    border-left: 4px solid #f093fb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.methodology-section h5 {
    color: #f093fb;
    margin-bottom: 15px;
}

.example-calc {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.example-calc p {
    margin-bottom: 15px;
}

.example-calc ol {
    margin: 15px 0;
    padding-left: 25px;
}

.example-calc li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.limitations {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.limitations p {
    color: #856404;
}

.limitations ul {
    color: #856404;
}

/* Disclaimer */
.calc-disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.calc-disclaimer h3,
.calc-disclaimer h4 {
    color: #856404;
    margin-bottom: 15px;
}

.calc-disclaimer p {
    color: #856404;
    line-height: 1.7;
    margin-bottom: 15px;
}

.calc-disclaimer ul {
    color: #856404;
    margin: 15px 0;
    padding-left: 25px;
}

.calc-disclaimer li {
    margin-bottom: 8px;
}

/* Sources */
.calc-sources {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.calc-sources h3 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.calc-sources h4 {
    color: #f093fb;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

.calc-sources p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.calc-sources ol {
    margin: 20px 0;
    padding-left: 25px;
}

.calc-sources li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.calc-sources ul {
    margin: 10px 0;
    padding-left: 25px;
}

.calc-sources a {
    color: #f093fb;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .calc-hero h2 {
        font-size: 2em;
    }

    .calc-subtitle {
        font-size: 1em;
    }

    .calc-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2em;
    }

    .calc-section,
    .expert-insights,
    .calc-education,
    .calc-methodology,
    .calc-sources {
        padding: 20px;
    }

    .result-main {
        font-size: 3em;
    }

    .info-grid,
    .treatment-grid,
    .breakdown-cards {
        grid-template-columns: 1fr;
    }

    .education-tabs {
        flex-direction: column;
    }

    .education-tabs .tab-btn {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .education-tabs .tab-btn.active {
        border-left-color: #f093fb;
        border-bottom-color: #e0e0e0;
    }

    .chart-container {
        height: 250px;
    }
}
