/* Modal Overlay */
.qpb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qpb-modal-overlay.active {
    opacity: 1;
}

/* Modal Content */
.qpb-modal {
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
}

.qpb-modal-overlay.active .qpb-modal {
    transform: translateY(0);
}

/* Close Button */
.qpb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.qpb-modal-close:hover {
    color: #333;
}

/* Typography */
.qpb-modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.qpb-modal p {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Inputs */
.qpb-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qpb-modal input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    outline: none;
}

.qpb-modal input[type="text"]:focus {
    border-color: #E2136E;
    box-shadow: 0 0 0 3px rgba(226, 19, 110, 0.1);
}

/* Buttons */
.qpb-btn {
    width: 100%;
    padding: 12px;
    background-color: #E2136E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.qpb-btn:hover {
    background-color: #c90f60;
}

.qpb-btn:active {
    transform: scale(0.98);
}

.qpb-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Package List */
.qpb-packages-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
}

.qpb-package-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.qpb-package-item:last-child {
    border-bottom: none;
}

.qpb-package-item:hover {
    background-color: #fff5f8;
}

.qpb-package-item input[type="radio"] {
    margin-right: 12px;
    accent-color: #E2136E;
    transform: scale(1.2);
}

.qpb-pkg-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: #333;
}

.qpb-pkg-price {
    color: #E2136E;
    font-weight: 700;
}

/* Summary */
.qpb-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fdf2f6;
    border-radius: 8px;
    border: 1px dashed #E2136E;
}

.qpb-summary span:first-child {
    font-weight: 500;
    color: #555;
}

.qpb-amount {
    font-size: 20px;
    font-weight: 800;
    color: #E2136E;
}

.qpb-error {
    color: red;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    min-height: 18px;
}



/* Loading */
.qpb-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}