.score-4t-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.score-4t-header {
    text-align: center;
    margin-bottom: 30px;
    color: #2c5aa0;
}

.score-4t-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.score-4t-header p {
    margin: 5px 0;
    font-size: 16px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section h3 {
    color: #2c5aa0;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.radio-group label,
.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

.calculate-btn {
    background-color: #2c5aa0;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #1e3f73;
}

.results-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f4f8;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.results-container h3 {
    color: #2c5aa0;
    margin-top: 0;
}

#score-result {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

#interpretation-result {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.low-risk {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.intermediate-risk {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.high-risk {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#summary-result {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .score-4t-container {
        padding: 10px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="date"],
    .form-group select {
        width: 100%;
    }
}



.cec-warning-banner {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-content {
    background-color: #fff;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.warning-content h3 {
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.warning-content p {
    color: #721c24;
    margin: 0;
    font-weight: 500;
}

.warning-message {
    text-align: center;
}

.warning-message p {
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}


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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Radio button groups - display side by side */
.form-group input[type="radio"] {
    margin-right: 8px;
    margin-left: 15px;
}

.form-group input[type="radio"]:first-of-type {
    margin-left: 0;
}

.form-group label[for$="_f"],
.form-group label[for$="_m"],
.form-group label[for$="_medical"],
.form-group label[for$="_surgical"],
.form-group label[for$="preventive"],
.form-group label[for$="curative"],
.form-group label[for$="_yes"],
.form-group label[for$="_no"] {
    display: inline;
    margin-bottom: 0;
    margin-right: 20px;
    font-weight: normal;
}

.radio-inline {
    display: inline-block;
    margin-right: 20px;
}

.radio-inline input[type="radio"] {
    margin-right: 5px;
    margin-left: 0;
}

.radio-inline label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
}

/* Radio and checkbox groups with longer labels */
.radio-group,
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 5px 0;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.radio-group label,
.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.4;
    flex: 1;
}

/* Special styling for text inputs within radio groups */
.radio-group input[type="text"] {
    margin-left: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 200px;
}

/* Ensure proper spacing for form groups */
.form-group {
    margin-bottom: 25px;
}

.form-group > label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* Standard radio buttons (short labels) */
.radio-inline {
    display: inline-block;
    margin-right: 20px;
    vertical-align: top;
}

.radio-inline input[type="radio"] {
    margin-right: 5px;
    margin-left: 0;
    vertical-align: middle;
}

.radio-inline label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    vertical-align: middle;
}


/* Results section styling */
.results-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.results-container h3 {
    color: #495057;
    margin-top: 0;
}

/* TIH Algorithm Image */
.tih-algorithm-image {
    margin-top: 25px;
    text-align: center;
}

.tih-algorithm-image h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.tih-algorithm {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tih-algorithm:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive image */
@media (max-width: 768px) {
    .tih-algorithm {
        max-width: 100%;
        border-width: 1px;
    }
    
    .tih-algorithm-image h4 {
        font-size: 16px;
    }
}

/* Risk classification styling */
.low-risk {
    color: #28a745;
    font-weight: bold;
}

.intermediate-risk {
    color: #ffc107;
    font-weight: bold;
}

.high-risk {
    color: #dc3545;
    font-weight: bold;
}

.loading {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Radio and checkbox groups with longer labels */
.radio-group,
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 5px 0;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.radio-group label,
.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.4;
    flex: 1;
}

/* Special radio group with text input below */
.radio-group-with-input {
    display: block;
    margin-bottom: 15px;
}

.radio-group-with-input .radio-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.radio-group-with-input .radio-option input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.radio-group-with-input .radio-option label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.4;
    flex: 1;
}

.radio-group-with-input .text-input-below {
    margin-left: 25px;
    margin-top: 8px;
}

.radio-group-with-input .text-input-below input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}