/* =========================================
   Fitpoprawny - Kalkulator CPM
   ========================================= */

.fitpoprawny_kalkulator_form {
    background: #fff;
    border: 1px solid rgba(229, 124, 52, 0.25);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 40px 50px;
    max-width: 600px;
    margin: 0 auto; /* wyśrodkowanie */
    text-align: left;
}

.fitpoprawny_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* odstępy między wierszami */
}

.fitpoprawny_table td:first-child {
    width: 40%;
    font-weight: 500;
    color: var(--fitpoprawny-dark);
}

.fitpoprawny_table td:last-child {
    width: 60%;
}

/* Inputy i selecty */
.fitpoprawny_input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fitpoprawny_input:focus {
    outline: none;
    border-color: var(--fitpoprawny-orange);
    box-shadow: 0 0 0 3px rgba(229, 124, 52, 0.15);
}

/* Przyciski */
.fitpoprawny_kalkulator_form .fitpoprawny_btn {
    width: 100%;
    font-size: 1.1rem;
}

.fitpoprawny_result {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fitpoprawny_result .fitpoprawny_card {
    background: var(--fitpoprawny-gray);
    border: 1px solid rgba(229,124,52,0.3);
}

.fitpoprawny_btn_small {
    margin-top: 10px;
    font-size: 0.95rem;
    padding: 10px 22px;
}

.fitpoprawny_bmi_normal { color: #1e9c5a; } /* zielony */
.fitpoprawny_bmi_under { color: #0077cc; }  /* niebieski */
.fitpoprawny_bmi_over { color: #e57c34; }   /* pomarańczowy */
.fitpoprawny_bmi_obese { color: #d93025; }  /* czerwony */


/* Responsywność */
@media (max-width: 768px) {

    /* Usunięcie zachowania tabeli */
    .fitpoprawny_table,
    .fitpoprawny_table tbody,
    .fitpoprawny_table tr,
    .fitpoprawny_table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .fitpoprawny_table {
        border-spacing: 0;
    }

    .fitpoprawny_table tr {
        margin-bottom: 15px;
    }

    .fitpoprawny_table td:first-child {
        font-weight: 600;
        margin-bottom: 5px;
    }

    /* Inputy i selecty */
    .fitpoprawny_input {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box;
    }

    /* Przycisk */
    .fitpoprawny_btn {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box;
    }
}

