.protein-card {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem;
}

.protein-unit-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.unit-btn {
    padding: 0.9rem 4rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    font-family: "Roboto Slab", serif;
    text-transform: uppercase;
    color: #000;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.unit-btn.active {
    background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
    color: #fff;
}

.protein-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.protein-input-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}


.protein-input-field {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    flex: 1;
}

.protein-input-field.full-width {
    flex: 1 0 100%;
}


.protein-input-field label {
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 6px;
    color: #111;
}

.protein-input-field input[type="number"],
.protein-input-field input[type="text"] {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 400;
    font-family: "Roboto Slab", serif;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}

.bmi-custom-select {
    position: relative;
    width: 100%;
}

.select-selected {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 13px 12px;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.select-selected:after {
    content: "\25BC";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.select-items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.select-items div {
    padding: 10px;
    cursor: pointer;
    font-weight: 400;
}

.select-items div:hover {
    background-color: #f0f4ff;
}

.select-items.show {
    display: block;
}

.select-arrow-active:after {
    transform: translateY(-50%) rotate(180deg);
}

.protein-input-field .bmi-height-imperial {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.protein-input-field .bmi-height-imperial input {
    width: 100%;
    max-width: 120px;
}


.protein-input-field .metric {
    display: block;
}

.protein-input-field .imperial {
    display: none;
}


.protein-calc-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}


.protein-calc-btn-container .calculate-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    font-family: "Roboto Slab", serif;
    border: none;
    border-radius: 8px;
    width: 40%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(1px);
}

/***** Result *****/
.protein-result {
    max-width: 900px;
    margin: 1.75rem auto 0 auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    padding: 1.75rem;
    text-align: left;
}

.protein-result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.protein-result-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Roboto Slab", serif;
    color: #058d40;
    margin: 0;
}


.protein-guidelines {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 1.05rem;
    color: #333;
}

.protein-guidelines p {
    margin: 0.25rem 0;
    line-height: 1.45;
}

.protein-guidelines .highlight {
    color: #058d40;
    font-weight: 700;
}


.protein-result .divider {
    height: 1px;
    background: #eef2ff;
    margin: 0.75rem 0;
    border-radius: 2px;
}


.protein-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 6px;
}


.protein-input-field input:focus,
.protein-input-field .select-selected:focus {
    outline: 2px solid rgba(15, 43, 201, 0.12);
    box-shadow: 0 2px 8px rgba(15, 43, 201, 0.06);
    border-color: #0F2BC9;
}


.activity-hint {
    font-size: 0.9rem;
    color: #777;
    margin-top: 6px;
}

/* Input adjustments */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.formula-block-prot {
    font-weight: bold;
    font-size: 1.1rem;
    background: #f0f4ff;
    width: auto;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}



/***** Media Query *****/
/***** Tablets in portrait & smaller laptops (≤991px) ******/
@media (max-width: 991px) {
.protein-card {
    max-width: 800px;
    margin: 0 auto;
    gap: 1.75rem;
    padding: 2.5rem;
}

.protein-result {
    max-width: 800px;
    margin: 1.75rem auto 0 auto;
    padding: 1.75rem;
    text-align: left;
}
}

/***** Standard tablets & landscape phones (≤768px) ******/
@media (max-width: 768px) {
.protein-card {
    max-width: 700px;
    margin: 0 auto;
    gap: 1.75rem;
    padding: 2.5rem;
}

.protein-result {
    max-width: 700px;
    margin: 1.75rem auto 0 auto;
    padding: 1.75rem;
    text-align: left;
}

.protein-result-header h3 {
    font-size: 1.4rem;
}

.protein-guidelines {
    font-size: 1.15rem;
    color: #333;
}

.protein-guidelines .highlight {
    font-size: 1.1rem;
}
}

/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
.protein-card {
    max-width: 580px;
    margin: 0 auto;
    gap: 1.75rem;
    padding: 2.5rem;
    flex-direction: column;
    flex-wrap: wrap;
}

.protein-unit-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
}

.protein-input-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
}

.protein-input-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.protein-result {
    max-width: 560px;
    margin: 1.75rem auto 0 auto;
    padding: 1.75rem;
    text-align: left;
}

.protein-calc-btn-container .calculate-btn {
    padding: 1rem 3rem;
    width: 70%;
}

.protein-result-header h3 {
    font-size: 1.4rem;
}

.protein-guidelines {
    font-size: 1.15rem;
    color: #333;
}

.protein-guidelines .highlight {
    font-size: 1rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
.protein-card {
    max-width: 400px;
    margin: 0 auto;
    gap: 1.75rem;
    padding: 2.5rem;
    flex-direction: column;
    flex-wrap: wrap;
}

.protein-unit-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
}

.protein-input-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
}

.protein-input-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.protein-result {
    max-width: 400px;
    margin: 1.75rem auto 0 auto;
    padding: 1.75rem;
    text-align: center;
}

.protein-calc-btn-container .calculate-btn {
    padding: 1rem 3rem;
    width: 100%;
}

.protein-result-header h3 {
    font-size: 1.4rem;
}

.protein-guidelines {
    font-size: 1.15rem;
    color: #333;
}

.protein-guidelines .highlight {
    font-size: 1rem;
}

.formula-block-prot {
    font-weight: bold;
    font-size: 0.9rem;
}
}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
.protein-card {
    max-width: 330px;
    margin: 0 auto;
    gap: 1.75rem;
    padding: 2.5rem;
    flex-direction: column;
    flex-wrap: wrap;
}

.protein-unit-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
}

.protein-input-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
}

.protein-input-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.protein-result {
    max-width: 330px;
    margin: 1.75rem auto 0 auto;
    padding: 1.75rem;
    text-align: center;
}

.protein-calc-btn-container .calculate-btn {
    padding: 1rem 3rem;
    width: 100%;
}

.protein-result-header h3 {
    font-size: 1.15rem;
}

.protein-guidelines {
    font-size: 1.15rem;
    color: #333;
}

.protein-guidelines .highlight {
    font-size: 1rem;
}

.formula-block-prot {
    font-weight: bold;
    font-size: 0.8rem;
}
}

