/* ibetp-checkout.css */
.ibetp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 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: #fff;
    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: #0B2238;
    color: #fff;
    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: #38BDF8;
    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: #34D399;
    font-size: 14px;
}
.ibetp-checkout-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    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 #E2E8F0;
    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: #CBD5E1;
}
.method-tab-btn.is-active {
    border: 2px solid #0080FF;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 128, 255, 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: #0F172A;
    display: block;
    line-height: 1.2;
}
.method-tab-btn.is-active .method-name {
    color: #0F172A;
}
.method-sub {
    font-size: 11px;
    color: #64748B;
    display: block;
    margin-top: 2px;
}
.method-tab-btn.is-active .method-sub {
    color: #0080FF;
    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: #F1F5F9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}
.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: #0284C7;
    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: #334155;
    margin-bottom: 5px;
}
.ibetp-checkout-form input, .ibetp-checkout-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 14.5px;
    color: #0F172A;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.ibetp-checkout-form input:focus, .ibetp-checkout-form select:focus {
    outline: none;
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.btn-submit-checkout {
    width: 100%;
    padding: 14px;
    background: #0F7654;
    color: #fff;
    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: #0B583E;
}
.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 #E2E8F0;
    padding: 8px;
    background: #fff;
}
.pix-copy-box {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}
.pix-copy-box input {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    background: #F8FAFC;
}
.btn-copy-pix {
    padding: 10px 18px;
    background: #0F7654;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.btn-copy-pix:hover {
    background: #0B583E;
}
