/* Carrier Comparison: the upload form and the comparison matrix. */

label { display: block; font-weight: 600; margin-top: 16px; margin-bottom: 4px; font-size: 14px; }
.help { color: #777; font-size: 12px; margin-top: 2px; }
.errorlist { color: #c00000; list-style: none; padding: 0; margin: 4px 0; font-size: 13px; }
.placeholder-note { color: #c00000; font-style: italic; }

button[type=submit] {
    margin-top: 20px; padding: 10px 22px; border: none; border-radius: 4px;
    background: var(--navy); color: #fff; font-size: 15px; cursor: pointer;
}
button[type=submit]:hover { opacity: .9; }
button[disabled] { opacity: .65; cursor: progress; }

.status-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.status-complete { background: #dff5e1; color: #1a7431; }
.status-failed { background: #fbe1e1; color: #a11; }
.status-pending, .status-reading, .status-extracting, .status-comparing { background: #fff3cd; color: #916a00; }

.for-whom { margin-left: 6px; font-size: 13px; color: var(--muted); }

.cc-heading {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 30px 0 8px; padding-bottom: 6px;
    border-bottom: 2px solid var(--navy);
    color: var(--navy); font-size: 16px; text-transform: uppercase; letter-spacing: .02em;
}

.judgement {
    padding: 2px 8px; border-radius: 99px; background: #fff3cd; color: #916a00;
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

.cc-note { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }

/* --- the carriers being compared --- */
.cc-carriers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: start;
    gap: 12px;
    margin-bottom: 4px;
}

.cc-carrier {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

.cc-carrier.cc-chosen { border-color: var(--teal); background: #f6fbf9; }
.cc-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.cc-premium { font-size: 18px; font-weight: 700; color: var(--navy); }
.cc-meta { font-size: 11.5px; color: var(--muted); }

.cc-flag {
    align-self: flex-start; margin-top: 6px; padding: 2px 9px; border-radius: 99px;
    background: var(--teal); color: #fff;
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* --- recommendation --- */
.cc-reco {
    padding: 18px 20px; border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0;
    background: #f6fbf9; font-size: 14.5px; line-height: 1.6;
}

.cc-reco p { margin: 0 0 8px; }
.cc-reco-carrier { font-size: 19px; font-weight: 700; color: var(--navy); }
.cc-runner { font-size: 13px; color: var(--muted); }
.cc-caveat-label { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* --- the matrix --- */
/* Same scroll-shadow trick as the proposal preview: with six carriers the table
   can still outgrow the page, and a reader who misses the scrollbar simply does
   not see the last carrier's column. */
.cc-matrix-wrap {
    overflow-x: auto;
    margin: 4px 0 10px;
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center,
        radial-gradient(farthest-side at 0 50%, rgba(32, 35, 96, .18), rgba(32, 35, 96, 0)) left center,
        radial-gradient(farthest-side at 100% 50%, rgba(32, 35, 96, .18), rgba(32, 35, 96, 0)) right center;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

.cc-matrix { border-collapse: collapse; width: 100%; font-size: 12.5px; }

.cc-matrix th,
.cc-matrix td {
    border: 1px solid #e0e2ec; padding: 7px 10px; text-align: left; vertical-align: top;
}

.cc-matrix thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--navy); color: #fff; font-weight: 700; font-size: 12px;
}

.cc-matrix thead th.cc-col-chosen { background: #17304a; box-shadow: inset 0 -3px 0 var(--teal); }

.cc-feature-col { min-width: 190px; }

.cc-category th {
    background: #eef1f9; color: var(--navy);
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

.cc-feature { font-weight: 600; color: var(--ink); background: #fafbff; }

.cc-row-note {
    display: block; margin-top: 3px;
    font-weight: 400; font-style: italic; font-size: 11px; color: var(--muted);
}

/* The quote is silent here -- shown, never omitted. */
.cc-absent { background: #fafafa; }
.cc-absent-text { color: #b4b4b4; font-style: italic; font-size: 11.5px; }

.cc-advantage { background: #f2faf7; font-weight: 600; }
.adv, .adv-key { color: var(--teal); font-weight: 700; }

.points { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; }
.points li { margin-bottom: 5px; }
.points.flagged li { color: #a11; }

.cc-foot {
    margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--muted);
}

@media (max-width: 720px) {
    .cc-matrix { font-size: 11.5px; }
    .cc-feature-col { min-width: 140px; }
}
