.join-page {
    background: #f0ebf8;
    padding: 38px 16px 70px;
}

.join-form-wrap {
    max-width: 80%;
    margin: 0 auto;
}

.join-form-header,
.join-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 24px;
}

.join-form-header {
    border-top: 10px solid #673ab7;
}

.join-form-header h2,
.join-card h3 {
    color: #202124;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
}

.join-form-header h2 {
    font-size: 25px;
    margin-bottom: 6px;
}

.join-form-header p {
    color: #5f6368;
    margin-bottom: 6px;
}

.join-form-header .join-intro {
    border-top: 1px solid #dadce0;
    color: #202124;
    margin: 20px -24px -24px;
    padding: 15px 24px;
}

.join-card h3 {
    font-size: 18px;
    margin: 0 0 20px;
}

.join-field {
    margin-bottom: 22px;
}

.join-field:last-child {
    margin-bottom: 0;
}

.join-field label,
.family-row label {
    color: #202124;
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.join-field input,
.join-field textarea,
.join-field select,
.family-row input {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #9aa0a6;
    border-radius: 0;
    color: #202124;
    display: block;
    font: inherit;
    max-width: 100%;
    outline: none;
    padding: 8px 0;
    width: 100%;
}

.join-field input:focus,
.join-field textarea:focus,
.join-field select:focus,
.family-row input:focus {
    border-bottom: 2px solid #673ab7;
}

.join-field input[type="file"] {
    border: 0;
}

.join-field small,
.join-description {
    color: #5f6368;
    display: block;
    font-size: 13px;
    margin-top: 7px;
}

.join-required {
    color: #d93025;
}

.family-row {
    align-items: end;
    border-bottom: 1px solid #e4e5e7;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.family-row label {
    font-size: 13px;
}

.family-remove,
.family-add {
    background: transparent;
    border: 0;
    color: #673ab7;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 8px 0;
}

.family-remove {
    color: #b3261e;
}

.join-declaration {
    color: #3c4043;
    padding-left: 22px;
}

.join-declaration li {
    margin-bottom: 13px;
}

.join-declaration-promise {
    color: #3c4043;
    margin-top: 20px;
}

.join-consent {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.join-consent input {
    accent-color: #673ab7;
    flex: 0 0 auto;
    height: 18px;
    margin-top: 4px;
    width: 18px;
}

.join-alert {
    border-radius: 6px;
    margin-bottom: 14px;
    padding: 14px 18px;
}

.join-alert-success {
    background: #e6f4ea;
    color: #137333;
}

.join-alert-error {
    background: #fce8e6;
    color: #b3261e;
}

.join-fee-card h4 {
    color: #202124;
    font-size: 16px;
    margin: 22px 0 12px;
}

.join-fee {
    font-size: 17px;
}

.join-bank-details {
    display: grid;
    gap: 8px 16px;
    grid-template-columns: minmax(140px, auto) 1fr;
    margin: 0;
}

.join-bank-details dt {
    font-weight: 600;
}

.join-bank-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.join-submit {
    padding: 8px 0;
}

.join-submit button {
    background: #673ab7;
    border: 0;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 12px 22px;
}

.join-submit button:hover {
    background: #512da8;
}

@media (max-width: 700px) {
    .join-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .join-form-header,
    .join-card {
        padding: 19px;
    }

    .join-form-header .join-intro {
        margin: 18px -19px -19px;
        padding: 14px 19px;
    }

    .family-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .join-bank-details {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .join-bank-details dd {
        margin-bottom: 10px;
    }
}
