/* =====================================================
   MEMBERSHIPS PAGE
===========================/* =====================================================
   MEMBERSHIPS PAGE
===================================================== */

.portal-memberships-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 100px;
}


/* =====================================================
   HERO
===================================================== */

.portal-memberships-hero {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 24px;
    padding: 18px;

    border: 1px solid #eee;
    border-radius: 18px;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
}

.portal-memberships-midan-logo {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-memberships-midan-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-memberships-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-memberships-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--primary-color);

    font-size: 14px;
    font-weight: 600;
}

.portal-memberships-hero-info h3 {
    margin: 0 0 5px;

    font-size: 20px;
    font-weight: 700;
}

.portal-memberships-hero-info p {
    margin: 0;

    color: #888;
    font-size: 14px;
}


/* =====================================================
   CARD
===================================================== */

.portal-membership-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0, 0, 0, .035);
}

.portal-membership-card-head {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 15px;
}

.portal-membership-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);

    font-size: 20px;
}

.portal-membership-info {
    flex: 1;
    min-width: 0;
}

.portal-membership-info h5 {
    margin: 0 0 6px;

    font-size: 17px;
    font-weight: 700;
}


/* =====================================================
   AMOUNT
===================================================== */

.portal-membership-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
    padding: 10px 12px;

    border-radius: 10px;

    background: #f8f9fa;

    font-size: 14px;
}

.portal-membership-amount strong {
    font-size: 14px;
}


/* =====================================================
   STATE
===================================================== */

.portal-membership-state {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: auto;
    padding: 11px 12px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.6;
}

.portal-membership-state small {
    display: block;
    margin-top: 3px;
}

.portal-membership-state.success {
    background: rgba(40, 167, 69, .08);
    color: #24843b;
}

.portal-membership-state.review {
    background: rgba(255, 193, 7, .10);
    color: #8a6d00;
}

.portal-membership-state.info {
    background: rgba(23, 162, 184, .08);
    color: #16758a;
}


/* =====================================================
   ACTION
===================================================== */

.portal-membership-action {
    margin-top: auto;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;

    font-weight: 600;
}

.portal-membership-action span {
    font-size: 14px;
}

.portal-pay-btn.disabled {
    pointer-events: none;
    opacity: .75;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-memberships-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-memberships-hero {
        gap: 13px;

        margin-bottom: 18px;
        padding: 14px;

        border-radius: 15px;
    }

    .portal-memberships-midan-logo {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .portal-memberships-hero-info h3 {
        font-size: 18px;
    }

    .portal-memberships-hero-info p {
        font-size: 14px;
    }

    .portal-membership-card {
        padding: 14px;
    }

    .portal-membership-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;

        font-size: 18px;
    }
}


/* =====================================================
   MEMBERSHIP FORM PAGE
===================================================== */

.portal-membership-form-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-membership-form-hero {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 20px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-membership-form-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-membership-form-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-membership-form-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-membership-form-eyebrow {
    display: block;
    margin-bottom: 4px;

    color: var(--primary-color);

    font-size: 14px;
    font-weight: 600;
}

.portal-membership-form-hero-info h3 {
    margin: 0 0 4px;

    font-size: 19px;
    font-weight: 700;
}

.portal-membership-form-hero-info p {
    margin: 0;

    color: #888;
    font-size: 14px;
}


/* FORM CONTAINER */

.portal-membership-form-container {
    padding: 22px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}


/* FORM HEADING */

.portal-form-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
    padding-bottom: 16px;

    border-bottom: 1px solid #eee;
}

.portal-form-heading-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);

    font-size: 18px;
}

.portal-form-heading h5 {
    margin: 0 0 3px;

    font-size: 17px;
    font-weight: 700;
}

.portal-form-heading p {
    margin: 0;

    color: #888;
    font-size: 14px;
}


/* FORM */

.portal-membership-form .form-group {
    margin-bottom: 18px;
}

.portal-membership-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;
}

.portal-membership-form .form-control {
    min-height: 48px;

    border-radius: 9px;

    font-size: 15px;
}

.portal-readonly-input {
    background: #f8f9fa !important;
    color: #777;

    cursor: default;
}


/* ACTIONS */

.portal-membership-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 10px;
    padding-top: 18px;

    border-top: 1px solid #eee;
}

.portal-membership-submit {
    min-height: 48px;
    min-width: 180px;

    border-radius: 10px;

    font-weight: 600;
}

.portal-membership-back {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 10px;
}


/* ALREADY REGISTERED */

.portal-membership-existing {
    padding: 30px 15px;

    text-align: center;
}

.portal-membership-existing-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border-radius: 50%;

    background: rgba(40, 167, 69, .10);
    color: #28a745;

    font-size: 26px;
}

.portal-membership-existing h5 {
    margin-bottom: 20px;

    font-size: 17px;
    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .portal-membership-form-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-membership-form-hero {
        gap: 12px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-membership-form-logo {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .portal-membership-form-hero-info h3 {
        font-size: 18px;
    }

    .portal-membership-form-container {
        padding: 16px 14px;

        border-radius: 14px;
    }

    .portal-membership-form-actions {
        flex-direction: column;
    }

    .portal-membership-submit,
    .portal-membership-back {
        width: 100%;
    }
}


