/* Estuda Plus | Escolas - visual público independente do legado */
:root {
    --ep-navy: #023047;
    --ep-blue: #1479a7;
    --ep-text: #21384a;
    --ep-muted: #627585;
    --ep-border: #dee8ef;
    --ep-bg: #f5f8fb;
}
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--ep-bg);
    color: var(--ep-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
a {
    color: inherit;
    text-decoration: none;
}
button, input, select {
    font: inherit;
}
.ep-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}
.ep-header {
    background: var(--ep-navy);
    color: #fff;
}
.ep-header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ep-header img {
    display: block;
    width: 144px;
    height: auto;
}
.ep-header-label {
    font-size: 13px;
    font-weight: 600;
    opacity: .88;
}
.ep-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.ep-top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 22px;
    font-size: 13px;
    font-weight: 700;
}
.ep-top-nav a {
    color: rgba(255, 255, 255, .85);
    transition: color .2s ease;
}
.ep-top-nav a:hover,
.ep-top-nav a:focus-visible,
.ep-top-nav .ep-top-active {
    color: #fff;
}
.ep-top-active {
    text-decoration: underline;
    text-decoration-color: #fb8500;
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
}
.ep-intro {
    padding: 30px 0 24px;
    background: linear-gradient(120deg, #eef7fc, #fff);
    border-bottom: 1px solid var(--ep-border);
}
.ep-eyebrow {
    margin: 0 0 8px;
    color: var(--ep-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ep-intro h1 {
    margin: 0;
    color: #173e57;
    font-size: clamp(25px, 3.3vw, 37px);
    line-height: 1.15;
}
.ep-intro p:not(.ep-eyebrow) {
    margin: 10px 0 0;
    color: var(--ep-muted);
}
.ep-preview {
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff2cf;
    color: #745000 !important;
    font-size: 13px;
}
.ep-listing {
    padding-top: 24px;
    padding-bottom: 48px;
}
.ep-search-panel {
    padding: 20px;
    border: 1px solid var(--ep-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 23px rgba(2, 48, 71, .045);
}
.ep-search-panel label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 750;
    color: #304e60;
}
.ep-search-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid #cbdce7;
    border-radius: 11px;
    background: #fff;
}
.ep-search-wrap svg {
    flex: none;
    fill: none;
    stroke: #4684a4;
    stroke-width: 2;
    stroke-linecap: round;
}
.ep-search-wrap input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ep-text);
    font-size: 15px;
}
.ep-search-wrap:focus-within {
    outline: 3px solid rgba(20, 121, 167, .17);
    border-color: #1479a7;
}
.ep-results-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 26px 0 17px;
}
.ep-results-heading h2 {
    margin: 0;
    font-size: 21px;
    color: #173e57;
}
.ep-results-heading p {
    margin: 0;
    color: var(--ep-muted);
    font-size: 13px;
}
.ep-school-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.ep-school-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ep-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(2, 48, 71, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.ep-school-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(2, 48, 71, .12);
}
.ep-school-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
}
.ep-school-card a:focus-visible {
    outline: 3px solid #fb8500;
    outline-offset: -3px;
}
.ep-school-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background: #fff;
}
.ep-school-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ep-school-image > span {
    display: grid;
    place-items: center;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 14px;
    background: #e9f4fa;
    color: var(--ep-blue);
    font-size: 27px;
    font-weight: 800;
}
.ep-school-details {
    flex: 1;
    padding: 9px 11px 12px;
    text-align: center;
}
.ep-school-details h3 {
    margin: 0;
    color: #163d56;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.ep-school-details p {
    margin: 6px 0 0;
    color: var(--ep-muted);
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.ep-school-action {
    display: flex;
    justify-content: center;
    gap: 9px;
    align-items: center;
    min-height: 38px;
    padding: 7px 9px;
    background: var(--ep-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}
.ep-school-card:hover .ep-school-action {
    background: #075477;
}
.ep-empty {
    padding: 28px 16px;
    border: 1px dashed #cbdce7;
    border-radius: 14px;
    background: #fff;
    color: var(--ep-muted);
    text-align: center;
}
[hidden] {
    display: none !important;
}
.ep-footer {
    padding: 38px 0 0;
    background: var(--ep-navy);
    color: #fff;
}
.ep-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding-bottom: 34px;
}
.ep-footer-brand img {
    display: block;
    width: 148px;
    height: auto;
}
.ep-footer-brand p {
    max-width: 340px;
    margin: 15px 0 0;
    color: #c5d9e4;
    font-size: 13px;
    line-height: 1.65;
}
.ep-footer-about {
    margin-top: 8px !important;
}
.ep-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}
.ep-footer-links h2 {
    margin: 2px 0 6px;
    color: #fff;
    font-size: 14px;
}
.ep-footer-links a {
    color: #c5d9e4;
    font-size: 13px;
    line-height: 1.45;
}
.ep-footer-links a:hover,
.ep-footer-links a:focus-visible {
    color: #fff;
    text-decoration: underline;
}
.ep-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 18px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.ep-footer-bottom span {
    font-size: 11px;
    color: #bad0dc;
}
@media (max-width: 760px) {
    .ep-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 17px;
    }
    .ep-footer-brand {
        grid-column: 1 / -1;
    }
    .ep-footer-grid .ep-footer-links:last-of-type {
        grid-column: 1 / -1;
    }
    .ep-top-nav {
        gap: 8px 12px;
        font-size: 12px;
    }
    .ep-top-nav a:not(.ep-top-active) {
        display: none;
    }
}
@media (max-width: 1050px) {
    .ep-school-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .ep-school-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 520px) {
    .ep-container {
        width: calc(100% - 24px);
    }
    .ep-header-inner {
        min-height: 62px;
    }
    .ep-header img {
        width: 124px;
    }
    .ep-header-label {
        font-size: 11px;
    }
    .ep-intro {
        padding: 22px 0 18px;
    }
    .ep-listing {
        padding-top: 16px;
    }
    .ep-search-panel {
        padding: 14px;
    }
    .ep-results-heading {
        margin-top: 21px;
    }
    .ep-school-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }
    .ep-school-image {
        padding: 8px;
    }
    .ep-school-details {
        padding: 7px 7px 9px;
    }
    .ep-school-details h3 {
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Seleção de estados da listagem pública do Estuda Plus. */
.ep-intro .ep-state-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 880px;
    margin-top: 23px;
}

.ep-intro .ep-state-option {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 17px;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: #ffffff;
    color: #193e57;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(15, 58, 83, 0.055);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ep-intro .ep-state-option:hover,
.ep-intro .ep-state-option:focus-visible {
    border-color: #4a9bd1;
    box-shadow: 0 12px 28px rgba(15, 85, 136, 0.14);
    transform: translateY(-2px);
}

.ep-intro .ep-state-option:focus-visible {
    outline: 3px solid #a0d2f2;
    outline-offset: 3px;
}

.ep-intro .ep-state-abbr {
    display: grid;
    flex: 0 0 43px;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: #eaf4fb;
    color: #0c64a3;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.ep-intro .ep-state-name {
    min-width: 0;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
}

.ep-intro .ep-state-arrow {
    margin-left: auto;
    color: #0e71b5;
    font-size: 21px;
    line-height: 1;
}

@media (max-width: 760px) {
    .ep-intro .ep-state-picker {
        grid-template-columns: 1fr;
        gap: 11px;
        margin-top: 20px;
    }

    .ep-intro .ep-state-option {
        min-height: 67px;
        padding: 12px 15px;
    }
}

/* Lista de espera das escolas parceiras sem vagas em exibição. */
.ep-waitlist {
    padding-bottom: 40px;
}

/* Faixa de acesso a lista de espera: visivel, sem competir com as vagas. */
.ep-waitlist-collapse {
    overflow: hidden;
    border: 1px solid #7dbad3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(2, 48, 71, .07);
}

.ep-waitlist-collapse > summary {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 116px;
    padding: 22px 28px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(105deg, #e9f5fc 0%, #f6fbfe 68%, #ffffff 100%);
    transition: background .2s ease;
}

.ep-waitlist-collapse > summary:hover {
    background: linear-gradient(105deg, #deeff9 0%, #f2f9fd 68%, #ffffff 100%);
}

.ep-waitlist-collapse > summary:focus-visible {
    outline: 3px solid #1479a7;
    outline-offset: -3px;
}

.ep-waitlist-collapse > summary::-webkit-details-marker {
    display: none;
}

.ep-waitlist-summary-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d8eaf3;
    color: #1479a7;
}

.ep-waitlist-summary-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ep-waitlist-summary-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

.ep-waitlist-summary-text strong {
    color: #123f5b;
    font-size: 20px;
    line-height: 1.3;
}

.ep-waitlist-summary-text > span {
    color: #537386;
    font-size: 14px;
}

.ep-waitlist-summary-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 9px 11px 9px 18px;
    border-radius: 999px;
    background: #07557d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.ep-waitlist-chevron {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.ep-waitlist-collapse[open] .ep-waitlist-chevron {
    transform: rotate(180deg);
}

.ep-waitlist-content {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--ep-border);
}


/* Pesquisa independente das escolas na lista de espera */
.ep-waitlist-search {
    margin-bottom: 18px;
}

.ep-waitlist-search label {
    display: block;
    margin-bottom: 8px;
    color: #304e60;
    font-size: 13px;
    font-weight: 750;
}

.ep-waitlist-search-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid #cbdce7;
    border-radius: 11px;
    background: #ffffff;
}

.ep-waitlist-search-wrap svg {
    flex: none;
    fill: none;
    stroke: #4684a4;
    stroke-width: 2;
    stroke-linecap: round;
}

.ep-waitlist-search-wrap input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ep-text);
    font-size: 15px;
}

.ep-waitlist-search-wrap:focus-within {
    border-color: var(--ep-blue);
    outline: 3px solid rgba(20, 121, 167, .17);
}

.ep-waitlist-search-count {
    margin: 7px 0 0;
    color: var(--ep-muted);
    font-size: 12px;
}

.ep-waitlist-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #cbdce7;
    border-radius: 12px;
    color: var(--ep-muted);
    text-align: center;
}

.ep-waitlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ep-waitlist-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ep-border);
    border-radius: 13px;
    background: #ffffff;
    transition: border-color .18s ease, background .18s ease;
}

.ep-waitlist-card:hover,
.ep-waitlist-card:focus-visible {
    border-color: var(--ep-blue);
    background: #f6fbfe;
}

.ep-waitlist-card:focus-visible {
    outline: 2px solid var(--ep-blue);
    outline-offset: 2px;
}

.ep-waitlist-logo {
    display: grid;
    flex: 0 0 65px;
    place-items: center;
    width: 65px;
    height: 65px;
    padding: 5px;
    border-radius: 10px;
    background: #f4f8fa;
}

.ep-waitlist-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ep-waitlist-logo > span {
    color: var(--ep-blue);
    font-size: 15px;
    font-weight: 800;
}

.ep-waitlist-school {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.ep-waitlist-school strong {
    color: #173e57;
    font-size: 13px;
    line-height: 1.35;
}

.ep-waitlist-school small {
    color: var(--ep-muted);
    font-size: 12px;
}

.ep-waitlist-action {
    margin-top: 3px;
    color: #0d6ba0;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 850px) {
    .ep-waitlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ep-waitlist-collapse > summary {
        gap: 12px;
        min-height: 100px;
        padding: 18px 15px;
    }

    .ep-waitlist-summary-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 12px;
    }

    .ep-waitlist-summary-icon svg {
        width: 25px;
        height: 25px;
    }

    .ep-waitlist-summary-action {
        padding: 7px;
        font-size: 0;
    }

    .ep-waitlist-chevron {
        width: 29px;
        height: 29px;
    }

    .ep-waitlist-content {
        padding: 15px;
    }

    .ep-waitlist-grid {
        grid-template-columns: 1fr;
    }

    .ep-waitlist-summary-text strong {
        font-size: 17px;
    }
}
