/* Scheme & service catalogue pages. Builds on home2.css (schemes-* / scheme-* classes); only ssc-* classes here. */

/* ---------- shared ---------- */
/* clip, not hidden: keeps the sticky header working while stopping sideways scroll */
html:has(.ssc-page),
body:has(.ssc-page) {
    overflow-x: clip;
}

.ssc-hidden {
    display: none !important;
}

.schemes-hero-actions > span > span,
.schemes-hero-actions > a > span {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
}

.ssc-section-title {
    margin: 0 0 14px;
    color: var(--sch-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ssc-btn,
.ssc-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border: 1.5px solid var(--color-brand);
    border-radius: 12px;
    background: var(--color-brand);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .ssc-btn:hover,
    .ssc-more:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(196, 122, 30, .25);
        color: #fff;
    }

    .ssc-btn:disabled,
    .ssc-more:disabled {
        opacity: .7;
        cursor: wait;
        transform: none;
    }

.ssc-btn-outline,
.ssc-more {
    background: #fff;
    color: var(--color-brand);
}

    .ssc-btn-outline:hover,
    .ssc-more:hover {
        color: var(--color-brand);
    }

.ssc-btn-lg {
    min-height: 54px;
    padding: 14px 26px;
    font-size: 16.5px;
}

.ssc-btn-sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
}

.ssc-select,
.ssc-input {
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid var(--sch-border);
    border-radius: 12px;
    background: #fff;
    color: var(--sch-text);
    font-family: inherit;
    font-size: 15px;
}

.ssc-select {
    flex: 0 1 260px;
    min-width: 180px;
}

    .ssc-select:focus,
    .ssc-input:focus {
        outline: none;
        border-color: var(--color-brand);
        box-shadow: 0 0 0 4px rgba(196, 122, 30, .15);
    }

.ssc-attention {
    animation: ssc-attention 1.2s ease 2;
}

@keyframes ssc-attention {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 122, 30, 0); }
    50% { box-shadow: 0 0 0 6px rgba(196, 122, 30, .35); border-color: var(--color-brand); }
}

.ssc-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.ssc-more-wrap-tight {
    margin-top: 14px;
}

.ssc-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--sch-muted);
}

    .ssc-loading i {
        display: block;
        margin-bottom: 10px;
        font-size: 26px;
        color: var(--color-brand);
    }

/* Big "what would you like to do" / next-step buttons */
.ssc-quick {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid var(--sch-border);
    border-radius: 14px;
    background: #fff;
    color: var(--sch-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px var(--color-shadow);
    transition: transform .2s ease, border-color .2s ease;
}

    .ssc-quick i {
        flex: 0 0 auto;
        width: 22px;
        color: var(--color-brand);
        font-size: 18px;
        text-align: center;
    }

    .ssc-quick .fa-whatsapp {
        color: #16a34a;
        font-size: 20px;
    }

    .ssc-quick:hover,
    .ssc-quick:focus-visible {
        transform: translateY(-2px);
        border-color: #f3c6ad;
        color: var(--sch-text);
    }

/* ---------- search page ---------- */
.ssc-tasks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.ssc-task {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--sch-border);
    border-radius: 20px;
    background: #fff;
    color: var(--sch-text);
    text-decoration: none;
    box-shadow: 0 10px 26px var(--color-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .ssc-task:hover,
    .ssc-task:focus-visible {
        transform: translateY(-3px);
        border-color: #f3c6ad;
        box-shadow: 0 16px 34px var(--color-shadow);
        color: var(--sch-text);
    }

.ssc-task-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 24px;
}

.ssc-task-icon-search {
    background: #fff1e6;
    color: var(--color-brand);
}

.ssc-task-icon-elig {
    background: #dcfce7;
    color: #15803d;
}

.ssc-task-icon-kendra {
    background: #e0e7ff;
    color: #4338ca;
}

.ssc-task-text {
    flex: 1;
    min-width: 0;
}

    .ssc-task-text strong {
        display: block;
        font-size: 16.5px;
        font-weight: 800;
        line-height: 1.3;
    }

    .ssc-task-text small {
        display: block;
        margin-top: 4px;
        color: var(--sch-muted);
        font-size: 13.5px;
        line-height: 1.4;
    }

.ssc-task-go {
    color: var(--color-brand);
}

.ssc-find {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--sch-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px var(--color-shadow);
    scroll-margin-top: 90px;
}

.ssc-find-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ssc-searchbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ssc-searchbox > i {
        position: absolute;
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 17px;
        pointer-events: none;
    }

    .ssc-searchbox input {
        flex: 1;
        min-width: 0;
        height: 58px;
        padding: 0 16px 0 48px;
        border: 2px solid var(--sch-border);
        border-radius: 16px;
        background: #fffdf9;
        color: var(--sch-text);
        font-family: inherit;
        font-size: 17px;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .ssc-searchbox input:focus {
            outline: none;
            border-color: var(--color-brand);
            box-shadow: 0 0 0 4px rgba(196, 122, 30, .15);
        }

        .ssc-searchbox input::placeholder {
            color: #94a3b8;
        }

/* Shared Aa (Hindi typing) switch and voice button from input-lang-switch.js / input-speech-to-text.js.
   comon.css is not loaded on public pages, so their look is set here. */
.ssc-page .input-lang-switch,
.ssc-page .input-speech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--sch-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-brand);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

    .ssc-page .input-lang-switch:hover,
    .ssc-page .input-lang-switch:focus-visible,
    .ssc-page .input-speech-btn:hover,
    .ssc-page .input-speech-btn:focus-visible {
        border-color: var(--color-brand);
        outline: none;
        box-shadow: 0 0 0 3px rgba(196, 122, 30, .18);
    }

.ssc-page .input-speech-btn {
    font-size: 17px;
}

    .ssc-page .input-speech-btn.is-listening {
        border-color: #dc2626;
        background: #dc2626;
        color: #fff;
        animation: ssc-pulse 1.1s ease infinite;
    }

@keyframes ssc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .35); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.ssc-page .input-speech-note {
    display: none;
    margin-top: 6px;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

    .ssc-page .input-speech-note.is-shown {
        display: block;
    }

    .ssc-page .input-speech-note.is-live {
        color: #b45309;
    }

.ssc-page .input-lang-suggestions {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}

    .ssc-page .input-lang-suggestions .suggestion-item.bg-primary {
        background: var(--color-brand) !important;
    }

.ssc-searchbox .input-lang-mount {
    flex: 0 0 auto;
}

.ssc-searchbox .input-lang-switch,
.ssc-searchbox .input-speech-btn {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
}

/* The suggestion list drops below the 58px search box; the voice note sits under the row. */
.ssc-searchbox .input-lang-suggestions {
    top: 62px !important;
}

/* Error/status under the search row only when needed (listening uses mic pulse, not this line). */
.ssc-searchbox .input-speech-note {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: #b45309;
    line-height: 1.35;
    z-index: 2;
}

.ssc-search-go {
    flex: 0 0 auto;
    height: 58px;
    padding: 0 26px;
    border: 0;
    border-radius: 16px;
    background: var(--color-brand);
    color: #fff;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
}

    .ssc-search-go:hover {
        filter: brightness(.95);
    }

.ssc-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.ssc-popular-label {
    margin-right: 4px;
    color: var(--sch-muted);
    font-size: 13.5px;
    font-weight: 700;
}

.ssc-pop {
    min-height: 38px;
    padding: 7px 14px;
    border: 1.5px solid #f3c6ad;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a4d0b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

    .ssc-pop:hover,
    .ssc-pop:focus-visible {
        background: var(--color-brand);
        border-color: var(--color-brand);
        color: #fff;
    }

.ssc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--sch-border);
}

    .ssc-filters .schemes-filters {
        flex: 1 1 100%;
    }

    .ssc-filters .ssc-select {
        flex: 1 1 0;
    }

.ssc-either {
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
}

.ssc-either-label {
    flex: 0 1 280px;
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
}

.ssc-either .select2-container {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
}

.ssc-either-or {
    flex: 0 0 auto;
    min-width: 2.4em;
    text-align: center;
    font-weight: 800;
    color: #c2410c;
}

.ssc-disclaimer {
    margin: 0;
    padding: 14px 18px;
    text-align: center;
    background: #fff7ed;
    border-top: 3px solid #e8782a;
    color: #9a3412;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
}

.ssc-disclaimer-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.ssc-disclaimer-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.ssc-table-foot {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.scheme-note .ssc-disclaimer,
.ssc-disclaimer-card {
    border: 1px solid #fdba74;
    border-top-width: 3px;
    border-radius: 14px;
}

/* home2 .scheme-note strong { display:block } was stacking "अस्वीकरण -" alone; keep label inline + center. */
.scheme-note .ssc-disclaimer {
    text-align: center;
}

.scheme-note .ssc-disclaimer-label {
    display: inline;
    margin-bottom: 0;
}

/* Must beat home2 `.scheme-card p` (flex, font-size 14px, line-height 1.65). */
.scheme-card p.ssc-disclaimer,
.scheme-card p.ssc-disclaimer-card {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    align-self: stretch;
    padding: 14px 18px;
    color: #9a3412;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
}

.ssc-disclaimer-card {
    margin-top: 10px;
}

    .ssc-filters .filter-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 44px;
        font-size: 14.5px;
    }

.ssc-topics-wrap {
    margin-bottom: 30px;
}

.ssc-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.ssc-topic {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--sch-border);
    border-radius: 16px;
    background: #fff;
    color: var(--sch-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 16px var(--color-shadow);
    transition: transform .2s ease, border-color .2s ease;
}

    .ssc-topic:hover,
    .ssc-topic:focus-visible {
        transform: translateY(-2px);
        border-color: #f3c6ad;
    }

.ssc-topic-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--color-brand);
    font-size: 19px;
}

.ssc-topic[data-category="women"] .ssc-topic-icon { background: #fce7f3; color: #db2777; }
.ssc-topic[data-category="agriculture"] .ssc-topic-icon { background: #dcfce7; color: #16a34a; }
.ssc-topic[data-category="employment"] .ssc-topic-icon { background: #f3e8ff; color: #9333ea; }
.ssc-topic[data-category="education"] .ssc-topic-icon { background: #eff6ff; color: #2563eb; }
.ssc-topic[data-category="housing"] .ssc-topic-icon { background: #fffbeb; color: #d97706; }

.ssc-topic-name {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.ssc-topic-count {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.ssc-result-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 18px;
    color: var(--sch-muted);
    font-size: 15px;
    font-weight: 600;
    scroll-margin-top: 90px;
}

    .ssc-result-info:empty {
        display: none;
    }

    .ssc-result-info .is-error,
    .ssc-result-info.is-error {
        color: #b91c1c;
    }

.ssc-count-text {
    color: var(--sch-text);
    font-weight: 800;
}

.ssc-corrected b {
    color: var(--color-brand);
}

.ssc-active-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ssc-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 12px;
    border: 1.5px solid var(--color-brand);
    border-radius: 999px;
    background: #fff7ed;
    color: #9a4d0b;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.ssc-no-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

/* ---------- cards ---------- */
.ssc-card-dept {
    margin: -4px 0 10px;
    color: var(--color-text-nav-lt);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.scheme-card h3.ssc-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.scheme-card p.ssc-card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ssc-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 800;
}

.scheme-card-link:hover .ssc-card-more {
    text-decoration: underline;
}

.ssc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.ssc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border-light);
    background: #fffaf3;
    color: var(--color-text-nav);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.ssc-badge-lsg {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.ssc-badge-kind-service {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.scheme-card[data-kind="service"] .scheme-tag {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.scheme-card[data-kind="scheme"] .scheme-tag {
    background: #fff7ed;
    color: var(--color-brand);
    border-color: #f3c6ad;
}

/* ---------- item page ---------- */
.ssc-item-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -12px 0 22px;
}

.ssc-item-name-en {
    margin: -18px 0 18px;
    text-align: center;
    color: #475569;
    font-size: 15px;
}

.ssc-item-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.ssc-item-quick:has(> :only-child) {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.ssc-item-quick .ssc-quick {
    justify-content: center;
    text-align: center;
}

.ssc-row-icon {
    width: 22px;
    margin-right: 8px;
    color: var(--color-brand);
    text-align: center;
}

/* home2.css gives this table min-width 720px; the page column is narrower, so it scrolled sideways */
.ssc-details .scheme-details-table {
    min-width: 0;
}

    .ssc-details .scheme-details-table .scheme-details-value {
        overflow-wrap: anywhere;
    }

.ssc-details .ssc-row-key .scheme-details-label {
    background: #fff7ed;
}

.ssc-doc-list {
    margin: 0;
    padding-left: 20px;
}

    .ssc-doc-list li + li {
        margin-top: 4px;
    }

.ssc-doc-note {
    margin-top: 8px;
    color: #b45309;
    font-size: 13px;
    font-weight: 600;
}

.ssc-next-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.scheme-details-empty .ssc-btn {
    margin-top: 18px;
}

/* ---------- eligibility form ---------- */
.ssc-form-card {
    padding: 26px;
    border: 1px solid var(--sch-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px var(--color-shadow);
    scroll-margin-top: 90px;
}

    .ssc-form-card h2 {
        margin: 0 0 6px;
        color: var(--sch-text);
        font-size: 20px;
        font-weight: 800;
    }

.ssc-form-hint {
    margin: 0 0 18px;
    color: var(--sch-muted);
    font-size: 14.5px;
}

.ssc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
}

.ssc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--sch-text);
    font-size: 14px;
    font-weight: 700;
}

    .ssc-field-label i {
        width: 18px;
        margin-right: 4px;
        color: var(--color-brand);
        text-align: center;
    }

    .ssc-field input:not([type="radio"]),
    .ssc-field select {
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        border: 1.5px solid var(--sch-border);
        border-radius: 12px;
        background: #fff;
        color: var(--sch-text);
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
    }

        .ssc-field input:focus,
        .ssc-field select:focus {
            outline: none;
            border-color: var(--color-brand);
            box-shadow: 0 0 0 4px rgba(196, 122, 30, .15);
        }

.ssc-field-wide {
    grid-column: 1 / -1;
}

.ssc-chips-label {
    margin: 20px 0 8px;
    color: var(--sch-text);
    font-size: 14px;
    font-weight: 700;
}

.ssc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ssc-chip {
    min-height: 42px;
    padding: 8px 16px;
    border: 1.5px solid var(--sch-border);
    border-radius: 999px;
    background: #fff;
    color: var(--sch-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .ssc-chip[aria-pressed="true"] {
        border-color: var(--color-brand);
        background: var(--color-brand);
        color: #fff;
    }

        .ssc-chip[aria-pressed="true"]::before {
            content: "\2713  ";
        }

.ssc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* ---------- eligibility results ---------- */
.ssc-results {
    margin-top: 30px;
    scroll-margin-top: 90px;
}

.ssc-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.ssc-results-title {
    margin: 0;
    color: var(--sch-text);
    font-size: 22px;
    font-weight: 800;
}

    .ssc-results-title:empty {
        display: none;
    }

.ssc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ssc-tab {
    min-height: 44px;
}

    .ssc-tab .ssc-count {
        display: inline-block;
        min-width: 24px;
        margin-left: 6px;
        padding: 1px 7px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .07);
        font-size: 12px;
        text-align: center;
    }

.filter-btn.active .ssc-count {
    background: rgba(255, 255, 255, .25);
}

.ssc-verdict {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.ssc-verdict-eligible {
    background: #dcfce7;
    color: #166534;
}

.ssc-verdict-likely {
    background: #e0f2fe;
    color: #075985;
}

.ssc-verdict-check {
    background: #fef3c7;
    color: #92400e;
}

.ssc-verdict-not_eligible,
.ssc-group-not_eligible {
    background: #fee2e2;
    color: #991b1b;
}

.ssc-group-check {
    background: #fef3c7;
    color: #92400e;
}

.ssc-group-other {
    background: #eef0f4;
    color: #475569;
}

.ssc-field-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13.5px;
    font-weight: 700;
}

    .ssc-field-error[hidden] {
        display: none;
    }

.ssc-field input[aria-invalid="true"] {
    border-color: #dc2626;
}

/* English view: text that exists only in Hindi says so */
.ssc-hi-only {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 4px;
    background: #eef0f4;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.ssc-en-note {
    margin: 0 0 12px;
    color: var(--sch-muted);
    font-size: 13.5px;
}

html[lang="hi"] .ssc-page .ssc-en-only {
    display: none !important;
}

.ssc-reasons {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

    .ssc-reasons strong {
        display: block;
        margin: 8px 0 3px;
        color: var(--sch-text);
        font-size: 13px;
    }

    .ssc-reasons ul {
        margin: 0;
        padding-left: 18px;
        color: #475569;
    }

.ssc-reasons-fail ul {
    color: #991b1b;
}

.ssc-reasons-check ul {
    color: #92400e;
}

.scheme-card .ssc-card-link {
    margin-top: 14px;
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

    .scheme-card .ssc-card-link:hover {
        text-decoration: underline;
    }

.ssc-results .scheme-card {
    min-height: 0;
}

/* Row cards: spare height ABOVE the disclaimer box (not inside it). */
.ssc-results .scheme-card > p.ssc-card-summary {
    flex: 0 0 auto;
}

.ssc-results .scheme-card > p.ssc-disclaimer-card {
    flex: 0 0 auto;
    margin-top: auto;
}

.ssc-results .scheme-card .ssc-card-link {
    flex: 0 0 auto;
    margin-top: 12px;
}

/* ---------- nearest kendra ---------- */
.ssc-kendra {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--sch-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px var(--color-shadow);
    scroll-margin-top: 90px;
}

.ssc-kendra-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

    .ssc-kendra-head > i {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #fff1e6;
        color: var(--color-brand);
        font-size: 21px;
    }

    .ssc-kendra-head h2 {
        margin: 0 0 4px;
        color: #0f172a;
        font-size: 21px;
        font-weight: 800;
    }

    .ssc-kendra-head p {
        margin: 0;
        color: #475569;
        font-size: 14.5px;
        line-height: 1.55;
    }

.ssc-kendra-ways {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 20px;
}

.ssc-kendra-way {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #f1e4d4;
    border-radius: 16px;
    background: #fffaf3;
}

    .ssc-kendra-way .ssc-btn {
        width: 100%;
    }

.ssc-kendra-way-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sch-text);
    font-size: 15px;
    font-weight: 800;
}

.ssc-step {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.ssc-kendra-or {
    display: grid;
    place-items: center;
    color: var(--sch-muted);
    font-weight: 800;
}

    .ssc-kendra-or span {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1.5px solid var(--sch-border);
        border-radius: 50%;
        background: #fff;
    }

.ssc-kendra-place {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.ssc-kendra-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ssc-kendra-field-wide {
    grid-column: 1 / -1;
}

.ssc-kendra-label {
    color: #475569;
    font-size: 13.5px;
    font-weight: 700;
}

.ssc-kendra-field .ssc-select {
    width: 100%;
    min-width: 0;
}

.ssc-kendra-area {
    display: flex;
    gap: 8px;
    min-height: 48px;
}

    .ssc-kendra-area label {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        border: 1.5px solid var(--sch-border);
        border-radius: 12px;
        background: #fff;
        color: var(--sch-text);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

        .ssc-kendra-area label:has(input:checked) {
            border-color: var(--color-brand);
            background: #fff7ed;
            color: #9a4d0b;
        }

        .ssc-kendra-area label:has(input:focus-visible) {
            box-shadow: 0 0 0 4px rgba(196, 122, 30, .18);
        }

    .ssc-kendra-area input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--color-brand);
    }

/* ---------- select2 (all catalogue dropdowns) ---------- */
.ssc-page .select2-container {
    min-width: 0;
    font-family: inherit;
}

.ssc-filters .select2-container {
    flex: 1 1 0;
    min-width: 180px;
}

.ssc-page .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1.5px solid var(--sch-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .ssc-page .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding: 0 38px 0 14px;
        color: var(--sch-text);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.3;
    }

    .ssc-either .select2-container--default .select2-selection--single .select2-selection__rendered {
        text-align: center;
        padding-left: 36px;
        padding-right: 36px;
    }

    .ssc-page .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 0;
        right: 8px;
        height: 100%;
    }

.ssc-page .select2-container--default.select2-container--focus .select2-selection--single,
.ssc-page .select2-container--default.select2-container--open .select2-selection--single,
.ssc-page .select2-container--default .select2-selection--single:focus {
    border-color: var(--color-brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(196, 122, 30, .15);
}

.ssc-page .select2-container--default.select2-container--disabled .select2-selection--single {
    background: #f8fafc;
    cursor: not-allowed;
}

    .ssc-page .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
        color: #94a3b8;
    }

.ssc-page .select2-selection.ssc-attention {
    animation: ssc-attention 1.2s ease 2;
}

/* The open list is placed at the end of <body>, outside .ssc-page. */
body:has(.ssc-page) .select2-dropdown {
    border: 1.5px solid var(--color-brand, #c47a1e);
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

body:has(.ssc-page) .select2-container--open .select2-dropdown--below {
    margin-top: 4px;
}

body:has(.ssc-page) .select2-container--open .select2-dropdown--above {
    margin-top: -4px;
}

body:has(.ssc-page) .select2-search--dropdown {
    padding: 8px;
}

    body:has(.ssc-page) .select2-search--dropdown .select2-search__field {
        height: 42px;
        padding: 6px 12px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: 15px;
    }

        body:has(.ssc-page) .select2-search--dropdown .select2-search__field:focus {
            border-color: var(--color-brand, #c47a1e);
            outline: none;
        }

body:has(.ssc-page) .select2-results__option {
    padding: 9px 14px;
    font-size: 15px;
    line-height: 1.35;
}

body:has(.ssc-page) .select2-results > .select2-results__options {
    max-height: 300px;
}

body:has(.ssc-page) .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--color-brand, #c47a1e);
    color: #fff;
}

body:has(.ssc-page) .select2-container--default .select2-results__option--selected {
    background: #fff7ed;
    color: #9a4d0b;
    font-weight: 700;
}

.ssc-kendra-chips {
    margin-top: 18px;
}

.ssc-kendra-status {
    margin: 16px 0 0;
    color: #0f172a;
    font-size: 15.5px;
    font-weight: 800;
}

    .ssc-kendra-status:empty {
        display: none;
    }

    .ssc-kendra-status.is-error {
        color: #b91c1c;
        font-weight: 700;
    }

.ssc-kendra-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .ssc-kendra-list:not(:empty) {
        margin-top: 14px;
    }

.ssc-kendra-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.ssc-kendra-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ssc-kendra-type {
    padding: 2px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12.5px;
    font-weight: 700;
}

.ssc-kendra-type-2 {
    background: #dcfce7;
    color: #166534;
}

.ssc-kendra-type-3 {
    background: #fef3c7;
    color: #92400e;
}

.ssc-kendra-dist {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

    .ssc-kendra-dist i {
        color: var(--color-brand);
    }

.ssc-kendra-name {
    color: #0f172a;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.35;
}

.ssc-kendra-addr {
    flex: 1;
    margin: 6px 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

    .ssc-kendra-addr i {
        margin-right: 4px;
        color: #94a3b8;
    }

.ssc-kendra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .ssc-kendra-links a {
        display: inline-flex;
        flex: 1 1 130px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1.5px solid var(--color-brand);
        border-radius: 12px;
        background: #fff;
        color: var(--color-brand);
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
    }

        .ssc-kendra-links a.ssc-kendra-call {
            border-color: #16a34a;
            background: #16a34a;
            color: #fff;
        }

        .ssc-kendra-links a:hover,
        .ssc-kendra-links a:focus-visible {
            filter: brightness(.96);
        }

.ssc-kendra-phone {
    margin-left: 4px;
    font-weight: 600;
    letter-spacing: .02em;
}

.ssc-kendra-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

/* ---------- tablet ---------- */
@media (max-width: 992px) {
    .ssc-tasks {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ssc-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ssc-item-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ssc-kendra-ways {
        grid-template-columns: 1fr;
    }

    .ssc-kendra-or span {
        width: auto;
        height: auto;
        padding: 2px 14px;
        border-radius: 999px;
    }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
    .ssc-section-title {
        font-size: 18px;
    }

    .ssc-task {
        padding: 14px;
        border-radius: 16px;
    }

    .ssc-task-icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .ssc-find,
    .ssc-form-card,
    .ssc-kendra {
        padding: 16px;
        border-radius: 18px;
    }

    /* Row 1: input + search icon. Row 2: Aa / mic + Search.
       Mount must not stay at order 0 or the absolute 🔍 sits on the speech circle. */
    .ssc-searchbox {
        flex-wrap: wrap;
    }

        .ssc-searchbox > i {
            top: 28px;
        }

        .ssc-searchbox input {
            flex: 1 1 100%;
            order: 1;
            height: 56px;
        }

        .ssc-searchbox .input-lang-mount {
            order: 2;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

    .ssc-search-go {
        flex: 1;
        order: 3;
        min-width: 0;
        height: 50px;
    }

    .ssc-popular {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .ssc-popular::-webkit-scrollbar {
            display: none;
        }

    .ssc-popular-label {
        flex: 0 0 auto;
    }

    .ssc-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .ssc-either {
        flex-direction: column;
        align-items: stretch;
    }

    .ssc-either-label {
        flex: 0 0 auto;
    }

    .ssc-either .select2-container {
        width: 100% !important;
        flex: 0 0 auto;
    }

    .ssc-either-or {
        width: 100%;
    }

        .ssc-filters .select2-container {
            flex: 0 0 auto;
            min-width: 0;
        }

    .ssc-filters .schemes-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible;
    }

    .ssc-filters .filter-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ssc-select {
        flex: 1 1 auto;
        width: 100%;
    }

    .ssc-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ssc-topic {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: 0;
        padding: 12px;
    }

    .ssc-topic-name {
        font-size: 14px;
    }

    .ssc-form-grid {
        grid-template-columns: 1fr;
    }

    /* 16px stops iPhone from zooming into the field */
    .ssc-field input,
    .ssc-field select,
    .ssc-select,
    .ssc-input,
    .ssc-searchbox input {
        font-size: 16px;
    }

    .ssc-form-actions .ssc-btn,
    .ssc-no-actions .ssc-btn {
        width: 100%;
    }

    .ssc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .ssc-results-title {
        font-size: 19px;
    }

    .ssc-next-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ssc-item-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        .ssc-item-quick .ssc-quick {
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            padding: 12px 8px;
            font-size: 14px;
            text-align: center;
        }

            .ssc-item-quick .ssc-quick i {
                font-size: 20px;
            }

    .ssc-item-name-en {
        margin-top: -14px;
    }

    /* Details table: label above value */
        .ssc-details .scheme-details-table,
        .ssc-details .scheme-details-table tbody,
        .ssc-details .scheme-details-table tr,
        .ssc-details .scheme-details-table th,
        .ssc-details .scheme-details-table td {
            display: block;
            width: 100%;
        }

            .ssc-details .scheme-details-table th,
            .ssc-details .scheme-details-table td {
                border-width: 0 0 1px;
                padding: 12px 14px;
            }

            .ssc-details .scheme-details-table .scheme-details-label {
                padding-bottom: 8px;
                font-size: 15px;
            }

            .ssc-details .scheme-details-table .scheme-details-dept-label {
                padding-bottom: 2px;
                font-size: 13px;
                opacity: .9;
            }

            .ssc-details .scheme-details-table .scheme-details-dept-value {
                padding-top: 0;
                font-size: 16px;
            }

    .ssc-kendra-head h2 {
        font-size: 19px;
    }

    .ssc-kendra-list {
        grid-template-columns: 1fr;
    }

    .ssc-kendra-place {
        grid-template-columns: 1fr;
    }

    .ssc-page .select2-container--default .select2-selection--single .select2-selection__rendered,
    body:has(.ssc-page) .select2-search--dropdown .select2-search__field,
    body:has(.ssc-page) .select2-results__option {
        font-size: 16px;
    }
}
