/* ============================================================
   NFA Compare Funders Page Styles
   File: assets/css/page-compare.css
   ============================================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.cmp-page {
    background: #F5F7FA;
    min-height: 100vh;
}

/* ── Top Bar ── */
.cmp-topbar {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 28px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cmp-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0A0A0A;
    text-decoration: none;
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    line-height: var(--lh-166);
    letter-spacing: -0.15px;
    padding: 8px 11px 8px 15px;
    /*     transition: color 0.15s; */
}

.cmp-topbar__back:hover {
    color: #003B86;
}

.cmp-topbar__btn {
    background: #FF3E03;
    color: #fff;
    border: none;
    padding: 15px 22px;
    border-radius: 8px;
    font-size: var(--fs-18);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
    display: inline-block;
}

.cmp-topbar__btn:hover {
    background: #d93200;
}

/* ── Main Wrapper ── */
.cmp-main {
    max-width: 1720px;
    margin: 0 auto;
    padding: 25px 24px 80px;
}

/* ── Page Header Banner ── */
.cmp-banner {
    background: #003B86;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 43px;
}

.cmp-banner h3 {
    color: #fff;
    margin: 0 0 20px;
}

.cmp-banner p {
    font-size: var(--fs-22);
    font-weight: var(--fw-500);
    line-height: var(--lh-normal);
    color: #fff;
    margin: 0;
}

/* ── Table Wrapper ── */
.cmp-overflow-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    /*     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
}

/* ── Table ── */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.cmp-table th,
.cmp-table td {
    vertical-align: top;
    padding: 0;
}

.cmp-table th {
	padding: 62px 10px 19px 10px;
}

.cmp-table th.cmp-funder-header {
    background: #F3F3F5;
    border-radius: 6px;
}

/* Column sizing */
.cmp-col-label {
    width: 200px;
    min-width: 170px;
}

.cmp-col-funder {
    min-width: 220px;
}

/* ── Funder Header Card ── */
.cmp-funder-header {
    background: #fff;
    border-right: 1px solid #E2E8F0;
    border-bottom: 2px solid #E2E8F0;
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    vertical-align: top;
}

.cmp-funder-header:last-child {
    border-right: none;
}

/* Remove (×) button */
.cmp-funder-header__remove {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 24px;
    height: 24px;
    background: #F1F5F9;
    border: 1px solid;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
}

.cmp-funder-header__remove:hover {
    background: #FEE2E2;
    color: #EF4444;
}

/* Logo Avatar — navy square with letter, like Figma */
.cmp-logo-avatar {
    width: 100px;
    height: 70px;
    border-radius: 4px;
    background: #003B86;
    color: #fff;
    /*     font-size: 26px;
    font-weight: 700; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.cmp-logo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cmp-logo-avatar video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cmp-funder-header__name {
    font-size: var(--fs-20);
    font-weight: var(--fw-600);
    line-height: 100%;
    color: #0A0A0A;
    margin: 0 0 6px;
    letter-spacing: -0.15px;
	white-space: pre-wrap !important;
}

.cmp-funder-header__ind {
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    line-height: var(--lh-166);
    letter-spacing: -0.15px;
    color: #6B7280;
    margin: 0;
}

/* ── Empty label cell (top-left corner) ── */
.cmp-corner-cell {
    background: #fff;
    border-right: 1px solid #E2E8F0;
    border-bottom: 2px solid #E2E8F0;
}

/* ── Label Column ── */
.cmp-cell-label {
    padding: 18px 20px !important;
    background: #fff;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    font-size: var(--fs-20) !important;
    font-weight: var(--fw-600) !important;
    line-height: var(--lh-normal) !important;
    color: #0A0A0A !important;
    vertical-align: middle;
    white-space: nowrap;
}


/* ── Value Cells ── */
.cmp-cell-val {
    padding: 18px 20px !important;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    font-size: var(--fs-18) !important;
    font-weight: var(--fw-400) !important;
    line-height: var(--lh-166) !important;
    letter-spacing: -0.15px;
    color: #0A0A0A;
    vertical-align: middle !important;
    text-align: center;
}

.cmp-cell-val:last-child {
    border-right: none;
}

/* ── Advance Rate row — highlighted ── */
.cmp-advance-row .cmp-cell-label {
    color: #003B86;
    font-weight: 800;
    font-size: 14px;
}

.cmp-advance-row .cmp-cell-val {
    background: #F3F3F5;
}

/* .cmp-advance-val {
    font-size: 16px;
    font-weight: 700;
    color: #003B86;
}
 */
/* ── Day rate rows ── */
.cmp-day-row .cmp-cell-label {
    font-weight: 500;
    color: #374151;
}

/* ── Stars ── */
.cmp-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 18px;
    color: #00D743 !important;
}

.cmp-star-empty {
    color: #D1D5DB;
}

.cmp-rating-num {
    /*     font-size: 13px; */
    color: #374151;
    /*     font-weight: 600; */
    margin-top: 4px;
}

/* ── Specialist badge ── */
.cmp-specialist {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EBF0FA;
    color: #003B86;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── Service tags ── */
.cmp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cmp-tag {
    padding: 5px 10px;
    background: #F3F3F5;
    color: #0A0A0A;
    border-radius: 24px;
    font-size: var(--fs-16);
    font-weight: var(--fw-400);
    line-height: var(--lh-150);
    border: 1px solid #D1D5DB;
    white-space: nowrap;
}

/* ── Best badge ── */
.cmp-cell-val.is-best {
    background: #F3F3F5;
    position: relative;
}

.cmp-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /*     font-size: 11px;
    font-weight: 700; */
    color: #166534;
    margin-left: 8px;
}

/* ── Empty placeholder ── */
.cmp-empty {
    color: #9CA3AF;
    font-style: italic;
    font-size: 13px;
}

/* ── Get Estimate row ── */
.cmp-estimate-row .cmp-cell-label {
    font-weight: 700;
    color: #0A0A0A;
    font-size: 14px;
}

.cmp-estimate-row .cmp-cell-val {
    padding: 14px 16px;
    border-bottom: none;
}

/* ── Request Estimate button in value cell ── */
.cmp-req-btn {
    width: auto !important;
    margin: 0 auto;
    background: #FF3E03;
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 10px;
    font-size: var(--fs-18);
    font-weight: var(--fw-500);
    line-height: var(--lh-normal);
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
    display: block;
}

.cmp-req-btn:hover {
    background: #d93200;
}

/* ── Last label row (no border bottom) ── */
.cmp-cell-label.no-border,
.cmp-cell-val.no-border {
    border-bottom: none;
}

/* ── Modal overrides (reuse nfa-landing.css modal styles) ── */
.nfa-modal__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.nfa-modal__field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nfa-modal__field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.nfa-modal__input {
    height: 42px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    color: #111;
    outline: none;
    transition: border-color 0.15s;
}

.nfa-modal__input:focus {
    border-color: #003B86;
}

.nfa-modal__input.has-error {
    border-color: #EF4444;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.nfa-modal__field-error {
    font-size: 12px;
    color: #DC2626;
    font-weight: 500;
    min-height: 16px;
    display: none;
    margin-top: 2px;
    line-height: 1.4;
}

.nfa-modal__rating-wrap {
    margin-bottom: 16px;
}

/* .nfa-modal__rating-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
} */

.nfa-modal__stars {
    display: flex;
    gap: 4px;
    font-size: 24px;
    color: #D1D5DB;
    cursor: pointer;
}

.nfa-modal__stars span.lit {
    color: #00D743;
}

.nfa-modal__msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.msg--success {
    background: #DCFCE7;
    color: #166534;
}

.msg--error {
    background: #FEE2E2;
    color: #991B1B;
}

.btn-loader svg {
    animation: cmp-spin 0.7s linear infinite;
}

.cmp-table {
    width: 100%;
    table-layout: fixed;
}

.cmp-col-label {
    width: 220px;
}

.cmp-col-funder {
    width: auto;
}

@keyframes cmp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .cmp-topbar {
        padding: 0 16px;
        height: 56px;
    }

    .cmp-main {
        padding: 16px 12px 60px;
    }

    .cmp-banner {
        padding: 20px 20px;
        border-radius: 8px;
    }

    .cmp-banner h2 {
        font-size: 22px;
    }

    .cmp-cell-label,
    .cmp-cell-val {
        padding: 12px 12px !important;
        font-size: 13px !important;
    }

    .cmp-col-label {
        width: 140px;
        min-width: 120px;
    }

    .cmp-logo-avatar {
        /*         width: 48px; */
        height: 48px;
        font-size: 20px;
    }

    .nfa-modal__field-row {
        grid-template-columns: 1fr;
    }

    .cmp-tag {
        padding: 3px 7px;
        font-size: 13px;
    }

    .cmp-banner {
        margin-bottom: 20px;
    }
	.cmp-tag{
		white-space: pre-wrap;
	}
}

@media (max-width: 600px) {
    .cmp-topbar__btn {
        display: none;
    }

    .cmp-banner h2 {
        font-size: 18px;
    }
}

/* ============================================================
   COMPARE PAGE — MODAL COMPLETE STYLES
   nfa-landing.css now loads first for base .nfa-modal-overlay
   and .nfa-modal styles. These rules add compare-specific
   field inputs, rating stars, message box, and button loader.
   ============================================================ */

/* Ensure overlay centering works when JS sets display:flex */
.nfa-modal-overlay[style*="flex"] {
    display: flex !important;
}

/* Two-column field rows inside modal */
.nfa-modal__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.nfa-modal__field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nfa-modal__field-group label {
    font-size: var(--fs-16);
    font-weight: var(--fw-600);
    color: #374151;
}

/* Input fields */
.nfa-modal__input {
    height: 42px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    color: #111;
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
    background: #fff;
}

.nfa-modal__input:focus {
    border-color: #003B86;
    box-shadow: 0 0 0 3px rgba(0, 59, 134, 0.08);
}

.nfa-modal__input.has-error {
    border-color: #EF4444;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.nfa-modal__field-error {
    font-size: 12px;
    color: #DC2626;
    font-weight: 500;
    min-height: 16px;
    display: none;
    margin-top: 2px;
    line-height: 1.4;
}

/* Rating stars */
.nfa-modal__rating-wrap {
    margin-bottom: 16px;
}

.nfa-modal__rating-label {
    font-size: var(--fs-16);
    color: #555;
    /*     margin-bottom: 6px; */
    font-weight: var(--fw-600);
}

.nfa-modal__stars {
    display: flex;
    gap: 4px;
    font-size: 26px;
    color: #D1D5DB;
    cursor: pointer;
    user-select: none;
}

.nfa-modal__stars span {
    transition: color 0.1s;
}

.nfa-modal__stars span.lit {
    color: #F5A623;
}

/* Feedback message box */
.nfa-modal__msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.nfa-modal__msg.msg--success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.nfa-modal__msg.msg--error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #fecaca;
}

/* Button loader (SVG spinner inside submit) */
.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-loader svg {
    animation: nfa-spin 0.8s linear infinite;
}
td.cmp-cell-label{
	white-space: normal;
}

@keyframes nfa-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Submit button loading state */
.nfa-modal__btn--submit .btn-text,
.nfa-modal__btn--submit .btn-loader {
    pointer-events: none;
}

/* Responsive: stack fields on mobile */

@media only screen and (max-width:767px)
{
	.cmp-banner h3 {
		margin-bottom:10px;
	}
	.cmp-banner p {
		font-size:15px;
	}
}
@media (max-width: 520px) {
    .nfa-modal__field-row {
        grid-template-columns: 1fr;
    }

    .cmp-req-btn {
        padding: 10px 30px;
    }
}