/* C&P Questionnaires - Public Styles */

.cpq-wrap {
    font-family: inherit;
    margin: 20px 0;
}

.cpq-title {
    color: #a00;
    font-weight: 700;
    font-size: 1.4em;
    margin-bottom: 18px;
}

/* =========================================
   SIMPLE TYPE
   ========================================= */

.cpq-simple {
    max-width: 860px;
}

.cpq-simple-heading {
    font-weight: 700;
    font-size: 1.05em;
    color: #a00;
    margin-bottom: 14px;
}

.cpq-simple-symptoms {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cpq-simple-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cpq-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.97em;
    line-height: 1.5;
}

.cpq-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #0073aa;
}

.cpq-symptom-text {
    color: #222;
}

.cpq-condition-text {
    margin: 2px 0 0 26px;
    font-size: 0.88em;
    color: #666;
    font-style: italic;
}

.cpq-simple-result {
    border: 2px dashed #888;
    padding: 14px 20px;
    text-align: center;
    font-size: 1.05em;
    color: #333;
    border-radius: 4px;
    background: #fafafa;
    margin-top: 10px;
}

.cpq-result-pct {
    color: #0073aa;
}

/* =========================================
   DOMINANT & NONDOMINANT TYPE
   ========================================= */

.cpq-dominant-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cpq-dominant-table-wrap {
    flex: 1;
    overflow-x: auto;
}

.cpq-front-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.cpq-front-table thead tr {
    background: #444;
    color: #fff;
}

.cpq-front-table th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
}

.cpq-front-table .cpq-th-symptom {
    width: 40%;
}

.cpq-front-table .cpq-th-dominant,
.cpq-front-table .cpq-th-nondominant {
    width: 30%;
}

.cpq-front-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.cpq-front-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.cpq-symptom-cell {
    padding: 12px 14px;
    vertical-align: top;
    color: #333;
    line-height: 1.5;
}

.cpq-radio-cell {
    padding: 10px 14px;
    vertical-align: top;
}

.cpq-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 0.93em;
    color: #333;
}

.cpq-radio-label:last-child {
    margin-bottom: 0;
}

.cpq-radio-label input[type="radio"] {
    accent-color: #0073aa;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Rating Box */
.cpq-rating-box {
    min-width: 160px;
    flex-shrink: 0;
}

.cpq-rating-inner {
    border: 2px solid #ccc;
    background: #f5f5f5;
    padding: 20px 16px;
    text-align: center;
    border-radius: 4px;
    position: sticky;
    top: 20px;
}

.cpq-rating-label {
    font-weight: 700;
    font-size: 1em;
    color: #333;
    margin-bottom: 8px;
}

.cpq-rating-value {
    font-size: 2em;
    font-weight: 700;
    color: #0073aa;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .cpq-dominant-inner {
        flex-direction: column;
    }
    .cpq-rating-box {
        width: 100%;
    }
    .cpq-rating-inner {
        position: static;
    }
}
