.mbs-registration-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.mbs-form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}
.mbs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.mbs-form-group {
    margin-bottom: 20px;
}
.mbs-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}
.mbs-input, .mbs-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.mbs-input:focus, .mbs-select:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.mbs-price-field {
    background: #f9f9f9;
    font-weight: 600;
    font-size: 18px;
    color: #c9a84c;
}
.mbs-submit-wrap {
    text-align: right;
    margin-top: 10px;
}
.mbs-submit-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #c9a84c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.mbs-submit-btn:hover {
    background: #b89638;
    transform: translateY(-1px);
}
.mbs-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.mbs-form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}
.mbs-form-message.mbs-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.mbs-form-message.mbs-info {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================
   Payment Section (same page)
   ============================ */
.mbs-payment-section {
    margin-top: 10px;
}
.mbs-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}
.mbs-submitted-details {
    margin-bottom: 30px;
}
.mbs-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto 20px;
    border: 1px solid #ddd;
}
.mbs-details-table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 15px;
    width: 50%;
}
.mbs-payment-details {
    text-align: center;
}

/* Payment method option tabs */
.mbs-payment-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}
.mbs-pay-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mbs-pay-option:hover {
    border-color: #c9a84c;
    color: #333;
}
.mbs-pay-option-active {
    background: #fdf8ec;
    border-color: #c9a84c;
    color: #333;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2);
}
.mbs-pay-icon {
    font-size: 20px;
}

/* Payment panels */
.mbs-pay-panel {
    display: none;
    padding: 25px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-top: 5px;
}
.mbs-pay-panel-active {
    display: block;
}
.mbs-pay-amount {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}
.mbs-pay-amount strong {
    font-size: 22px;
    color: #c9a84c;
}
.mbs-pay-note {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
}

/* PayPal button */
.mbs-paypal-btn {
    display: inline-block;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #0070ba;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}
.mbs-paypal-btn:hover {
    background: #005ea6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
}

/* QR code area */
.mbs-qr-wrap {
    margin: 15px auto;
}
.mbs-qr-image {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ============================
   Modal / Popup
   ============================ */
.mbs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.mbs-modal {
    position: relative;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: visible;
    animation: mbsModalIn 0.3s ease forwards;
}
@keyframes mbsModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.mbs-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.mbs-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}
.mbs-modal-body {
    padding: 35px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    border-radius: 12px;
    background: #fff;
}
.mbs-modal-body .mbs-form-title {
    margin-top: 0;
}
.mbs-modal-body .mbs-select {
    position: relative;
    z-index: 1000000;
}

@media (max-width: 768px) {
    .mbs-form-grid {
        grid-template-columns: 1fr;
    }
    .mbs-registration-wrapper {
        padding: 20px;
        margin: 20px 15px;
    }
    .mbs-submit-wrap {
        text-align: center;
    }
    .mbs-submit-btn {
        width: 100%;
    }
    .mbs-details-table td {
        display: block;
        width: 100%;
    }
    .mbs-payment-options {
        flex-direction: column;
    }
    .mbs-pay-option {
        justify-content: center;
    }
    .mbs-paypal-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .mbs-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
    .mbs-modal-body {
        padding: 25px 20px;
        max-height: 90vh;
    }
    .mbs-modal-overlay {
        padding: 10px;
    }
}
