/* Biến CSS nội bộ */
.blood-neo-wrapper {
    --bg-white: #ffffff;
    --border-ink: 3px solid #111111;
    --shadow-solid: 5px 5px 0px #111111;
    --shadow-push: 2px 2px 0px #111111;
    
    /* Palette Máu & Y Tế */
    --clr-blood: #e63946;      /* Đỏ tươi */
    --clr-light-red: #ffcad4;  
    --clr-possible: #d8f3dc;   /* Xanh nhạt */
    --clr-impossible: #ffccd5; /* Hồng nhạt */
    --clr-warning: #ffea00;    /* Vàng cảnh báo */

    max-width: 750px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #111111;
    background: #fdfdfd;
    padding: 20px;
    border: var(--border-ink);
    border-radius: 16px;
    box-shadow: 8px 8px 0px #111;
}

.blood-neo-wrapper * { box-sizing: border-box; }

/* Header */
.blood-neo-header { background: var(--clr-light-red); border: var(--border-ink); box-shadow: var(--shadow-solid); padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; }
.blood-neo-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: #111; text-transform: uppercase;}
.blood-neo-header p { margin: 0; font-weight: 800; font-size: 1rem; color: #222; }

/* Cảnh báo Y khoa (Text Đen Đậm) */
.blood-medical-alert { background: var(--clr-warning); border: var(--border-ink); box-shadow: 4px 4px 0px #111; border-radius: 12px; padding: 15px 20px; margin-bottom: 25px; }
.alert-title { font-size: 1.1rem; font-weight: 900; color: #111; margin-bottom: 5px; }
.blood-medical-alert p { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.6; color: #111; }

/* Form Styles */
.blood-neo-form { display: flex; flex-direction: column; gap: 20px; }
.blood-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Box Bố/Mẹ */
.blood-parent-box { background: #fff; border: var(--border-ink); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-solid); display: flex; flex-direction: column; gap: 15px; }
.parent-title { font-size: 1.2rem; font-weight: 900; text-align: center; border-bottom: 2px solid #111; padding-bottom: 10px; color: #111;}

.blood-select-group { display: flex; flex-direction: column; gap: 5px; }
.blood-select-group label { font-size: 1rem; font-weight: 900; color: #222; }

/* Các thẻ Select */
.blood-neo-wrapper select { width: 100%; padding: 14px; font-size: 1.1rem; font-weight: 800; color: #111; border: var(--border-ink); border-radius: 8px; background: #f8f9fa; box-shadow: 3px 3px 0px #111; outline: none; cursor: pointer; transition: all 0.2s;}
.blood-neo-wrapper select:focus { background: #e0fbfc; box-shadow: var(--shadow-solid); }

/* Button */
.blood-neo-btn { padding: 18px; font-size: 1.2rem; font-weight: 900; background: var(--clr-blood); color: #fff; border: var(--border-ink); border-radius: 12px; box-shadow: 5px 5px 0px #111; cursor: pointer; text-transform: uppercase; transition: all 0.1s; letter-spacing: 1px;}
.blood-neo-btn:hover { background: #d90429; }
.blood-neo-btn:active { box-shadow: 2px 2px 0px #111; transform: translate(3px, 3px); }

/* Result Layout */
.blood-neo-result { margin-top: 30px; padding-top: 25px; border-top: 4px dashed #111; }
.blood-neo-result.active { display: block !important; animation: bloodPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.result-heading { text-align: center; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin: 0 0 20px 0; color: #111;}

.blood-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;}
.blood-card { position: relative; background: #fff; border: var(--border-ink); box-shadow: var(--shadow-solid); border-radius: 12px; padding: 30px 20px 20px 20px; text-align: center; }
.card-possible { background: var(--clr-possible); }
.card-impossible { background: var(--clr-impossible); }

.card-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 900; font-size: 1rem; padding: 6px 15px; border-radius: 20px; border: 2px solid #111; white-space: nowrap;}
.badge-green { background: #2a9d8f; }
.badge-red { background: var(--clr-blood); }

.blood-card h4 { margin: 0 0 15px 0; font-size: 1.05rem; font-weight: 800; color: #111;}

/* Tags hiển thị Nhóm máu */
.blood-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.b-tag { background: #fff; color: #111; font-weight: 900; font-size: 1.5rem; padding: 10px 15px; border: 3px solid #111; border-radius: 10px; box-shadow: 3px 3px 0px #111; }
.tag-none { background: transparent; border: none; box-shadow: none; font-size: 1.1rem; color: #555; }

/* Helper Note - Text đen đậm */
.blood-helper-note { background: #fff; border: 2px solid #111; border-radius: 8px; padding: 12px; font-size: 0.95rem; font-weight: 800; color: #111; line-height: 1.5;}

@keyframes bloodPop { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

@media (max-width: 650px) {
    .blood-form-grid, .blood-result-grid { grid-template-columns: 1fr; gap: 25px;}
}