/* ibetp-checkout.css */
.ibetp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 24, 50, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.ibetp-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.ibetp-checkout-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 490px;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.ibetp-checkout-header {
    background: #081C3B;
    color: #FFFFFF;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.checkout-title-wrap {
    flex: 1;
    min-width: 0;
}
.checkout-tag {
    display: inline-block;
    color: #D42B5B;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.checkout-course-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
}
.checkout-course-price {
    font-size: 12.5px;
    color: #94A3B8;
}
.checkout-course-price strong {
    color: #D42B5B;
    font-size: 14px;
}
.ibetp-checkout-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: background 0.2s;
}
.ibetp-checkout-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.ibetp-checkout-body {
    padding: 24px;
    overflow-y: auto;
}

/* Payment Method Tabs */
.checkout-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.method-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #F4DEE4;
    background: #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.method-tab-btn:hover {
    border-color: #E8C4CE;
}
.method-tab-btn.is-active {
    border: 2px solid #D42B5B;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(212, 43, 91, 0.12);
}
.method-tab-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.method-tab-info {
    flex: 1;
    min-width: 0;
}
.method-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #071832;
    display: block;
    line-height: 1.2;
}
.method-tab-btn.is-active .method-name {
    color: #071832;
}
.method-sub {
    font-size: 11px;
    color: #64748B;
    display: block;
    margin-top: 2px;
}
.method-tab-btn.is-active .method-sub {
    color: #D42B5B;
    font-weight: 600;
}

.tab-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* Person Type Toggle (Pessoa Física / Jurídica) */
.person-type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #FAF0F3;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #F4DEE4;
}
.person-type-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 0;
}
.person-type-pill input[type="radio"] {
    display: none;
}
.person-type-pill.is-active {
    background: #FFFFFF;
    color: #024EC7;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Forms */
.ibetp-checkout-form .form-group {
    margin-bottom: 14px;
}
.ibetp-checkout-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #113877;
    margin-bottom: 5px;
}
.ibetp-checkout-form input, .ibetp-checkout-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #E8C4CE;
    border-radius: 8px;
    font-size: 14.5px;
    color: #071832;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.ibetp-checkout-form input:focus, .ibetp-checkout-form select:focus {
    outline: none;
    border-color: #024EC7;
    box-shadow: 0 0 0 3px rgba(2, 78, 199, 0.15);
}
.btn-submit-checkout {
    width: 100%;
    padding: 14px;
    background: #0F3676;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn-submit-checkout:hover {
    background: #0B2958;
}
.btn-submit-checkout:disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

/* Result Box */
.pix-result-box {
    text-align: center;
    padding: 10px 0;
}
.pix-qr-img {
    max-width: 200px;
    margin: 14px auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #F4DEE4;
    padding: 8px;
    background: #FFFFFF;
}
.pix-copy-box {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}
.pix-copy-box input {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    border: 1px solid #E8C4CE;
    border-radius: 6px;
    background: #FCF7F9;
}
.btn-copy-pix {
    padding: 10px 18px;
    background: #0F3676;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.btn-copy-pix:hover {
    background: #0B2958;
}

/* ------------------------------------------------------------------
   Correção 30/10/2026 — o botão "Confirmar e Pagar" ficava fora da
   tela no celular. O cartão do checkout é flex column com
   overflow:hidden e max-height:90vh; o corpo tinha overflow-y:auto
   mas, sem flex/min-height, não encolhia: crescia junto com o
   conteúdo e o botão era cortado para fora, sem como rolar até ele.
   Dois leads não conseguiram pagar o Preparatório de Queimados.
   ------------------------------------------------------------------ */
.ibetp-checkout-body {
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px), (max-height: 760px) {
    .ibetp-modal-overlay {
        align-items: flex-start;
        padding: 8px;
        overflow-y: auto;
    }
    .ibetp-checkout-card {
        max-height: calc(100vh - 16px);
    }
}
@supports (height: 100dvh) {
    @media (max-width: 600px), (max-height: 760px) {
        .ibetp-checkout-card { max-height: calc(100dvh - 16px); }
    }
}


/* Ficha academica mostrada depois do pagamento */
.ficha-sec{margin:22px 0 10px;padding-top:14px;border-top:1px solid #F6E3E8;font-size:12px;
  font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#0A2146}
.ficha-dupla{display:flex;gap:10px}
.ficha-dupla .form-group{margin-bottom:0}
#ibetp-ficha input[type="date"]{width:100%;box-sizing:border-box}
