/* --- ESTILOS ESPECÍFICOS PARTO --- */
:root {
    --cor-primaria: #ec4899;
    /* Rosa Maternidade */
    --cor-primaria-light: #fda4af;
    --cor-secundaria: #16a34a;
    --cor-fundo: #fff1f2;
    /* Fundo levemente rosado */
    --cor-card: #ffffff;
    --cor-texto: #1f2933;
    --cor-texto-suave: #64748b;
}

[data-theme="dark"] {
    --cor-fundo: #0f172a;
    --cor-card: #1e293b;
    --cor-texto: #e2e8f0;
    --cor-texto-suave: #94a3b8;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    /* padding-bottom: 40px; */
}

.calculator-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Card Principal */
.calc-card {
    background-color: var(--cor-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border-top: 4px solid var(--cor-primaria);
}

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

.calc-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--cor-texto);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cor-texto);
    font-size: 14px;
}

input[type="date"],
select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    outline: none;
}

input[type="date"]:focus,
select:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Botão */
.btn-calc {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background-color: var(--cor-primaria);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.2);
}

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

/* Resultados */
.result-area {
    display: none;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.main-result {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.1);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--cor-primaria);
    line-height: 1;
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: var(--cor-texto-suave);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Barra de Progresso */
.timeline-container {
    position: relative;
    padding: 10px 0;
}

.progress-track {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--cor-primaria);
    width: 0%;
    transition: width 1s ease-out;
    border-radius: 6px;
}

/* Marcadores da Linha */
.milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--cor-texto-suave);
}

.milestone {
    position: absolute;
    bottom: 15px;
    transform: translateX(-50%);
}

.tri-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tri-card.active {
    border-color: var(--cor-primaria);
    background: rgba(236, 72, 153, 0.05);
}

.tri-icon {
    font-size: 24px;
    margin-right: 10px;
}

.tri-info {
    text-align: left;
}

.tri-title {
    font-weight: 700;
    color: var(--cor-texto);
    font-size: 14px;
}

.tri-sub {
    font-size: 12px;
    color: var(--cor-texto-suave);
}

.article {
    margin-top: 30px;
}

.info-card {
    background: var(--cor-card);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--sombra);
    border: 1px solid var(--cor-borda);
}

/* Timeline */
.timeline {
    margin-top: 20px;
    border-left: 2px solid var(--cor-borda);
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--cor-primaria);
    border-radius: 50%;
}

.t-date {
    font-weight: 700;
    color: var(--cor-primaria);
    font-size: 0.9rem;
}

.t-desc {
    font-size: 0.9rem;
    color: var(--cor-texto);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--cor-borda);
}

details {
    padding: 15px 0;
    cursor: pointer;
}

summary {
    font-weight: 600;
    color: var(--cor-texto);
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--cor-primaria);
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--cor-texto-suave);
}



@media (max-width: 600px) {
    .result-value {
        font-size: 28px;
    }
}

/* Linha do Tempo (Progresso) */
.timeline-container {
    margin: 30px 0;
}

.progress-track {
    position: relative;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--cor-primaria);
    width: 0%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

.milestones {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--cor-texto-suave);
}

/* Cards Trimestres */
.tri-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--cor-fundo);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--cor-borda);
}

.tri-icon {
    font-size: 1.5rem;
}

.tri-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cor-texto);
}

.tri-sub {
    font-size: 0.8rem;
    color: var(--cor-texto-suave);
}

/* Conteúdo Educativo */
.info-card h3 {
    margin-bottom: 15px;
    color: var(--cor-texto);
    font-size: 1.4rem;
}

.info-card p,
.info-card li {
    color: var(--cor-texto-suave);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.info-card ul {
    margin-left: 20px;
}

/* Timeline Vertical (Educativa) */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--cor-primaria-light);
    margin-left: 10px;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--cor-primaria);
    border-radius: 50%;
    border: 2px solid var(--cor-card);
}

.t-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 5px;
    display: block;
}

.t-desc {
    font-size: 0.9rem;
    color: var(--cor-texto-suave);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--cor-borda);
}

details {
    padding: 15px 0;
    cursor: pointer;
}

summary {
    font-weight: 600;
    color: var(--cor-texto);
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--cor-primaria);
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--cor-texto-suave);
}

/* Links Externos */
.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    text-decoration: none;
    color: var(--cor-texto);
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--cor-primaria);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--cor-primaria);
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.link-desc {
    font-size: 0.85rem;
    color: var(--cor-texto-suave);
}