.membership-wrapper {
    padding: 40px 0;
}

.membership-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    border: 1px solid #eef0f4;
}

.membership-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, #f99402, #f994025c);
    color: #fff;
}

.membership-header h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
}

.membership-header p {
    margin: 0;
    opacity: .85;
    font-size: 14px;
}

.membership-body {
    padding: 32px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.section-title .section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eaf2ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.section-title h5 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: #212529;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 7px;
}

.required {
    color: #dc3545;
}

.form-control,
.form-select {
    min-height: 45px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 16px;
    transition: all .2s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .10);
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.readonly-field {
    background: #f7f8fa !important;
    color: #495057;
}

/* Upload */
.upload-box {
    border: 2px dashed #cfd6df;
    border-radius: 12px;
    padding: 18px;
    background: #fafbfc;
    text-align: center;
    transition: .2s;
}

.upload-box:hover {
    border-color: #0d6efd;
    background: #f5f9ff;
}

.upload-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
}

.upload-box input[type="file"] {
    font-size: 12px;
    width: 100%;
}

.image-preview {
    display: none;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px auto 0;
    border: 2px solid #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
}

/* Payment */
.payment-box {
    position: relative;
}

.payment-box .form-control {
    font-size: 18px;
    font-weight: 700;
    color: #198754;
    background: #f0fff7 !important;
    border-color: #b8e7cf;
    padding-left: 35px;
}

.payment-symbol {
    position: absolute;
    left: 13px;
    bottom: 12px;
    font-weight: 700;
    color: #198754;
    z-index: 2;
}

/* Terms */
.terms-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 14px 16px;
    border-radius: 10px;
}

.terms-box label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 15px;
    color: #495057;
    cursor: pointer;
}

.terms-box input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #0d6efd;
}

.terms-box a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

/* Button */
.submit-area {
    padding-top: 5px;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.btn-membership {
    border: 0;
    background: linear-gradient(135deg, #f99402, #f99402);
    color: #fff;
    border-radius: 10px;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(13, 110, 253, .25);
    transition: all .2s ease;
}

.btn-membership:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, .30);
    color: #fff;
}

.btn-membership i {
    margin-right: 7px;
}

.alert {
    border-radius: 10px;
    font-size: 13px;
}

@media(max-width: 767px) {
    .membership-wrapper {
        padding: 20px 10px;
    }

    .membership-header,
    .membership-body {
        padding: 22px 18px;
    }

    .membership-header h3 {
        font-size: 20px;
    }
}


.membership-payment-section {
    background: #f5f7fb;
    padding: 70px 0;
    min-height: 650px;
    display: flex;
    align-items: center;
}


/* Main Card */

.payment-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e8ecf2;
    box-shadow: 0 15px 50px rgba(15, 23, 42, .08);
}


/* Error */

.payment-alert {
    text-align: left;
    border-radius: 10px;
    border: 0;
    font-size: 13px;
}


/* Icon */

.payment-icon {
    width: 70px;
    height: 70px;
    margin: 5px auto 20px;
    border-radius: 50%;
    background: #eef4ff;
    color: #3157d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}


.payment-title {
    margin: 0;
    color: #172033;
    font-size: 25px;
    font-weight: 750;
}


.payment-subtitle {
    color: #7b8494;
    font-size: 13px;
    line-height: 1.7;
    max-width: 540px;
    margin: 10px auto 28px;
}


/* Member */

.member-summary {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 12px;
}


.member-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #e9efff;
    color: #3157d5;
    display: flex;
    align-items: center;
    justify-content: center;
}


.member-info span {
    display: block;
    color: #8a94a6;
    font-size: 11px;
    margin-bottom: 3px;
}


.member-info strong {
    display: block;
    color: #263044;
    font-size: 15px;
}


.member-info small {
    color: #3157d5;
    font-size: 12px;
}


/* Amount */

.amount-box {
    margin: 20px 0;
    padding: 22px;
    background: linear-gradient(135deg, #f1f5ff, #f7f5ff);
    border: 1px solid #dfe7ff;
    border-radius: 13px;
}


.amount-box span {
    display: block;
    color: #7b8494;
    font-size: 12px;
    margin-bottom: 5px;
}


.amount-box strong {
    display: block;
    color: #3157d5;
    font-size: 32px;
    font-weight: 800;
}


/* Payment Information */

.payment-info {
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    margin-bottom: 22px;
}


.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    font-size: 13px;
}


.info-row+.info-row {
    border-top: 1px dashed #e5e7eb;
}


.info-row span {
    color: #6b7280;
}


.info-row span i {
    color: #3157d5;
    margin-right: 6px;
}


.info-row strong {
    color: #293246;
}


.info-row .pending {
    color: #d97706;
}


/* Pay Button */

.btn-pay-now {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3157d5, #5146e5);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(49, 87, 213, .22);
    transition: all .2s ease;
}


.btn-pay-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(49, 87, 213, .28);
}


.btn-pay-now:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}


/* Secure */

.secure-payment {
    margin-top: 14px;
    color: #7b8494;
    font-size: 11px;
}


.secure-payment i {
    color: #16a34a;
    margin-right: 4px;
}


/* Note */

.payment-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
    color: #9aa2af;
    font-size: 11px;
}


.payment-note i {
    margin-right: 4px;
}


/* Mobile */

@media(max-width: 767px) {

    .membership-payment-section {
        padding: 30px 15px;
    }

    .payment-card {
        padding: 28px 18px;
        border-radius: 16px;
    }

    .payment-title {
        font-size: 21px;
    }

    .payment-subtitle {
        font-size: 12px;
    }

    .amount-box strong {
        font-size: 28px;
    }

    .info-row {
        align-items: flex-start;
        gap: 10px;
    }

}



.membership-success-section {
    background: #f5f7fb;
    padding: 70px 0;
    min-height: 600px;
}

.success-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e9edf3;
}


/* Success Icon */

.success-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e9f9ef;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 8px 25px rgba(22, 163, 74, .12);
}


.success-title {
    font-size: 28px;
    font-weight: 750;
    color: #172033;
    margin-bottom: 8px;
}


.success-message {
    color: #697386;
    font-size: 14px;
    margin-bottom: 28px;
}


/* Membership Number */

.membership-number {
    background: #f4f7ff;
    border: 1px solid #dce6ff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 30px;
}


.membership-number span {
    display: block;
    color: #7b8494;
    font-size: 12px;
    margin-bottom: 5px;
}


.membership-number strong {
    color: #3157d5;
    font-size: 22px;
    letter-spacing: 1px;
}


/* Details */

.details-section {
    text-align: left;
    border-top: 1px solid #edf0f4;
    padding-top: 25px;
}


.details-heading {
    font-size: 15px;
    font-weight: 700;
    color: #263044;
    margin-bottom: 18px;
}


.details-heading i {
    color: #3157d5;
    margin-right: 7px;
}


.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}


.detail-item {
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    padding: 14px;
}


.detail-label {
    display: block;
    font-size: 11px;
    color: #8a94a6;
    margin-bottom: 5px;
}


.detail-item strong {
    color: #293246;
    font-size: 14px;
}


.amount {
    color: #3157d5 !important;
    font-size: 16px !important;
}


.status-paid {
    color: #16a34a !important;
}


/* Payment */

.payment-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #edf0f4;
    text-align: left;
}


.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 13px;
}


.payment-row span {
    color: #7b8494;
}


.payment-row strong {
    color: #263044;
    word-break: break-all;
}


/* Alert */

.email-alert {
    margin-top: 22px;
    margin-bottom: 0;
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
    border: 0;
}


/* Buttons */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}


.btn-download,
.btn-home {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}


.btn-download {
    background: linear-gradient(135deg, #3157d5, #5146e5);
    color: #fff;
    box-shadow: 0 7px 18px rgba(49, 87, 213, .20);
}


.btn-download:hover {
    color: #fff;
    transform: translateY(-1px);
}


.btn-home {
    background: #f1f3f6;
    color: #4b5563;
}


.btn-home:hover {
    background: #e7eaf0;
    color: #263044;
}


/* Footer */

.success-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
    color: #8a94a6;
    font-size: 11px;
}


.success-footer i {
    color: #16a34a;
    margin-right: 5px;
}


/* Mobile */

@media(max-width: 767px) {

    .membership-success-section {
        padding: 35px 15px;
    }

    .success-card {
        padding: 28px 18px;
        border-radius: 15px;
    }

    .success-title {
        font-size: 23px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .payment-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .btn-download,
    .btn-home {
        width: 100%;
    }

}