.fcr-widget {
    --fcr-green: #5BBB7B;
    --fcr-dark: #10233f;
    --fcr-muted: #8090a8;
    --fcr-border: #e1e7f0;
    --fcr-soft: #f5f8fc;
    width: 100%;
    font-family: inherit;
    color: var(--fcr-dark);
}
.fcr-widget * { box-sizing: border-box; }
.fcr-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--fcr-border);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(30, 53, 89, .07);
}
.fcr-header { text-align: center; margin-bottom: 25px; }
.fcr-header h2 { margin: 0 0 8px; color: var(--fcr-dark); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.fcr-dropzone {
    display: flex;
    width: 100%;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    border: 2px dashed #dce4ee;
    border-radius: 24px;
    background: linear-gradient(180deg, #fcfdff, #f8fbff);
    color: var(--fcr-dark);
    cursor: pointer;
    transition: .2s ease;
}
.fcr-dropzone:hover, .fcr-dropzone.is-dragging { border-color: var(--fcr-green); background: #f5fcf7; transform: translateY(-1px); }
.fcr-widget.is-completed .fcr-dropzone { cursor: not-allowed; opacity: .62; pointer-events: none; }
.fcr-widget.is-completed .fcr-dropzone:hover { border-color: #dce4ee; background: linear-gradient(180deg, #fcfdff, #f8fbff); transform: none; }
.fcr-upload-icon {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border-radius: 28px;
    background: #f0f4fa;
    color: #93a2ba;
    font-size: 64px;
    line-height: 1;
    font-weight: 300;
}
.fcr-drop-title { font-size: clamp(20px, 2.6vw, 29px); font-weight: 800; }
.fcr-file-pill { padding: 9px 18px; border-radius: 999px; color: #5f7192; background: #eef3f9; font-size: 14px; font-weight: 700; }
.fcr-file-status { min-height: 22px; margin: 10px 0 0; text-align: center; color: var(--fcr-muted); font-size: 14px; }
.fcr-file-status.is-ready { color: #31764b; font-weight: 700; }
.fcr-options { display: flex; justify-content: center; margin: 18px 0 10px; }
.fcr-select-label { display: flex; align-items: center; gap: 10px; color: #53647e; font-size: 14px; }
.fcr-select-label select { min-width: 190px; padding: 10px 12px; border: 1px solid var(--fcr-border); border-radius: 10px; background: #fff; color: var(--fcr-dark); font: inherit; }
.fcr-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 15px 20px; border: 0; border-radius: 13px; background: var(--fcr-green); color: #fff; cursor: pointer; font: inherit; font-size: 17px; font-weight: 800; transition: .2s ease; }
.fcr-submit:hover:not(:disabled) { filter: brightness(.96); transform: translateY(-1px); }
.fcr-submit:disabled { opacity: .55; cursor: not-allowed; }
.fcr-analysis-progress { margin-top: 14px; }
.fcr-analysis-progress[hidden] { display: none !important; }
.fcr-analysis-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #53647e; font-size: 14px; font-weight: 700; }
.fcr-progress-percent { color: var(--fcr-green); direction: ltr; }
.fcr-analysis-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e7edf4; }
.fcr-analysis-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4eae70, #70cc8f); transition: width .35s ease; }
.fcr-message { display: none; margin-top: 17px; padding: 12px 15px; border-radius: 11px; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.fcr-message:not(:empty) { display: block; }
.fcr-message.is-error { color: #9d2635; background: #fff1f2; border: 1px solid #ffd5d9; }
.fcr-message.is-info { color: #315b88; background: #eff7ff; border: 1px solid #d5eaff; }
.fcr-results { margin-top: 28px; }
.fcr-result-top { display: flex; align-items: center; justify-content: center; padding: 22px; border: 1px solid var(--fcr-border); border-radius: 18px; background: #fbfdff; }
.fcr-score-box { --score: 0%; display: grid; width: 120px; height: 120px; flex: 0 0 auto; place-content: center; border-radius: 50%; background: radial-gradient(closest-side, #fff 77%, transparent 78% 100%), conic-gradient(var(--fcr-green) var(--score), #e8eef5 0); text-align: center; }
.fcr-score { color: var(--fcr-dark); font-size: 33px; line-height: 1; }
.fcr-score-label { color: var(--fcr-muted); font-size: 13px; font-weight: 700; }
.fcr-issues { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--fcr-border); border-radius: 16px; background: #fff; }
.fcr-issues-title { margin: 0 0 13px; color: var(--fcr-dark); font-size: 18px; line-height: 1.4; }
.fcr-issues-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fcr-issue { display: flex; align-items: flex-start; gap: 9px; color: #4e5f78; font-size: 14px; line-height: 1.75; }
.fcr-issue-dot { display: block; width: 8px; height: 8px; flex: 0 0 auto; margin-top: .65em; border-radius: 50%; background: #e6a23c; }
.fcr-issue-high .fcr-issue-dot { background: #d74b57; }
.fcr-issue-low .fcr-issue-dot { background: #5BBB7B; }
.fcr-issue-message { min-width: 0; }
.fcr-service-cta { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 18px; padding: 15px 20px; border-radius: 13px; background: var(--fcr-green); color: #fff !important; text-decoration: none !important; font-size: 17px; font-weight: 800; transition: .2s ease; }
.fcr-service-cta:hover { background: #4eae70; color: #fff !important; transform: translateY(-1px); }
@media (max-width: 640px) {
    .fcr-card { padding: 18px; border-radius: 16px; }
    .fcr-dropzone { min-height: 270px; padding: 20px; border-radius: 17px; }
    .fcr-upload-icon { width: 82px; height: 82px; font-size: 52px; border-radius: 23px; }
    .fcr-drop-title { text-align: center; font-size: 21px; }
    .fcr-result-top { justify-content: center; }
    .fcr-select-label { flex-direction: column; align-items: stretch; width: 100%; }
    .fcr-select-label select { width: 100%; }
}


/* Email capture modal — intentionally compact to preserve the existing widget design. */
body.fcr-email-modal-open { overflow: hidden; }
.fcr-email-modal[hidden] { display: none !important; }
.fcr-email-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 18px; }
.fcr-email-overlay { position: absolute; inset: 0; background: rgba(16,35,63,.48); }
.fcr-email-dialog { position: relative; z-index: 1; width: min(100%, 430px); padding: 30px; border: 1px solid var(--fcr-border); border-radius: 20px; background: #fff; box-shadow: 0 20px 60px rgba(16,35,63,.24); }
.fcr-email-dialog h3 { margin: 0 34px 20px 0; color: var(--fcr-dark); font-size: 21px; line-height: 1.55; }
.fcr-email-close { position: absolute; top: 14px; left: 14px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f1f5fa; color: #61718a; cursor: pointer; font-size: 26px; line-height: 1; }
.fcr-email-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--fcr-border); border-radius: 12px; color: var(--fcr-dark); background: #fff; font: inherit; direction: ltr; text-align: left; outline: none; }
.fcr-email-input:focus { border-color: var(--fcr-green); box-shadow: 0 0 0 3px rgba(91,187,123,.16); }
.fcr-email-error { min-height: 22px; margin: 8px 0 0; color: #9d2635; font-size: 13px; line-height: 1.6; }
.fcr-email-submit { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; margin-top: 8px; padding: 13px 18px; border: 0; border-radius: 12px; background: var(--fcr-green); color: #fff; cursor: pointer; font: inherit; font-size: 16px; font-weight: 800; }
.fcr-email-submit:disabled { opacity: .6; cursor: not-allowed; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
    .fcr-email-dialog { padding: 24px 18px; border-radius: 16px; }
    .fcr-email-dialog h3 { margin-right: 32px; font-size: 19px; }
}
