/* ============================================================
   EduIndex Planos — Frontend CSS
   Compatível com tema Bitrader / dark mode
   ============================================================ */

/* ── Grid de cards ── */
.eidx-planos-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 20px 0 0 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Card base ── */
.eidx-card {
    flex: 1 1 280px;
    max-width: 360px;
    min-width: 260px;
    box-sizing: border-box;
    position: relative;
}

.eidx-card__inner {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.eidx-card:hover .eidx-card__inner {
    border-color: rgba(249,190,8,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Card em destaque ── */
.eidx-card--destaque {
    position: relative;
    margin-top: -12px; /* sobe levemente para dar espaço ao badge */
}

.eidx-card--destaque .eidx-card__inner {
    border: 2px solid #f9be08;
    background: rgba(249,190,8,0.06);
    box-shadow: 0 0 32px rgba(249,190,8,0.15);
}

/* ── Badge "Mais Popular" ── */
.eidx-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f9be08, #ffd234);
    color: #0d1b0f;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(249,190,8,0.45);
    z-index: 2;
}

/* ── Topo ── */
.eidx-card__titulo {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 8px 0;
}

.eidx-card--destaque .eidx-card__titulo {
    color: #f9be08;
}

.eidx-card__preco {
    font-size: 2.4rem;
    font-weight: 700;
    color: #f9be08;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.eidx-card__preco span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.eidx-card__divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 4px;
}

/* ── Lista de itens ── */
.eidx-card__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eidx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.eidx-item__icone {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eidx-item__icone svg {
    width: 18px;
    height: 18px;
}

.eidx-item--ativo .eidx-item__icone {
    color: #00d094;
}

.eidx-item--inativo .eidx-item__icone {
    color: rgba(255,255,255,0.25);
}

.eidx-item--ativo .eidx-item__texto {
    color: rgba(255,255,255,0.88);
}

.eidx-item--inativo .eidx-item__texto {
    color: rgba(255,255,255,0.3);
    text-decoration: line-through;
}

/* ── Botão assinar ── */
.eidx-card__bottom {
    margin-top: auto;
}

.eidx-btn-assinar {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
    text-align: center;
    letter-spacing: 0.5px;
    border: 2px solid #f9be08;
    background: transparent;
    color: #f9be08;
}

.eidx-card--destaque .eidx-btn-assinar {
    background: #f9be08;
    color: #0d1b0f;
}

.eidx-btn-assinar:hover {
    background: #f9be08;
    color: #0d1b0f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,190,8,0.35);
}

.eidx-btn-assinar:active {
    transform: translateY(0);
}

/* ── MODAL OVERLAY ── */
.eidx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: eidxFadeIn 0.2s ease;
}

@keyframes eidxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal box ── */
.eidx-modal {
    background: #12211a;
    border: 1px solid rgba(249,190,8,0.3);
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    animation: eidxSlideUp 0.25s ease;
}

@keyframes eidxSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.eidx-modal__fechar {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.eidx-modal__fechar:hover {
    color: #fff;
}

.eidx-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.eidx-modal__icone {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.eidx-modal__titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.eidx-modal__subtitulo {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.eidx-modal__subtitulo small {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ── Campo CPF ── */
.eidx-campo {
    margin-bottom: 16px;
}

.eidx-campo__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eidx-campo__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: monospace;
}

.eidx-campo__input:focus {
    border-color: #f9be08;
    box-shadow: 0 0 0 3px rgba(249,190,8,0.15);
}

.eidx-campo__input.eidx-input--erro {
    border-color: #f44;
    box-shadow: 0 0 0 3px rgba(255,68,68,0.15);
}

.eidx-campo__erro {
    display: block;
    color: #f66;
    font-size: 0.82rem;
    margin-top: 5px;
    min-height: 18px;
}

/* ── Botão verificar ── */
.eidx-btn-verificar {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f9be08;
    color: #0d1b0f;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.eidx-btn-verificar:hover {
    background: #ffd234;
    transform: translateY(-1px);
}

.eidx-btn-verificar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Resultado bloqueado ── */
.eidx-modal__resultado {
    text-align: center;
    padding: 8px 0;
}

.eidx-resultado__icone {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.eidx-resultado__texto {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.eidx-btn-fechar-resultado {
    padding: 10px 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.eidx-btn-fechar-resultado:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* ── Responsivo ── */
@media (max-width: 640px) {
    .eidx-planos-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .eidx-card {
        max-width: 100%;
        width: 100%;
    }
    .eidx-modal {
        padding: 28px 20px;
    }
}

/* ============================================================
   Etapa 2 — Escolha de pagamento
   ============================================================ */

.eidx-pagamento-opcoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.eidx-btn-pagamento {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.eidx-btn-pagamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Cartão — destaque dourado */
.eidx-btn-cartao {
    border-color: rgba(249,190,8,0.35);
    background: rgba(249,190,8,0.06);
}

.eidx-btn-cartao:hover {
    border-color: #f9be08;
    background: rgba(249,190,8,0.12);
    box-shadow: 0 6px 20px rgba(249,190,8,0.2);
}

.eidx-btn-cartao .eidx-pgto-icone {
    color: #f9be08;
}

/* PIX — destaque verde */
.eidx-btn-pix {
    border-color: rgba(0,208,148,0.35);
    background: rgba(0,208,148,0.06);
}

.eidx-btn-pix:hover {
    border-color: #00d094;
    background: rgba(0,208,148,0.12);
    box-shadow: 0 6px 20px rgba(0,208,148,0.2);
}

.eidx-btn-pix .eidx-pgto-icone {
    color: #00d094;
}

/* Ícone */
.eidx-pgto-icone {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eidx-pgto-icone svg {
    width: 26px;
    height: 26px;
}

/* Info */
.eidx-pgto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eidx-pgto-info strong {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
}

.eidx-pgto-info small {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

/* Seta */
.eidx-pgto-seta {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s, transform 0.2s;
}

.eidx-btn-pagamento:hover .eidx-pgto-seta {
    color: rgba(255,255,255,0.8);
    transform: translateX(3px);
}

/* Botão voltar */
.eidx-btn-voltar {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    display: block;
    transition: color 0.2s;
    margin-top: 4px;
}

.eidx-btn-voltar:hover {
    color: rgba(255,255,255,0.75);
}
