/* Calculadora TFG — Renal Expert 2026 */

/* ===== WIDGET DE CALCULADORA ===== */
.calc-widget {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}
.calc-widget-header {
    background: linear-gradient(135deg, #24417c, #0078d4);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.calc-widget-header i { font-size: 1.1rem; }
.calc-form { padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 8px;
}
.form-group label small { font-weight: 400; color: #888; font-size: 0.78rem; }
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2eaf2;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    appearance: none;
    cursor: pointer;
}
.form-group select:focus { border-color: #24417c; outline: none; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e2eaf2;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.input-wrapper input:focus { border-color: #24417c; outline: none; }
.input-unit {
    position: absolute;
    right: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #24417c;
    pointer-events: none;
}
.btn-calcular {
    width: 100%;
    background: linear-gradient(135deg, #24417c, #0078d4);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 4px;
    font-family: inherit;
}
.btn-calcular:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(36,65,124,0.35); }
.resultado-box { padding: 24px; }
.btn-recalcular {
    width: 100%;
    background: transparent;
    border: 2px solid #24417c;
    color: #24417c;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-family: inherit;
}
.btn-recalcular:hover { background: #24417c; color: #fff; }
.resultado-dica {
    background: #f8fbff;
    border-left: 4px solid #24417c;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* ===== HERO ===== */
.tfg-hero {
    background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 55%, #24417c 100%);
    padding: 70px 20px 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.tfg-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,173,239,0.1) 0%, transparent 65%);
    pointer-events: none;
}
.tfg-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.tfg-hero-text { flex: 1; min-width: 300px; }
.tfg-hero-text h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.tfg-hero-text h1 span { color: #7ec8e3; }
.tfg-hero-text p { font-size: 1.05rem; opacity: 0.85; line-height: 1.65; max-width: 480px; margin-bottom: 28px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chips span {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px; border-radius: 30px; font-size: 0.82rem; font-weight: 600;
}
.tfg-hero-visual { flex: 1; min-width: 320px; display: flex; justify-content: center; }

/* ===== AVISO EXAME ===== */
.aviso-exame {
    background: #f0f7ff;
    border: 1px solid #c3d4fd;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #1a3a6b;
    margin-bottom: 16px;
}
.aviso-exame i { color: #24417c; font-size: 1rem; flex-shrink: 0; }

/* ===== RESULTADO TFG ===== */
.resultado-header {
    text-align: center;
    margin-bottom: 20px;
}
.resultado-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 6px; }
.resultado-valor { display: block; font-size: 2.6rem; font-weight: 800; color: #1a2b3c; line-height: 1; }
.resultado-unidade { display: block; font-size: 0.78rem; color: #888; margin-top: 4px; }

.estagio-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #f0f4f8;
}
.estagio-numero {
    font-size: 1.5rem;
    font-weight: 800;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    background: #24417c;
}
.estagio-texto strong { display: block; font-size: 1rem; color: #1a2b3c; margin-bottom: 4px; }
.estagio-texto span { font-size: 0.85rem; color: #666; }

/* Cores por estágio */
.cor-g1 { background: #d4edda; }
.cor-g1 .estagio-numero { background: #28a745; }
.cor-g2 { background: #d1ecf1; }
.cor-g2 .estagio-numero { background: #17a2b8; }
.cor-g3a { background: #fff3cd; }
.cor-g3a .estagio-numero { background: #ffc107; color: #333; }
.cor-g3b { background: #ffe5cc; }
.cor-g3b .estagio-numero { background: #fd7e14; }
.cor-g4 { background: #f8d7da; }
.cor-g4 .estagio-numero { background: #dc3545; }
.cor-g5 { background: #f3d4e0; }
.cor-g5 .estagio-numero { background: #8b0000; }

/* Barra TFG */
.tfg-barra-wrapper { margin-bottom: 20px; }
.tfg-barra {
    position: relative; height: 14px; border-radius: 8px;
    display: flex; margin-bottom: 6px; overflow: visible;
}
.tfg-seg { height: 100%; flex: 1; }
.tfg-seg.s5  { background: #8b0000; border-radius: 8px 0 0 8px; flex: 0.75; }
.tfg-seg.s4  { background: #dc3545; flex: 0.9; }
.tfg-seg.s3b { background: #fd7e14; flex: 1; }
.tfg-seg.s3a { background: #ffc107; flex: 1; }
.tfg-seg.s2  { background: #17a2b8; flex: 2; }
.tfg-seg.s1  { background: #28a745; border-radius: 0 8px 8px 0; flex: 2; }
.barra-marcador {
    position: absolute; top: -4px;
    width: 22px; height: 22px;
    background: #fff; border: 3px solid #1a2b3c; border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.barra-labels {
    display: flex; justify-content: space-between;
    font-size: 0.68rem; color: #888;
}

/* ===== GRID DE ESTÁGIOS ===== */
.estagios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.estagio-card {
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2eaf2;
    background: #fff;
    transition: all 0.3s ease;
}
.estagio-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(36,65,124,0.1); }
.estagio-card .estagio-badge {
    display: inline-block;
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 6px;
    background: #1a2b3c; color: #fff;
}
.estagio-card .estagio-tfg {
    font-size: 1.4rem; font-weight: 800; color: #24417c;
    margin-bottom: 8px; line-height: 1;
}
.estagio-card h3 { font-size: 0.95rem; color: #1a2b3c; margin-bottom: 8px; font-weight: 700; }
.estagio-card p  { font-size: 0.82rem; color: #555; line-height: 1.55; margin: 0; }

.estagio-card.e1 { border-top: 4px solid #28a745; }
.estagio-card.e2 { border-top: 4px solid #17a2b8; }
.estagio-card.e3a { border-top: 4px solid #ffc107; }
.estagio-card.e3b { border-top: 4px solid #fd7e14; }
.estagio-card.e4 { border-top: 4px solid #dc3545; }
.estagio-card.e5 { border-top: 4px solid #8b0000; }

/* ===== FORMULA BOX ===== */
.formula-box {
    background: #f0f7ff;
    border: 1px solid #c3d4fd;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}
.formula-header {
    background: #24417c;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}
.formula-texto { padding: 24px 28px; }
.formula-texto p { font-size: 0.92rem; color: #333; line-height: 1.6; margin-bottom: 12px; }
.formula-texto ul { padding-left: 20px; }
.formula-texto ul li { font-size: 0.9rem; color: #444; line-height: 1.6; margin-bottom: 6px; }

/* ===== SEÇÕES EDUCATIVAS (herdadas do style.css) ===== */
.edu-section  { background: #f8fbff; padding: 80px 20px; }
.dicas-section { background: #fff; padding: 80px 20px; }
.faq-section   { background: #f8fbff; padding: 80px 20px; }
.edu-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #24417c; margin-bottom: 12px; }
.edu-section h2, .dicas-section h2, .faq-section h2 { font-size: 1.9rem; font-weight: 800; color: #1a2b3c; margin-bottom: 16px; line-height: 1.25; }
.section-intro { font-size: 1rem; color: #555; line-height: 1.65; max-width: 780px; margin-bottom: 0; }
.dicas-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.dica-card { background: #f8fbff; border: 1px solid #e2eaf2; border-radius: 14px; padding: 28px; transition: all 0.3s; }
.dica-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(36,65,124,0.1); border-color: #24417c; }
.dica-icon { width: 48px; height: 48px; background: linear-gradient(135deg,#e8f4f8,#d0eaf5); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dica-icon i { font-size: 1.3rem; color: #24417c; }
.dica-card h3 { font-size: 1rem; color: #1a2b3c; margin-bottom: 10px; font-weight: 700; }
.dica-card p { font-size: 0.88rem; color: #555; line-height: 1.6; margin: 0; }
.faq-item { margin-bottom: 14px; border: 1px solid #e2eaf2; border-radius: 12px; padding: 20px 24px; background: #fff; }
.faq-item summary { font-weight: 700; color: #1a2b3c; cursor: pointer; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.75rem; color: #24417c; transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin-top: 14px; color: #555; line-height: 1.7; font-size: 0.92rem; }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .tfg-hero-inner { flex-direction: column; gap: 40px; }
    .tfg-hero-text { text-align: center; }
    .tfg-hero-text p { margin: 0 auto 28px; }
    .hero-chips { justify-content: center; }
    .estagios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tfg-hero-text h1 { font-size: 1.9rem; }
    .estagios-grid { grid-template-columns: 1fr; }
    .dicas-grid { grid-template-columns: 1fr; }
    .edu-section h2, .dicas-section h2, .faq-section h2 { font-size: 1.5rem; }
}
