/* Improved BMI Calculator Styling - Fitwize Brand */

.fw4k-bmi-container {
    max-width: 500px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
}

.fw4k-bmi-card {
    background: #ffffff;
    border: 4px solid var(--fitwize-red, #f64046);
    border-radius: 35px;
    box-shadow: 0px 23px 45px 0px rgba(246, 64, 70, 0.15);
    overflow: hidden;
    padding: 0;
}

.fw4k-bmi-header {
    background: #f3f3f3;
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid #eee;
}

.fw4k-bmi-header h3 {
    font-family: 'Fredoka bold', sans-serif;
    color: #333;
    margin-bottom: 5px;
    font-size: 28px;
}

.fw4k-bmi-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.fw4k-bmi-body {
    padding: 30px;
}

.fw4k-input-grid {
    margin-bottom: 30px;
}

.col-span-2 {
    grid-column: span 2;
}

.fw4k-input-group {
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
}

.fw4k-input-group label {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

.fw4k-input-group input {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 16px;
    background: #fff;
}

.unit-toggle {
    background: #eee;
    padding: 5px;
    border-radius: 25px;
    display: inline-flex;
    gap: 5px;
}

.unit-option {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: #888;
    background: transparent;
}

.unit-option.active {
    background: #fff;
    color: #f64046;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Gender Toggle Styling */
.gender-toggle-wrapper {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
}

.gender-option input {
    display: none;
}

.gender-label {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.gender-option input:checked + .gender-label {
    background: #f64046;
    border-color: #f64046;
    color: #fff;
}

/* Dual Input for Height */
.dual-input {
    display: flex;
    gap: 10px;
}

.dual-input input {
    width: 100%;
}

/* Calculate Button */
#calc-bmi-btn {
    width: 100%;
    background-color: #fff71f;
    border: 4px solid #f82953;
    border-radius: 30px;
    padding: 12px;
    font-size: 18px;
    font-family: 'Fredoka bold', sans-serif;
    color: #000;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 25px;
}

#calc-bmi-btn:hover {
    background-color: #f82953;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0px 10px 20px rgba(248, 41, 83, 0.3);
}

/* Result Area */
.fw4k-result-card {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 0.5s ease;
}

.bmi-score-circle {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 4px solid #f64046;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.bmi-score-circle #res-score {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.bmi-score-circle small {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.bmi-status-text h4 {
    font-family: 'Fredoka bold', sans-serif;
    margin-bottom: 5px;
    color: #333;
}

.bmi-status-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Dynamic Colors */
.status-underweight .bmi-score-circle { border-color: #3498db; }
.status-underweight h4 { color: #3498db; }

.status-healthy .bmi-score-circle { border-color: #2ecc71; }
.status-healthy h4 { color: #2ecc71; }

.status-overweight .bmi-score-circle { border-color: #f39c12; }
.status-overweight h4 { color: #f39c12; }

.status-obese .bmi-score-circle { border-color: #e74c3c; }
.status-obese h4 { color: #e74c3c; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .fw4k-input-grid {
        grid-template-columns: 1fr;
    }
}
