/*** Membership operations  ***/

.membership-body {
    background-color: #F5F8FE;
}

.membership-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
    width: 1240px;
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 83px;
}

.membership-container > .section {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 48px;
    width: 100%;
    background-color: #fff;
    border-radius: 24px;
    padding: 64px;
}

.membership-container > .section > .figure > img {
    width: 100%;
    height: auto;
}

.membership-container > .section > .form {
    align-self: start;
    display: flex;
    flex-direction: column;
    width: calc(100% - 424px);
}

.membership-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 20px;
}

.membership-form.off {
    display: none;
}

.membership-form.form-xs {
    width: 300px;
}

.membership-form > fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.membership-form > fieldset .per-h-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: baseline;
    gap: 20px;
}

.membership-form > fieldset .per-h-3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 17px;
}

.membership-form > fieldset .per-h-3 > select {
    width: 45px;
}

.membership-form > fieldset .per-h-3 > input {
    flex-grow: 1;
}

.membership-form > fieldset input,
.membership-form > fieldset select {
    font-size: 12px;
    line-height: 16px;
    min-height: 24px !important;
    padding-bottom: 3px !important;
    margin-bottom: 0px !important;
}

.membership-form > fieldset .invalid-feedback {
    display: flex;
    justify-content: start;
    align-items: baseline;
    font-size: 12px;
    line-height: 14px;
}

.membership-form > fieldset > .form-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px !important;
}

.membership-form > fieldset > .form-header-info > span {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
}

.membership-form > fieldset > .form-header-info > small {
    font-size: 12px;
    line-height: 16px;
    color: #979797;
    font-weight: 400;
}

.membership-form > fieldset > .button-box {
    display: flex;
    align-items: center;
    gap: 24px;
}

.membership-form > fieldset .box-number-period {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 17px;
}

.membership-form > fieldset .box-number-period > .code {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width: 50px;
}

.membership-form > fieldset .box-number-period > .area {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width: 65px;
}

.membership-form > fieldset .box-number-period > .number {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width: calc(100% - 115px);
}

.box-check-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 4px 0px;
}

.membership-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: #007AFF !important;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-family: Nunito;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: none !important;
    outline: none !important;
    appearance: none !important;
}

.membership-button.outline {
    background: none !important;
    border: 1px solid #E6E8EC !important;
    color: #1A1B1D;
}

.membership-button.transparent {
    padding: 4px 10px;
    background: none !important;
    border: none !important;
    font-size: 12px;
    line-height: 16px;
    color: #1A1B1D;
}

.membership-error-label {
    color: #FF4569;
}

.membership-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.membership-checkbox > input {
    opacity: 0;
    position: absolute;
}

.membership-checkbox > input + label {
    font-size: 11px;
    line-height: 14px;
    margin: 0;
    padding: 0;
    padding-left: 22px;
}

.membership-checkbox > input + label:before {
    content: '';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border: solid 1px #E6E8EC;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 0;
}

.membership-checkbox > input:checked + label:before {
    content: '\f00c';
    font-family: 'FontAwesome';
}

.membership-form-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 4px;
}

.membership-form-tab > a {
    font-size: 24px;
    line-height: 28px;
    color: #979797;
}

.membership-form-tab > a.active {
    color: #1A1B1D;
}

.membership-form-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.membership-form-labels.single {
    justify-content: end;
}

.membership-form-labels > a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
    color: #1A1B1D;
}

.membership-form-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: calc(100% + 8px);
}

.membership-form-header-info > span {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
}

.membership-form-header-info > small {
    font-size: 12px;
    line-height: 16px;
    color: #979797;
}

.box-button-vertical {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.membership-type {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    width: 790px;
    text-align: center;
}

.membership-type > span {
    width: 80%;
    font-size: 36px;
    line-height: normal;
    font-weight: 700;
}

.membership-type > ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: left;
    list-style: none;
    margin: 0;
    padding: 0;
}

.membership-type > ul > li {
    display: grid;
    grid-template-columns: 480px auto;
    gap: 10px;
    width: 100%;
    border-bottom: solid 1px #E6E8EC;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.membership-type > ul > li > .feature-text {
    padding: 8px 0px;
}

.membership-type > ul > li > .feature-types {
    display: flex;
    align-items: center;
}

.membership-type > ul > li > .feature-types > article {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    padding: 9px 0px;
    background-color: #F5F8FE;
}

.membership-type > ul > li:not(.header) > .feature-types > article:first-child {
    border-left: solid 1px #E6E8EC;
}

.membership-type > ul > li > .feature-types > article:nth-child(odd) {
    background-color: transparent;
}

.membership-type > ul > li.header {
    border-bottom: none;
}

.membership-type > ul > li.header > .feature-types > article {
    flex-direction: column;
    gap: 10px;
    padding: 24px 10px;
    border-radius: 24px 24px 0px 0px;
    text-align: center;
    background-color: #007AFF;
    color: #fff;
}

.membership-type > ul > li.header > .feature-types > article:nth-child(odd) {
    background-color: transparent;
    color: #1A1B1D;
}

.membership-type > ul > li.header > .feature-types > article > span {
    font-size: 24px;
    line-height: 28px;
    font-weight: 800;
}

.membership-type > ul > li.header > .feature-types > article > small {
    font-size: 11px;
    line-height: 13px;
    font-weight: 500;
}

.membership-container > .section.type-list:not(.layout-desktop) {
    display: none;
}

.membership-form > fieldset span.error {
    font-size: 12px;
    line-height: 14px;
    color: #e46a76;
}

/*** Responsive ***/

@media (max-width: 767px) {
    .membership-container {
        gap: 24px;
        width: 100%;
        padding-top: 0;
        padding: 24px 16px;
    }

    .membership-container > .header > img {
        width: 200px;
        height: auto;
    }

    .membership-container > .section {
        flex-direction: column;
        gap: 24px;
        padding: 24px 16px;
    }

    .membership-container > .section.mobile-reverse {
        flex-direction: column-reverse;
    }

    .membership-container > .section.layout-desktop {
        display: none;
    }

    .membership-container > .section.type-list:not(.layout-desktop) {
        display: flex;
    }

    .membership-container > .section.type-list {
        padding: 24px 12px;
    }

    .membership-container > .section > .form {
        width: 100%;
    }

    .membership-form.form-xs {
        width: 100%;
    }

    .membership-form > fieldset .per-h-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .membership-form > fieldset > .button-box .membership-button {
        width: 100%;
    }

    .membership-form-tab > a {
        font-size: 20px;
        line-height: 24px;
    }

    .membership-form-tab > a.active {
        font-size: 24px;
        line-height: 28px;
    }

    .membership-type {
        gap: 24px;
        width: 100%;
    }

    .membership-type > span {
        width: 100%;
        font-size: 24px;
    }

    .membership-type > ul > li {
        display: grid;
        grid-template-columns: auto 70px;
        gap: 10px;
    }

    .membership-type.mobile > ul > li:nth-child(1),
    .membership-type.mobile > ul > li:nth-child(2){
        border-bottom: none;
    }
    .membership-type.mobile > ul > li:first-child > .feature-text {
        padding: 0;
    }

    .membership-type.mobile > ul > li > .feature-types > article {
        border-left: none !important;
    }

    .membership-type > ul > li > .feature-text {
        width: 100%;
        padding: 12px 0px;
    }

    .membership-type > ul > li > .feature-text > .mobile-type-title {
        font-size: 20px;
        line-height: 24px;
        font-weight: 800;
    }

    .membership-type > ul > li > .feature-text > .mobile-type-desc {
        width: 80%;
    }

    .membership-type > ul > li > .feature-types {
        flex-direction: column;
        width: 70px;
        height: 100%;
    }

    .membership-type > ul > li > .feature-types > article {
        width: 100%;
        height: 100%;
        background-color: #F5F8FE !important;
        padding: 0px;
    }
}