/* ==========================================================================
   Section partials — CSS lifted out of inline <style> blocks
   --------------------------------------------------------------------------
   Ten near-identical copies of the same "Enhanced ..." CSS used to be inlined,
   one per section partial. Being inline in <body>, they beat every linked
   stylesheet at equal specificity, which is why the app could never be
   themed. Consolidated here; celt-theme.css loads after this and wins.
   Prune this file as rules get folded into the theme.
   ========================================================================== */

/* ---------- risk-factors ---------- */
.panel-primary {
border-color: #3498db;
margin-bottom: 25px;
}

.panel-primary .panel-heading {
background: linear-gradient(135deg, #3498db, #2980b9);
border-color: #3498db;
color: white;
}

.subsection-panel {
margin-bottom: 20px;
border: 1px solid #bdc3c7;
border-radius: 5px;
}

.panel-info {
border-color: #5bc0de;
}

.panel-info .panel-heading {
background: linear-gradient(135deg, #5bc0de, #46b8da);
border-color: #5bc0de;
color: white;
}

.panel-success {
border-color: #5cb85c;
}

.panel-success .panel-heading {
background: linear-gradient(135deg, #5cb85c, #4cae4c);
border-color: #5cb85c;
color: white;
}

.panel-warning {
border-color: #f0ad4e;
}

.panel-warning .panel-heading {
background: linear-gradient(135deg, #f0ad4e, #eea236);
border-color: #f0ad4e;
color: white;
}

.radio-group {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 10px;
}

.radio-option {
display: flex;
align-items: center;
margin-bottom: 8px;
}

.radio-label {
font-size: 14px;
font-weight: 500;
margin-left: 8px;
cursor: pointer;
color: #2c3e50;
}

.radio-option input[type="radio"] {
transform: scale(1.2);
margin-right: 5px;
}

.label-lg {
font-size: 14px !important;
font-weight: bold !important;
color: #2c3e50 !important;
margin-bottom: 8px !important;
}

.form-group {
margin-bottom: 20px;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.radio-option input[type="radio"]:checked + .radio-label {
color: #2980b9;
font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
.radio-group {
    flex-direction: column;
    gap: 12px;
}

.subsection-panel .panel-body {
    padding: 15px;
}

.panel-body {
    padding: 15px;
}
}

/* Hover Effects */
.radio-option:hover .radio-label {
color: #3498db;
}

.subsection-panel:hover {
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: box-shadow 0.3s ease;
}

/* Focus States */
.radio-option input[type="radio"]:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
}

/* ---------- instrumental-studies ---------- */
/* Your CSS styles remain the same */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}

.panel-info {
    border-color: #5bc0de;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    border-color: #5bc0de;
    color: white;
}

.panel-success {
    border-color: #5cb85c;
}

.panel-success .panel-heading {
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    border-color: #5cb85c;
    color: white;
}

.panel-warning {
    border-color: #f0ad4e;
}

.panel-warning .panel-heading {
    background: linear-gradient(135deg, #f0ad4e, #eea236);
    border-color: #f0ad4e;
    color: white;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-group.vertical {
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: 600;
}

/* Style for numerical inputs */
.numeric-input:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.numeric-input:valid {
    border-color: #2ecc71;
}

/* Responsive Design */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .subsection-panel .panel-body {
        padding: 15px;
    }
    
    .panel-body {
        padding: 15px;
    }
}

/* Hover Effects */
.radio-option:hover .radio-label {
    color: #3498db;
}

.subsection-panel:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Focus States */
.radio-option input[type="radio"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.numeric-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* ---------- pre-pci-medication ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

.panel-info {
    border-color: #5bc0de;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    border-color: #5bc0de;
    color: white;
}

.panel-success {
    border-color: #5cb85c;
}

.panel-success .panel-heading {
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    border-color: #5cb85c;
    color: white;
}

.panel-warning {
    border-color: #f0ad4e;
}

.panel-warning .panel-heading {
    background: linear-gradient(135deg, #f0ad4e, #eea236);
    border-color: #f0ad4e;
    color: white;
}

.panel-danger {
    border-color: #d9534f;
}

.panel-danger .panel-heading {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    border-color: #d9534f;
    color: white;
}

.conditional-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group {
    margin-bottom: 20px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .subsection-panel .panel-body {
        padding: 15px;
    }
    
    .panel-body {
        padding: 15px;
    }
}

/* Hover Effects */
.radio-option:hover .radio-label {
    color: #3498db;
}

.subsection-panel:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Focus States */
.radio-option input[type="radio"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ---------- diagnostic-cag ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

.panel-info {
    border-color: #5bc0de;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    border-color: #5bc0de;
    color: white;
}

.panel-success {
    border-color: #5cb85c;
}

.panel-success .panel-heading {
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    border-color: #5cb85c;
    color: white;
}

.panel-warning {
    border-color: #f0ad4e;
}

.panel-warning .panel-heading {
    background: linear-gradient(135deg, #f0ad4e, #eea236);
    border-color: #f0ad4e;
    color: white;
}

/* Checkbox Styling */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-lg {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.large-checkbox {
    transform: scale(1.3);
    margin-right: 10px;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 500;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

/* Segment Selection Styling */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.segment-btn {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.segment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Selected Segments Display */
.selected-segments-display {
    min-height: 60px;
    border: 2px dashed #5cb85c;
    border-radius: 6px;
    padding: 12px;
    background: #f8fff8;
    font-size: 14px;
}

.selected-segment-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.selected-segment-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Input Styling */
.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.form-group-lg .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.syntax-score-input {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .segments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .subsection-panel .panel-body {
        padding: 15px;
    }
    
    .segment-btn {
        font-size: 11px;
        padding: 6px 3px;
    }
}

@media (max-width: 480px) {
    .segments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hover and Active States */
.radio-option input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: 600;
}

.checkbox-label:hover {
    color: #3498db;
}

.large-checkbox:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ---------- lesion-characteristics ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

.panel-info {
    border-color: #5bc0de;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    border-color: #5bc0de;
    color: white;
}

.panel-warning {
    border-color: #f0ad4e;
}

.panel-warning .panel-heading {
    background: linear-gradient(135deg, #f0ad4e, #eea236);
    border-color: #f0ad4e;
    color: white;
}

.conditional-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-lg {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.large-checkbox {
    transform: scale(1.3);
    margin-right: 10px;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 500;
}

.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.form-group-lg .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: 600;
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .subsection-panel .panel-body {
        padding: 15px;
    }
}

/* ---------- invasive-procedure ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

.conditional-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.checkbox-option input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label {
    color: #2980b9;
    font-weight: 600;
}

/* Hover effects for better UX */
.checkbox-option:hover .checkbox-label {
    color: #3498db;
}

.checkbox-option input[type="checkbox"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.form-group-lg .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Additional styling for better spacing */
.form-group {
    margin-bottom: 20px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: 600;
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .subsection-panel .panel-body {
        padding: 15px;
    }
}

/* ---------- stents-used ---------- */
.stent-name-group { margin-bottom: 0; }
.stent-suggested { margin-top: 5px; font-size: 12px; color: #7f8c8d; }
.stent-custom-name { transition: all 0.3s ease; }
.modal-content { border-radius: 12px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal-header { background: linear-gradient(135deg, #e67e22, #d35400); color: white; border-radius: 12px 12px 0 0; border: none; }

/* Keep all your existing CSS styles */
.panel-primary { border-color: #3498db; margin-bottom: 25px; }
.panel-primary .panel-heading { background: linear-gradient(135deg, #3498db, #2980b9); border-color: #3498db; color: white; }
.subsection-panel { margin-bottom: 25px; border: 1px solid #bdc3c7; border-radius: 4px; }
.subsection-heading { background: linear-gradient(135deg, #ecf0f1, #bdc3c7); border-bottom: 1px solid #bdc3c7; padding: 12px 15px; }
.label-lg { font-size: 14px !important; font-weight: bold !important; color: #2c3e50 !important; margin-bottom: 8px !important; }
.form-group-lg .form-control { height: 46px; padding: 10px 16px; font-size: 14px; line-height: 1.3333333; border-radius: 4px; border: 1px solid #bdc3c7; }
.form-group-lg .form-control:focus { border-color: #3498db; box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
.checkbox-lg { margin-bottom: 12px; }
.checkbox-label { display: flex; align-items: center; font-size: 14px; font-weight: 500; color: #2c3e50; cursor: pointer; }
.large-checkbox { transform: scale(1.3); margin-right: 10px; }
.checkbox-text { font-size: 14px; font-weight: 500; }
.stent-table { margin-bottom: 0; }
.stent-table-header { background: linear-gradient(135deg, #34495e, #2c3e50); color: white; }
.stent-table-header th { border-bottom: 2px solid #1a252f; text-align: center; }
.stent-table-row td { vertical-align: middle; padding: 12px 8px; }
.stent-input { font-size: 14px; height: 40px; }
.add-stent-btn { font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 4px; }
.remove-stent-btn { font-size: 12px; padding: 6px 12px; }
.btn-success { background: linear-gradient(135deg, #27ae60, #229954); border-color: #27ae60; }
.btn-success:hover { background: linear-gradient(135deg, #229954, #1e8449); border-color: #229954; }
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); border-color: #e74c3c; }
.btn-danger:hover { background: linear-gradient(135deg, #c0392b, #a93226); border-color: #c0392b; }

@media (max-width: 768px) {
    .subsection-panel .panel-body { padding: 15px; }
    .stent-table { font-size: 12px; }
    .stent-input { font-size: 12px; height: 35px; }
    .add-stent-btn { font-size: 12px; padding: 8px 16px; }
    .checkbox-label { font-size: 12px; }
    .large-checkbox { transform: scale(1.2); }
}

.stent-table-row:hover { background-color: #f8f9fa; }
.checkbox-label:hover { color: #3498db; }
.stent-input:focus { border-color: #3498db; box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
.large-checkbox:focus { outline: 2px solid #3498db; outline-offset: 2px; }

/* ---------- immediate-outcome ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

.panel-info {
    border-color: #5bc0de;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    border-color: #5bc0de;
    color: white;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.checkbox-option input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
}

/* Style for numerical inputs */
.numeric-input:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.numeric-input:valid {
    border-color: #2ecc71;
}

.numeric-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* ---------- discharge-medication ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.therapy-option {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

/* Keep all your existing styles below - they remain unchanged */
.discharge-medication-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.therapy-option .panel-body {
    padding: 25px;
}

.therapy-details {
    margin-top: 20px;
    padding: 25px;
    background: #fafbfc;
    border-radius: 6px;
    border: 1px solid #e8eaed;
}

.therapy-subsection {
    margin-bottom: 25px;
}

.therapy-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #5a6c7d;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eaed;
}

/* Main Yes/No Radio Groups */
.yesno-radio-group {
    display: flex;
    gap: 20px;
}

.yesno-radio {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #d1d3e2;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2em;
    min-height: 50px;
}

.yesno-radio:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.yesno-radio.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.yesno-radio input[type="radio"] {
    margin: 0;
    margin-right: 12px;
    transform: scale(1.3);
}

.yesno-label {
    font-weight: 600;
    font-size: 1.2em;
}

/* Sub-level Radio Groups */
.sub-radio-group {
    display: flex;
    gap: 15px;
}

.sub-radio-group .yesno-radio {
    padding: 10px 16px;
    font-size: 1.1em;
    min-height: 45px;
}

.sub-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: block;
    font-size: 1.3em;
}

/* Drug-level Radio Groups */
.drug-radio-group {
    display: flex;
    gap: 12px;
}

.drug-radio-group .yesno-radio {
    padding: 8px 14px;
    font-size: 1.05em;
    flex: 1;
    justify-content: center;
    min-height: 40px;
}

.drug-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
    display: block;
    font-size: 1.2em;
}

/* Form Groups Spacing */
.main-option-group {
    margin-bottom: 0;
}

.sub-option-group {
    margin-bottom: 25px;
}

.drug-option-group {
    margin-bottom: 20px;
}

/* Input Styling */
.medication-input {
    border-radius: 6px;
    border: 2px solid #d1d3e2;
    padding: 12px 16px;
    font-size: 1.3em;
    transition: all 0.3s ease;
    height: 50px;
}

.medication-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.medication-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
    font-size: 1.3em;
}

/* Spacing Utilities */
.mt-4 { margin-top: 2rem !important; }

/* Responsive */
@media (max-width: 768px) {
    .yesno-radio-group,
    .sub-radio-group,
    .drug-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .therapy-option .panel-body {
        padding: 20px;
    }
    
    .therapy-details {
        padding: 20px;
    }
    
    .yesno-radio {
        min-height: 55px;
        font-size: 1.3em;
    }
    
    .yesno-radio input[type="radio"] {
        transform: scale(1.4);
    }
    
    .sub-label {
        font-size: 1.4em;
    }
    
    .drug-label {
        font-size: 1.3em;
    }
    
    .medication-input {
        font-size: 1.4em;
    }
}

/* Additional accessibility improvements */
.yesno-radio {
    user-select: none;
}

.yesno-radio:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .yesno-radio.active {
        background: #000;
        border-color: #000;
    }
    
    .therapy-details {
        background: #fff;
        border: 2px solid #000;
    }
}

/* ---------- follow-up ---------- */
.panel-primary {
    border-color: #3498db;
    margin-bottom: 25px;
}

.panel-primary .panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.subsection-panel {
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
}

.subsection-heading {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-bottom: 1px solid #bdc3c7;
    padding: 12px 15px;
}

.conditional-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-top: 15px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.label-lg {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.form-group-lg .form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.form-group-lg .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.panel-info {
    border-color: #5bc0de;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    border-color: #5bc0de;
    color: white;
}

.help-block {
    font-size: 12px;
    color: #7f8c8d;
}

/* Better spacing for form groups */
.form-group {
    margin-bottom: 20px;
}

/* Improved radio button styling */
.radio-option input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: 600;
}

