/* ============================================================
   BYLD Assessment – Public Styles
   ============================================================ */
.byld-ca-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; font-family: inherit; }

/* Form header */
.byld-ca-form-header { text-align: center; margin-bottom: 32px; }
.byld-ca-form-header h2 { font-size: 26px; color: #006B6B; margin-bottom: 8px; }
.byld-ca-subtitle { color: #666; font-size: 15px; }

/* Question blocks */
.byld-ca-question {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.byld-ca-question:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.byld-ca-q-text { font-size: 15px; color: #222; margin-bottom: 16px; line-height: 1.65; }
.byld-ca-options { display: flex; flex-direction: column; gap: 10px; }
.byld-ca-option-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}
.byld-ca-option-label:hover { background: #f0f8f8; border-color: #006B6B; }
.byld-ca-option-label input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: #006B6B; }
.byld-ca-option-label:has(input:checked) { background: #e6f5f5; border-color: #006B6B; }

/* Personal details */
.byld-ca-personal-details { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 24px 26px; margin-top: 30px; }
.byld-ca-section-title { font-size: 18px; color: #006B6B; margin-bottom: 18px; }
.byld-ca-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .byld-ca-fields-grid { grid-template-columns: 1fr; } }
.byld-ca-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.byld-ca-input:focus { outline: none; border-color: #006B6B; box-shadow: 0 0 0 3px rgba(0,107,107,0.12); }
.byld-ca-input.byld-ca-invalid { border-color: #e74c3c; }

/* Submit */
.byld-ca-submit-wrap { margin-top: 28px; text-align: center; }
.byld-ca-btn-submit {
    background: #006B6B;
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.byld-ca-btn-submit:hover { background: #005050; }
.byld-ca-btn-submit:active { transform: scale(0.98); }
.byld-ca-btn-submit:disabled { background: #aaa; cursor: not-allowed; }
.byld-ca-response-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.byld-ca-response-msg.error { color: #e74c3c; }
.byld-ca-response-msg.success { color: #27ae60; }
.byld-ca-error { color: #c0392b; background: #fde8e8; padding: 14px 20px; border-radius: 6px; border: 1px solid #f5c6c6; }

/* ============================================================
   Result page
   ============================================================ */
.byld-ca-result-actions { text-align: center; margin-bottom: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Download Report button */
.byld-ca-btn-download-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    color: #006B6B;
    border: 2px solid #006B6B;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,107,107,0.12);
    letter-spacing: 0.3px;
}
.byld-ca-btn-download-report:hover {
    background: #006B6B;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,107,107,0.22);
    text-decoration: none !important;
}
.byld-ca-btn-download-report:active { transform: scale(0.97); }
.byld-ca-btn-download-report:disabled,
.byld-ca-btn-download-report.byld-ca-loading {
    opacity: 0.65;
    cursor: not-allowed;
}
.byld-ca-btn-download-report svg { flex-shrink: 0; }

.byld-ca-result-header { text-align: center; margin-bottom: 28px; }
.byld-ca-result-header h2 { font-size: 24px; color: #006B6B; margin-bottom: 6px; }
.byld-ca-result-sub { color: #888; font-size: 14px; }

.byld-ca-card-light { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.byld-ca-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .byld-ca-result-grid { grid-template-columns: 1fr; } }

/* Score circle */
.byld-ca-score-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.byld-ca-score-circle {
    width: 130px; height: 130px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.byld-ca-score-circle.level-developing  { background: #e74c3c; }
.byld-ca-score-circle.level-progressing { background: #f39c12; }
.byld-ca-score-circle.level-ready       { background: #27ae60; }
.byld-ca-score-num   { font-size: 44px; font-weight: 700; color: #fff; line-height: 1; }
.byld-ca-score-denom { font-size: 14px; color: rgba(255,255,255,0.75); }
.byld-ca-score-label { font-size: 14px; color: #555; margin-bottom: 10px; }

.byld-ca-level-badge {
    display: inline-block; padding: 5px 18px; border-radius: 20px; font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.byld-ca-level-badge.level-developing  { background: #fde8e8; color: #c0392b; }
.byld-ca-level-badge.level-progressing { background: #fef3e2; color: #d35400; }
.byld-ca-level-badge.level-ready       { background: #e8f8f0; color: #1e8449; }

/* Pink heading */
.byld-ca-pink-heading { color: #e91e8c; margin-top: 14px; margin-bottom: 8px; font-size: 14px; }

/* List */
.byld-ca-list { padding-left: 20px; margin-top: 8px; line-height: 1.9; font-size: 14px; color: #555; }

/* Result table */
.byld-ca-result-table-wrap { overflow-x: auto; }
.byld-ca-result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.byld-ca-result-table th { background: #006B6B; color: #fff; padding: 12px 16px; text-align: left; }
.byld-ca-result-table td { padding: 12px 16px; border-bottom: 1px solid #eee; vertical-align: middle; }
.byld-ca-result-table .byld-ca-active-row td { background: #f0fff5; font-weight: 600; }
.byld-ca-score-cell { text-align: center; }
.byld-ca-score-circle-sm {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; color: #fff; margin: 0 auto;
}
.byld-ca-score-circle-sm.level-developing  { background: #e74c3c; }
.byld-ca-score-circle-sm.level-progressing { background: #f39c12; }
.byld-ca-score-circle-sm.level-ready       { background: #27ae60; }

/* Recommendation */
.byld-ca-recommendation h3 { color: #006B6B; margin-bottom: 12px; font-size: 18px; }
.byld-ca-recommendation p  { font-size: 15px; line-height: 1.75; color: #444; }

/* Intro */
.byld-ca-result-intro h3 { color: #006B6B; margin-bottom: 12px; font-size: 18px; }
.byld-ca-result-intro p  { font-size: 14px; line-height: 1.75; color: #555; }

/* ============================================================
   PDF / Print styles — ensures html2pdf renders correctly
   ============================================================ */
#byld-ca-result-content {
    background: #fff;
}
#byld-ca-result-content .byld-ca-card-light {
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
}
#byld-ca-result-content .byld-ca-result-grid {
    page-break-inside: avoid;
}
#byld-ca-result-content .byld-ca-result-table-wrap {
    page-break-inside: avoid;
}
#byld-ca-result-content .byld-ca-recommendation {
    page-break-inside: avoid;
}

/* Unanswered question highlight */
.byld-ca-unanswered {
    border: 2px solid #e74c3c !important;
    border-radius: 8px;
}
