/* ==========================================================================
   US People Search - phone.css
   Reverse-phone page only: Blacklist Status panel, report row, litigator
   banner. Loads after common.css and depends on its tokens.

   Contract: .tcpa-value elements are addressed by numeric index in
   phone-lookup.js; nothing here changes their count or order.
   ========================================================================== */

/* --- Blacklist Status panel ---------------------------------------------- */

.tcpa {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: var(--s-3) 0;
    font-size: 18px;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
    transition: border-color var(--t-base) ease, opacity var(--t-base) ease;
}

/* any flagged row: a red left edge only, never a washed panel */
#tcpa.warn {
    border-left-color: var(--red-mid);
}

/* lookup failed / unreachable: dim the panel */
#tcpa.ie {
    opacity: 0.55;
    border-left-color: var(--line-strong);
}

.tcpa-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    min-height: 44px;
    border-bottom: 1px solid var(--line);
}

.tcpa-row:last-child {
    border-bottom: 0;
}

.tcpa-label {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-bold);
    font-size: 18px;
    line-height: 24px;
    color: var(--navy);
    white-space: nowrap;
}

.tcpa-label sub {
    vertical-align: baseline;
    position: relative;
    top: 1px;
    margin-left: 5px;
    font-family: var(--font) !important;
    font-size: 12px !important;
    font-weight: normal !important;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.tcpa-value {
    flex: 0 1 auto;
    font-family: var(--font-bold);
    font-size: 18px;
    line-height: 24px;
    color: var(--navy);
    text-align: right;
}

.tcpa-value.safe {
    color: var(--green);
}

.tcpa-value.alert {
    color: var(--red-mid);
}

/* --- Report row ----------------------------------------------------------- */
/* Ported verbatim from the legacy phone-lookup.css (the owner's reference
   "old report button"): navy gradient fill drawn by ::before/::after, the red
   background showing through the 1px transparent border as a keyline, white
   Poppins label, icon pinned left and loader pinned right. Only the wrapper
   chrome and the stacking breakpoint are v2. */

@font-face {
    font-family: "Poppins-Medium";
    src: url("/font/Poppins-Medium.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

.input-form.report-container {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 0;
}

form.report {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    row-gap: 10px;
    column-gap: 10px;
    flex-wrap: wrap;
}

form.report > * {
    flex: 1 1 auto;
    min-width: 0;
}

form.report input[type="text"],
form.report select {
    font-family: "Poppins-Medium", sans-serif;
    font-size: 16px;
    line-height: 18px;
    color: var(--navy-3);
    background-color: rgba(255, 255, 255, 0.376);
    padding: 5px 12px;
    width: 200px;
    max-width: none;
    min-height: 40px;
    border: 1px solid #b3b3b3a0;
    border-radius: 0;
    outline: none;
    box-shadow: 0px 1px 2px #849bb400 inset;
    transition: all .15s ease-in-out;
}

form.report input[type="text"]::placeholder {
    color: #9494945b;
}

form.report select {
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    background-image: url(/icon/drop-down-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px 12px;
    background-color: #F3F6F8;
    position: relative;
    padding-right: 40px;
    cursor: pointer;
}

form.report input[type="text"]:focus,
form.report select:focus {
    border: 1px solid #849bb4db !important;
    outline: none;
    box-shadow: 0 0 3px 0 #849bb4c8 inset !important;
}

/* the JS stamps .invalid on #report-phone-input / #reason-input */
form.report input[type="text"].invalid,
form.report select.invalid {
    box-shadow: 0 0 4px inset rgb(255, 0, 0) !important;
    border-color: transparent !important;
}

form.report input[type="text"][readonly] {
    background-color: var(--tint-2);
}

form.report .submit-label {
    user-select: none;
    padding: 5px 30px;
    border: 1px solid transparent;
    background: #fa2121c9;
    min-width: 130px;
    width: 20%;
    max-width: 130px;
    height: 40px;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    cursor: pointer;
    z-index: 1;
    transition: all 0.15s ease-in-out;
}

form.report .submit-label::before,
form.report .submit-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: all 0.15s ease-in-out;
    z-index: -1;
}

form.report .submit-label::before {
    background-image: linear-gradient(to right, #487aabf3, #487aabc7, #487aaba2);
    opacity: 1;
}

form.report .submit-label::after {
    background-image: linear-gradient(to left, #487aabf3, #487aabc7, #487aaba2);
    opacity: 0;
}

form.report .submit-label:hover::before {
    opacity: 0;
}

form.report .submit-label:hover::after {
    opacity: 1;
}

form.report .submit-label .report-icon,
form.report .submit-label .loader-icon {
    padding: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    align-self: center;
    transition: all 0.5s ease-in-out;
}

form.report .submit-label .report-icon {
    width: 35px;
    height: 35px;
    left: 0;
}

form.report .submit-label .loader-icon {
    opacity: 0;
    width: 30px;
    height: 30px;
    right: 0;
}

form.report input[type="submit"] {
    color: whitesmoke;
    font-family: "Poppins-Medium", sans-serif;
    font-size: 15px;
    line-height: 18px;
    font-weight: bold;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

/* the legacy .disabled-btn greyed the control; keep that read here rather
   than the common.css opacity fade so the gradient stays intact */
form.report .submit-label.disabled-btn {
    filter: grayscale(0.6);
    opacity: 1;
    cursor: not-allowed !important;
}

form.report .submit-label.disabled-btn:hover::before {
    opacity: 1;
}

form.report .submit-label.disabled-btn:hover::after {
    opacity: 0;
}

/* The litigator banner (.cx-litigator / .litigator / .litigator-confirmed) is
   emitted by phone-lookup.js only, but it is part of the shared card system,
   so its rules live in common.css next to the other card rules. */

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 640px) {
    .tcpa {
        padding: 0 var(--s-3);
        font-size: 17px;
    }

    .tcpa-row {
        min-height: 42px;
    }

    .tcpa-label,
    .tcpa-value {
        font-size: 17px;
    }

    .tcpa-label sub {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    /* stack: field, reason, then the (old-size) Report control right-aligned */
    form.report {
        flex-direction: column;
        align-items: stretch;
    }

    form.report input[type="text"],
    form.report select {
        width: 100%;
    }

    form.report .submit-label {
        flex: 0 0 auto;
        width: 130px;
        align-self: flex-end;
    }
}

/* tuning pass 2026-09-26: bigger, tighter, weight pinned to the declared 600 */
.tcpa-label, .tcpa-value { font-family: var(--font-bold); font-weight: 600; font-size: 19px; line-height: 22px; }
.tcpa-row { min-height: 42px; }

/* 2026-09-26: row density like the old table (22px line + 4px padding each side). Lives here because
   phone.css loads after common.css and would otherwise re-assert the 42-44px floor. */
.tcpa-row { min-height: 0; padding: 4px var(--s-4); }
@media (max-width: 640px) { .tcpa-row { padding: 4px var(--s-3); } }

/* --- Litigator name search (/litigator/name-search): .ns-* ---------------- */
/* Same geometry as the phone search row (control-h input + navy button on the
   red rule) with a narrow optional row (state, city) beneath, and a Name Match
   panel styled like the Blacklist Status panel. Only that page has this markup. */

.input-form > form.ns-form {
    flex-direction: column;
    align-items: center;
}

.ns-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

label#ns_wrap {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 1 var(--search-w);
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: text;
}

#ns-input {
    display: block;
    width: 100%;
    height: var(--control-h);
    margin: 0;
    padding: 0 var(--s-4);
    font-family: var(--font);
    font-size: var(--fs-input);
    line-height: normal;
    letter-spacing: 0.02em;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-radius: var(--radius);
    outline: none;
    caret-color: var(--red-2);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

#ns-input::placeholder {
    color: var(--muted-2);
    opacity: 0.8;
}

label#ns_wrap:focus-within #ns-input {
    border-color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}

label#ns_wrap.invalid #ns-input {
    border-color: var(--red-mid);
    box-shadow: inset 0 0 0 1px var(--red-mid);
}

#ns-input[readonly] {
    background: var(--tint-2);
}

#ns-invalid {
    position: absolute;
    left: 0;
    top: 100%;
    margin: 6px 0 0;
    font-family: var(--font-bold);
    font-size: var(--fs-sm);
    line-height: 16px;
    color: var(--red-mid);
    white-space: nowrap;
}

#ns-submit {
    position: relative;
    z-index: 1;
    flex: 0 0 84px;
    width: 84px;
    height: var(--control-h);
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}

#ns-submit:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

#ns-submit:focus-visible {
    outline: 2px solid var(--navy-4);
    outline-offset: 2px;
}

#ns-submit:disabled,
#ns-submit.disabled-btn {
    opacity: 0.55;
    cursor: not-allowed !important;
}

#ns-submit:disabled:hover,
#ns-submit.disabled-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
}

/* optional narrowing row; the top margin leaves room for #ns-invalid */
.ns-narrow {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: var(--s-3);
    width: 100%;
    max-width: calc(var(--search-w) + 84px);
    margin-top: var(--s-7);
}

.ns-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.ns-field-label {
    margin-bottom: var(--s-1);
    font-family: var(--font);
    font-size: var(--fs-sm);
    line-height: 16px;
    color: var(--muted);
}

.ns-field select,
.ns-field input {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 var(--s-3);
    font-family: var(--font);
    font-size: 16px;
    line-height: normal;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.ns-field select {
    padding-right: 36px;
    background-image: url(/icon/drop-down-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 10px;
    cursor: pointer;
}

.ns-field select:focus,
.ns-field input:focus {
    border-color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}

.ns-field input[readonly],
.ns-field select:disabled {
    background-color: var(--tint-2);
    cursor: not-allowed;
}

.ns-field input::placeholder {
    color: var(--muted-2);
    opacity: 0.8;
}

/* --- Name Match panel ------------------------------------------------------ */

.ns-results {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.ns-body {
    width: 100%;
    padding: var(--s-4);
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
    transition: border-color var(--t-base) ease, opacity var(--t-base) ease;
}

.ns-results.warn .ns-body {
    border-left-color: var(--red-mid);
}

.ns-results.safe .ns-body {
    border-left-color: var(--green);
}

.ns-results.ie .ns-body {
    opacity: 0.55;
    border-left-color: var(--line-strong);
}

.ns-state[hidden] {
    display: none;
}

.ns-verdict {
    margin: 0 0 var(--s-2);
    font-family: var(--font-bold);
    font-weight: 600;
    font-size: 22px;
    line-height: 26px;
    color: var(--navy);
}

.ns-verdict.alert {
    color: var(--red-mid);
}

.ns-verdict.safe {
    color: var(--green);
}

.ns-rows {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ns-r {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
}

.ns-r:last-child {
    border-bottom: 0;
}

.ns-k,
.ns-v {
    font-family: var(--font-bold);
    font-weight: 600;
    font-size: 19px;
    line-height: 22px;
    color: var(--navy);
}

.ns-k {
    flex: 1 1 auto;
    white-space: nowrap;
}

.ns-v {
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.ns-v.alert {
    color: var(--red-mid);
}

.ns-v.safe {
    color: var(--green);
}

.ns-note,
.ns-empty p,
.ns-error p {
    margin: var(--s-2) 0 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 20px;
    color: var(--muted);
}

.ns-empty p {
    margin: 0;
}

/* skeleton: the same rows, as shimmer bars */
.ns-skeleton .skeleton {
    display: block;
    color: transparent;
}

.ns-skeleton .ns-verdict.skeleton {
    width: 180px;
    height: 20px;
    margin: 3px 0 11px;
}

.ns-skeleton .ns-k.skeleton {
    flex: 0 0 auto;
    width: 64px;
    height: 14px;
    margin: 4px 0;
}

.ns-skeleton .ns-v.skeleton {
    width: 140px;
    height: 14px;
    margin: 4px 0;
}

@media (max-width: 640px) {
    #ns-input {
        font-size: 20px;
        padding: 0 var(--s-3);
    }

    #ns-submit {
        flex: 0 0 68px;
        width: 68px;
        font-size: 22px;
    }

    .ns-narrow {
        max-width: calc(var(--search-w) + 68px);
    }

    .ns-body {
        padding: var(--s-3);
    }

    .ns-verdict {
        font-size: 20px;
        line-height: 24px;
    }

    .ns-k,
    .ns-v {
        font-size: 18px;
        line-height: 21px;
    }
}

@media (max-width: 480px) {
    .ns-narrow {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-skeleton .skeleton {
        animation: none;
    }
}
