/* BMR Calculator General Styling */
.bmr-calculator-container {
    max-width: 1290px; margin: 2rem auto; padding: 2rem;
    background-color: #ffffff; box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-radius: 12px;
}
.bmr-calculator-container h2 { text-align: center; margin: 0 0 2rem; font-weight: 600; }

/* Progress Bar */
.bmr-progress-bar { display: flex; justify-content: space-between; margin-bottom: 2rem; position: relative; }
.bmr-progress {
    position: absolute; top: 50%; left: 0; transform: translateY(-50%);
    height: 4px; background-color: var(--kadence-color-primary, #0073e6);
    width: 0%; transition: width 0.4s ease; z-index: 1;
}
.bmr-step-indicator {
    position: relative; z-index: 2; flex: 1; text-align: center;
    font-size: 0.75rem; color: #aaa; transition: color 0.4s ease;
}
.bmr-step-indicator::before {
    content: ''; display: block; width: 20px; height: 20px;
    border-radius: 50%; background-color: #fff; border: 2px solid #ccc;
    margin: 0 auto 0.5rem; transition: all 0.4s ease;
}
.bmr-step-indicator.active { color: var(--kadence-color-primary, #0073e6); font-weight: bold; }
.bmr-step-indicator.active::before, .bmr-step-indicator.completed::before {
    border-color: var(--kadence-color-primary, #0073e6);
    background-color: var(--kadence-color-primary, #0073e6);
}

/* Form Steps & Inputs */
.bmr-form-wrapper { min-height: 300px; }
.bmr-step { display: none; animation: fadeIn 0.5s ease-in-out; }
.bmr-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
.bmr-step-title { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; font-weight: 500; }
.bmr-input-group { margin-bottom: 1.5rem; }
.bmr-input-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.bmr-radio-group { display: flex; flex-direction: column; gap: 0.75rem; }
.bmr-radio-group label {
    display: block; padding: 1rem; border: 1px solid #ddd;
    border-radius: 8px; cursor: pointer; transition: all 0.2s ease;
}
.bmr-radio-group label:has(input:checked) {
    border-color: var(--kadence-color-primary, #0073e6);
    background-color: var(--kadence-color-primary-lighten-40, #f0f6ff);
}
.bmr-radio-group input[type="radio"] { display: none; }
.bmr-radio-label { font-size: 0.9rem; display: flex; align-items: center; }
.bmr-radio-label::before {
    content: ''; width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 50%;
    margin-right: 12px; transition: all 0.2s ease;
}
.bmr-radio-group label:has(input:checked) .bmr-radio-label::before {
    border-color: var(--kadence-color-primary, #0073e6); background-color: var(--kadence-color-primary, #0073e6);
    box-shadow: inset 0 0 0 3px #fff;
}
.bmr-input-group input[type="number"] {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid #ccc;
    border-radius: 8px; font-size: 1rem; box-sizing: border-box;
}
.bmr-height-inputs { display: flex; gap: 1rem; }
.bmr-advanced-options { margin-top: 2rem; text-align: center; }
#bmr-advanced-toggle {
    color: var(--kadence-color-primary, #0073e6); text-decoration: none;
    font-size: 0.9rem; border-bottom: 1px dashed;
}
#bmr-advanced-panel { margin: 1rem 0; padding: 1rem; background-color: #f8f9fa; border-radius: 8px; text-align: left; }
.bmr-radio-group-small label { padding: 0.5rem; }

/* Navigation & Action Buttons */
.bmr-navigation-buttons, .bmr-action-buttons {
    display: flex; justify-content: center; gap: 1rem; margin-top: 2rem;
    border-top: 1px solid #eee; padding-top: 1.5rem;
}
.bmr-navigation-buttons { justify-content: space-between; }
.bmr-btn {
    padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem;
    font-weight: bold; cursor: pointer; transition: all 0.3s;
    background-color: var(--kadence-color-primary, #0073e6); color: #fff;
}
.bmr-btn:disabled { background-color: #ccc; cursor: not-allowed; opacity: 0.7; }
#bmr-prev-btn { background-color: #6c757d; }
.bmr-btn-secondary {
    background-color: transparent; color: var(--kadence-color-primary, #0073e6);
    border: 2px solid var(--kadence-color-primary, #0073e6);
}

/* Results Section */
.bmr-results-section { animation: fadeIn 0.5s; text-align: center; }
.bmr-summary-sentence { padding: 1rem; background: #f8f9fa; border-radius: 8px; margin-bottom: 1.5rem; }
.bmr-goal-result {
    background-color: var(--kadence-color-primary, #0073e6); color: #fff;
    padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem;
}
.bmr-goal-result p { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.bmr-main-result {
    font-size: 1.5rem; font-weight: bold; display: flex; justify-content: center;
    align-items: baseline; gap: 0.5rem;
}
.bmr-main-result span:first-child { font-size: 3rem; line-height: 1; }
.bmr-result-breakdown { display: flex; gap: 1rem; margin-bottom: 2rem; justify-content: center; }
.bmr-result-item { background-color: #f8f9fa; padding: 1rem; border-radius: 8px; flex: 1; }
.bmr-result-item p { margin: 0 0 0.25rem; font-size: 0.9rem; color: #555; }
.bmr-result-item span { font-size: 1.5rem; font-weight: bold; color: var(--kadence-color-primary, #0073e6); }
.bmr-table-title { margin: 2rem 0 1rem; font-size: 1.2rem; }
.bmr-results-table {
    width: 100%; margin-bottom: 2rem; border-collapse: collapse; text-align: center;
}
.bmr-results-table th, .bmr-results-table td { padding: 0.8rem; border-bottom: 1px solid #eee; }
.bmr-results-table th { background-color: #f8f9fa; font-weight: 500; }
.bmr-results-table td:first-child { text-align: left; font-weight: 500; }
.bmr-disclaimer { font-size: 0.85rem; color: #6c757d; margin-top: 2rem; padding: 1rem; background: #f8f9fa; border-radius: 8px; }

/* BMR Range Chart */
.bmr-range-chart-container { margin: 2rem 0; }
.bmr-range-chart { position: relative; height: 20px; background: #e9ecef; border-radius: 10px; }
.bmr-range-zone {
    position: absolute; top: 0; left: 25%; width: 50%; height: 100%;
    background-color: rgba(0, 115, 230, 0.2); border-radius: 10px;
}
.bmr-range-zone::before, .bmr-range-zone::after {
    content: 'Low'; position: absolute; bottom: -20px; font-size: 0.8rem; color: #6c757d;
}
.bmr-range-zone::after { content: 'High'; right: 0; }
.bmr-range-marker {
    position: absolute; top: -5px; width: 4px; height: 30px;
    background-color: var(--kadence-color-primary, #0073e6); border-radius: 2px;
    transform: translateX(-50%); transition: left 1s ease-out;
}
.bmr-range-marker::before {
    content: 'You'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    font-size: 0.9rem; font-weight: bold; color: var(--kadence-color-primary, #0073e6);
}

/* Info/Formulas Section */
.bmr-info-section {
    max-width: 1290px; margin: 3rem auto; padding: 2rem;
    line-height: 1.7; background: #f8f9fa; border-radius: 8px;
}
.bmr-info-section h3 { text-align: center; margin-top: 0; margin-bottom: 1.5rem; }
.bmr-info-section h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: bold; }
.bmr-info-section p { margin-bottom: 1rem; }
.bmr-formula {
    background-color: #fff; padding: 1rem; border-radius: 8px;
    border-left: 4px solid var(--kadence-color-primary, #0073e6);
    font-family: 'Courier New', Courier, monospace; font-size: 0.9rem;
    word-wrap: break-word; color: #333; margin-bottom: 0.5rem !important;
}

/* Responsive & Print */
@media (max-width: 480px) {
    .bmr-calculator-container { padding: 1rem; box-shadow: none; border: 1px solid #eee; }
    .bmr-height-inputs, .bmr-action-buttons, .bmr-result-breakdown { flex-direction: column; }
    .bmr-step-indicator { font-size: 0.6rem; }
}
@media print {
    body > *:not(#bmr-calculator), .bmr-calculator-container h2, .bmr-progress-bar, .bmr-form-wrapper, .bmr-navigation-buttons, .bmr-action-buttons, .bmr-disclaimer, .bmr-info-section, #bmr-range-chart-container { display: none !important; }
    .bmr-calculator-container, #bmr-calculator { display: block !important; box-shadow: none !important; border: none !important; }
    #bmr-results-section { display: block !important; text-align: left; }
    .bmr-main-result, .bmr-result-item { text-align: left; justify-content: flex-start; }
}