/* ===== Lazy Data – Step Planos (Sneat + Bootstrap 5.3.3) ===== */

/* Cards custom-option uniformes e com foco consistente */
#plans-grid .custom-option {
    border-radius: 1rem;
    transition: .15s ease;
}

#plans-grid .custom-option-content {
    display: flex;
    height: 100%;
    width: 100%;
    padding: .95rem !important;
}

#plans-grid .custom-option:hover {
    transform: translateY(-1px);
}

#plans-grid .plan-col {
    display: flex;
    min-width: 0;
}

#plans-grid .plan-option {
    position: relative;
    overflow: hidden;
    width: 100%;
    isolation: isolate;
}

#plans-grid .plan-option.form-check {
    padding-left: 0;
}

#plans-grid .plan-option.plan-option-recommended {
    overflow: visible;
    border-color: rgba(105, 108, 255, .48) !important;
    background: var(--bs-card-bg);
    box-shadow:
        0 .5rem 1.2rem rgba(105, 108, 255, .08),
        0 0 0 .12rem rgba(105, 108, 255, .08),
        -.45rem 0 1.15rem rgba(105, 108, 255, .2),
        .45rem 0 1.15rem rgba(3, 195, 236, .16),
        0 -.38rem 1.05rem rgba(113, 221, 55, .13),
        0 .45rem 1.15rem rgba(255, 171, 0, .1);
    animation: planRecommendedAuraShadow 6s ease-in-out infinite;
}

#plans-grid .plan-option.plan-option-recommended::before,
#plans-grid .plan-option.plan-option-recommended::after {
    content: none;
}

#plans-grid .plan-recommendation-badge {
    display: none;
}

#plans-grid .plan-discount-badge {
    white-space: normal;
    line-height: 1.25;
    text-align: left;
    max-width: 18rem;
}

#plans-grid .plan-option.plan-option-recommended .plan-recommendation-badge {
    display: inline-flex;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    #plans-grid .plan-option.plan-option-recommended {
        animation: none;
    }
}

@keyframes planRecommendedAuraShadow {
    0%,
    100% {
        box-shadow:
            0 .5rem 1.2rem rgba(105, 108, 255, .08),
            0 0 0 .12rem rgba(105, 108, 255, .08),
            -.45rem 0 1.15rem rgba(105, 108, 255, .2),
            .45rem 0 1.15rem rgba(3, 195, 236, .16),
            0 -.38rem 1.05rem rgba(113, 221, 55, .13),
            0 .45rem 1.15rem rgba(255, 171, 0, .1);
    }

    50% {
        box-shadow:
            0 .55rem 1.25rem rgba(105, 108, 255, .1),
            0 0 0 .12rem rgba(3, 195, 236, .1),
            -.45rem 0 1.2rem rgba(3, 195, 236, .16),
            .45rem 0 1.2rem rgba(113, 221, 55, .14),
            0 -.38rem 1.1rem rgba(105, 108, 255, .18),
            0 .45rem 1.2rem rgba(3, 195, 236, .12);
    }
}

#plans-grid .plan-option .badge {
    padding: .35rem .55rem;
    font-size: .72rem;
}

.custom-option:has(.form-check-input:checked) {
    border-color: var(--bs-primary) !important;
    background:
        linear-gradient(180deg, rgba(105, 108, 255, .12), rgba(105, 108, 255, .035)),
        var(--bs-card-bg);
    box-shadow: 0 0 0 .25rem rgba(105, 108, 255, .15);
}

/* Lista de recursos: altura mínima para alinhar cards */
#plans-grid .feat-list {
    min-height: 7.25rem;
    margin-top: .25rem;
}

/* Ícone principal do card */
.icon-base {
    font-size: 1.35rem;
}

#plans-grid .plan-option .custom-option-content {
    text-align: left;
}

#plans-grid .plan-option .custom-option-body {
    display: flex !important;
    align-items: stretch;
    gap: .55rem;
    margin-block-end: 0 !important;
    text-align: left;
}

#plans-grid .plan-option .plan-heading {
    width: 100%;
    justify-content: flex-start !important;
    margin-top: .1rem;
    margin-bottom: 0 !important;
}

#plans-grid .plan-option .plan-heading .bx {
    display: inline-block;
    color: var(--bs-heading-color);
    font-size: 1.35rem;
    line-height: 1;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: .5rem;
    flex-shrink: 0;
}

#plans-grid .plan-option .plan-heading .custom-option-title {
    display: inline-block !important;
    width: auto;
    margin-block-end: 0 !important;
    text-align: left;
}

#plans-grid .plan-daily-cost {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--bs-primary);
    background: rgba(105, 108, 255, .1);
    border: 1px solid rgba(105, 108, 255, .2);
    border-radius: 999px;
    padding: .28rem .65rem;
    font-size: .78rem;
    font-weight: 600;
}

#plans-grid .plan-heading + .d-flex {
    margin-bottom: .15rem !important;
}

#plans-grid .plan-daily-cost {
    margin-bottom: .45rem !important;
}

#plans-grid .plan-daily-cost + .mb-3 {
    margin-bottom: .55rem !important;
}

#plans-grid .feat-list {
    margin-bottom: .65rem !important;
}

#plans-grid .alert {
    min-height: 1.85rem;
}

/* ===== Botão de informação sem círculo de fundo ===== */
/* Use esta classe no botão (não use .btn-icon do Sneat) */
.btn.plan-info-btn {
    --_size: 1.75rem;
    /* tamanho do clique */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: var(--_size) !important;
    height: var(--_size) !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color, #aeb0c2);
}

.btn.plan-info-btn:hover,
.btn.plan-info-btn:focus {
    color: var(--bs-body-color);
    outline: none;
}

/* Caso algum estilo global aplique before/after, zere aqui */
.btn.plan-info-btn::before,
.btn.plan-info-btn::after {
    content: none !important;
}

/* Tamanho do ícone dentro do botão */
.btn.plan-info-btn i {
    font-size: 1.1rem;
    margin: 0 !important;
}

/* ===== Popover escuro (usar data-bs-custom-class="popover-dark") ===== */
.popover-dark {
    --bs-popover-bg: #232333;
    --bs-popover-border-color: #35354a;
    --bs-popover-header-bg: #232333;
    --bs-popover-header-color: #e4e6f0;
    --bs-popover-body-color: #cfd3ec;
    border: 1px solid var(--bs-popover-border-color);
}

.popover-dark .popover-arrow::before,
.popover-dark .popover-arrow::after {
    border-top-color: #35354a !important;
    border-right-color: #35354a !important;
    border-bottom-color: #35354a !important;
    border-left-color: #35354a !important;
}

/* Radios/área inferior */
.custom-option .form-check-input {
    transform: translateY(2px);
}

#plans-grid .plan-select-footer {
    position: relative;
    display: flex;
    align-items: center;
}

#plans-grid .plan-select-footer .plan-radio {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

#plans-grid .plan-select-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    border-radius: .65rem;
    color: var(--bs-primary);
    background: rgba(105, 108, 255, .08);
    border: 1px solid rgba(105, 108, 255, .22);
    font-weight: 600;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

#plans-grid .plan-select-footer:focus-within .plan-select-cta {
    box-shadow: 0 0 0 .2rem rgba(105, 108, 255, .18);
}

#plans-grid .custom-option:has(.form-check-input:checked) .plan-select-cta {
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Seletor PF/PJ em estilo pill segmentado */
.account-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: .75rem;
}

.account-pill {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    padding: .85rem 1rem;
    border-radius: .9rem;
    border-width: 1.5px;
    background: transparent;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-align: left;
}

.account-pill .title {
    font-weight: 600;
}

/* alinha abaixo do ícone/título */

/* Estado ativo (btn-check:checked + label) */
.btn-check:checked+.account-pill {
    border-color: var(--bs-primary);
    background: rgba(105, 108, 255, .08);
    box-shadow: 0 0 0 .2rem rgba(105, 108, 255, .15);
    color: var(--bs-body-color);
}

/* Hover/focus */
.account-pill:hover {
    border-color: var(--bs-primary);
}

.account-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(105, 108, 255, .25);
}

/* Responsivo */
@media (max-width: 576px) {
    .account-type-toggle {
        grid-template-columns: 1fr;
    }
}

/* ===== Preview do cartao na etapa de pagamento ===== */
#payment-info #card-preview {
    width: min(100%, 420px);
    aspect-ratio: 1.586 / 1;
    min-height: 0 !important;
    margin-inline: auto;
    padding: clamp(1rem, 2.4vw, 1.5rem) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-radius: 1.25rem !important;
    background:
        radial-gradient(140% 140% at 0% 0%, rgba(109, 111, 255, .96) 0%, rgba(110, 66, 193, .88) 42%, rgba(16, 24, 40, 1) 100%);
    box-shadow:
        0 18px 40px rgba(16, 24, 40, .28),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    isolation: isolate;
}

#payment-info #card-preview::before,
#payment-info #card-preview::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: .45;
}

#payment-info #card-preview::before {
    width: 14rem;
    height: 14rem;
    top: -7rem;
    right: -4rem;
    background: radial-gradient(circle, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 68%);
}

#payment-info #card-preview::after {
    width: 11rem;
    height: 11rem;
    left: -3.5rem;
    bottom: -5rem;
    background: radial-gradient(circle, rgba(56, 189, 248, .28) 0%, rgba(56, 189, 248, 0) 72%);
}

#payment-info .payment-card__top,
#payment-info .payment-card__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

#payment-info .payment-card__chip {
    position: relative;
    width: clamp(3rem, 8vw, 3.35rem);
    height: clamp(2.1rem, 5vw, 2.45rem);
    margin-top: clamp(2.64rem, 7.2vw, 3.56rem);
    border-radius: .7rem;
    background: linear-gradient(135deg, rgba(250, 225, 157, .96) 0%, rgba(223, 174, 56, .92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        0 10px 18px rgba(15, 23, 42, .18);
}

#payment-info .payment-card__chip::before,
#payment-info .payment-card__chip::after {
    content: "";
    position: absolute;
    top: .3rem;
    bottom: .3rem;
    width: 1px;
    background: rgba(120, 78, 0, .32);
}

#payment-info .payment-card__chip::before {
    left: .96rem;
}

#payment-info .payment-card__chip::after {
    left: 1.72rem;
}

#payment-info .payment-card__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.6rem;
    padding: .38rem .8rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    font-size: clamp(.72rem, .85vw, .82rem);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#payment-info .payment-card__number-wrap {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: clamp(.85rem, 2.2vw, 1.25rem);
}

#payment-info .payment-card__number {
    font-size: clamp(1rem, 1.55vw, 1.24rem) !important;
    font-weight: 700;
    letter-spacing: clamp(1px, .18vw, 2px) !important;
    line-height: 1.35;
    word-break: keep-all;
    text-shadow: 0 1px 10px rgba(15, 23, 42, .18);
}

#payment-info .payment-card__label {
    margin-bottom: .3rem;
    color: rgba(255, 255, 255, .72);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#payment-info .payment-card__holder-name,
#payment-info .payment-card__expiry-value {
    font-size: clamp(.8rem, 1vw, .98rem);
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

#payment-info .payment-card__holder {
    flex: 1 1 auto;
    min-width: 0;
}

#payment-info .payment-card__holder-name {
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#payment-info .payment-card__expiry {
    flex: 0 0 auto;
    min-width: clamp(3.9rem, 10vw, 4.7rem);
    text-align: right;
}

#payment-info .registration-consent-card {
    min-height: auto;
    padding-left: 1.65rem;
    color: var(--bs-secondary-color);
    font-size: .83rem;
    line-height: 1.45;
}

#payment-info .registration-consent-card .form-check-input {
    margin-top: .16rem;
}

@media (max-width: 991.98px) {
    #payment-info #card-preview {
        width: min(100%, 392px);
    }
}

@media (max-width: 575.98px) {
    #payment-info #card-preview {
        width: 100%;
    }

    #payment-info .payment-card__brand {
        min-width: 4.2rem;
        padding-inline: .72rem;
    }

    #payment-info .payment-card__number {
        font-size: clamp(.92rem, 4vw, 1.02rem) !important;
    }

    #payment-info .payment-card__bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: .75rem;
    }

    #payment-info .payment-card__expiry {
        min-width: 3.4rem;
    }

    #payment-info .registration-consent-card {
        font-size: .8rem;
    }
}
