/* CyberQuestionnaire Module CSS */

/* Section styling */
.cyberquestionnaire-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: #fff;
}

.cyberquestionnaire-section legend {
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 3px;
    width: auto;
}

.cyberquestionnaire-section .section-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 0.9em;
}

/* Checkbox styling */
.checkbox-inline {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

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

/* Badge styling */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 3px;
    margin-right: 5px;
}

.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

/* Recommendations section */
.section-recommendations {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.primary-recommendation {
    margin-bottom: 20px;
}

.primary-recommendation h3 {
    margin-bottom: 10px;
    color: #333;
}

.recommendation-box {
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recommendation-box.best-first {
    border-left: 4px solid #28a745;
}

.recommendation-box .service-code {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
}

.recommendation-box .service-label {
    display: block;
    margin-top: 5px;
    font-size: 1em;
    color: #666;
}

.recommendation-box .score {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Recommendations table */
.all-recommendations table {
    width: 100%;
}

.all-recommendations .top-recommendation {
    background-color: #d4edda !important;
}

.reasons-list {
    margin: 0;
    padding-left: 15px;
    font-size: 0.85em;
}

.reasons-list li {
    margin-bottom: 3px;
}

/* Title field width */
.titlefield {
    width: 25%;
}

/* Form inputs */
input[type="number"].flat {
    width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .checkbox-inline {
        display: block;
        margin-bottom: 10px;
    }

    .cyberquestionnaire-section .titlefield {
        width: 100%;
        display: block;
    }
}

/* Admin pricing table */
.pricing-table {
    width: 100%;
}

.pricing-table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
}

.pricing-table td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.pricing-table input {
    width: 100%;
}
