/* Không sử dụng :root, đóng gói biến tại Wrapper */
.bmr-pro-wrapper {
    --bg-white: #ffffff;
    --text-dark: #000000;
    --neo-border: 3px solid #000000;
    --neo-shadow: 4px 4px 0px #000000;
    --neo-shadow-active: 1px 1px 0px #000000;
    
    /* Bảng màu Soft Brutalism riêng cho tool này */
    --clr-primary: #bde0fe;   /* Xanh lơ nhạt */
    --clr-secondary: #ffc8dd; /* Hồng nhạt */
    --clr-accent: #cdb4db;    /* Tím nhạt */
    --clr-alert: #ffadad;     /* Đỏ nhạt */
    --clr-success: #fdffb6;   /* Vàng nhạt */

    max-width: 750px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
}

.bmr-pro-wrapper * {
    box-sizing: border-box;
}

/* Header */
.bmr-pro-header {
    background: var(--clr-primary);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.bmr-pro-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Form Styles */
.bmr-pro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.bmr-pro-wrapper .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bmr-pro-wrapper label {
    font-weight: 800;
    font-size: 15px;
}

.bmr-pro-wrapper input[type="number"],
.bmr-pro-wrapper select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: var(--neo-border);
    border-radius: 8px;
    background: var(--bg-white);
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s;
}

.bmr-pro-wrapper input[type="number"]:focus,
.bmr-pro-wrapper select:focus {
    outline: none;
    background: #f4f4f4;
    box-shadow: var(--neo-shadow);
}

/* Custom Radio Neo */
.gender-box {
    flex-direction: row !important;
    gap: 15px;
}

.radio-neo {
    flex: 1;
    cursor: pointer;
}

.radio-neo input {
    display: none;
}

.neo-content {
    display: block;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    border: var(--neo-border);
    border-radius: 8px;
    background: var(--bg-white);
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}

.radio-neo input:checked + .neo-content {
    background: var(--clr-secondary);
    box-shadow: var(--neo-shadow-active);
    transform: translate(2px, 2px);
}

/* Button */
.bmr-pro-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 900;
    background: var(--clr-success);
    color: var(--text-dark);
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: var(--neo-shadow);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.1s;
}

.bmr-pro-btn:hover {
    background: #f0f39c;
}

.bmr-pro-btn:active {
    box-shadow: var(--neo-shadow-active);
    transform: translate(3px, 3px);
}

/* Result Area */
.bmr-pro-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 3px dashed #000;
}

.bmr-pro-result.active-fade {
    display: block !important;
    animation: neoFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.1) forwards;
}

.result-box-main {
    background: var(--clr-accent);
    padding: 30px 20px;
    border: var(--neo-border);
    border-radius: 12px;
    box-shadow: var(--neo-shadow);
    text-align: center;
    margin-bottom: 20px;
}

.result-box-main h3 {
    margin: 0;
    font-size: 1.2rem;
}

.bmrp-number {
    font-size: 4rem;
    font-weight: 900;
    margin: 10px 0;
    letter-spacing: -2px;
}

.bmrp-number span:last-child {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: normal;
}

.bmrp-insight {
    font-size: 0.95rem;
    background: var(--bg-white);
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid #000;
    border-radius: 20px;
    font-weight: 600;
}

.result-knowledge {
    background: var(--clr-alert);
    padding: 20px;
    border: var(--neo-border);
    border-radius: 12px;
    box-shadow: 3px 3px 0px #000;
}

.result-knowledge h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.result-knowledge p {
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Animation */
@keyframes neoFadeUp {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 500px) {
    .bmrp-number { font-size: 3rem; }
}