.afd-pro-registration,
.afd-pro-account-cta {
    --afd-ink: #202020;
    --afd-muted: #696969;
    --afd-line: #dedbd5;
    --afd-paper: #f7f5f1;
    --afd-accent: #202020;
    color: var(--afd-ink);
}

.afd-professional-registration-page .entry-title,
.afd-professional-registration-page #sidebar,
.afd-professional-registration-page #main-content .container::before {
    display: none !important;
}

.afd-professional-registration-page #left-area {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}

.afd-pro-registration {
    width: min(960px, calc(100% - 40px));
    margin: 70px auto 0;
    padding-bottom: clamp(90px, 10vw, 150px);
}

.afd-pro-registration__intro {
    max-width: 720px;
    margin-bottom: 48px;
}

.afd-pro-registration__eyebrow {
    margin: 0 0 14px;
    color: var(--afd-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.afd-pro-registration__intro h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.05;
}

.afd-pro-registration__intro p:last-child {
    color: var(--afd-muted);
    font-size: 17px;
    line-height: 1.7;
}

.afd-pro-form fieldset {
    margin: 0 0 40px;
    padding: 0;
    border: 0;
}

.afd-pro-form legend {
    width: 100%;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--afd-line);
    font-size: 20px;
    font-weight: 500;
}

.afd-pro-profile-choice,
.afd-pro-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.afd-pro-profile-choice label {
    display: block;
    position: relative;
    cursor: pointer;
}

.afd-pro-profile-choice input {
    position: absolute;
    opacity: 0;
}

.afd-pro-profile-choice span {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--afd-line);
    transition: border-color .2s ease, background .2s ease;
}

.afd-pro-profile-choice strong {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 500;
}

.afd-pro-profile-choice small {
    color: var(--afd-muted);
    font-size: 14px;
    line-height: 1.5;
}

.afd-pro-profile-choice input:checked + span,
.afd-pro-profile-choice input:focus-visible + span {
    border-color: var(--afd-ink);
    background: var(--afd-paper);
    outline: 1px solid var(--afd-ink);
}

.afd-pro-form__grid p {
    margin: 0;
}

.afd-pro-form__wide {
    grid-column: 1 / -1;
}

.afd-pro-form__grid label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.afd-pro-form input[type="text"],
.afd-pro-form input[type="email"],
.afd-pro-form input[type="tel"],
.afd-pro-form input[type="url"],
.afd-pro-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--afd-line);
    border-radius: 0;
    background: #fff;
    color: var(--afd-ink);
    font: inherit;
}

.afd-pro-form input:focus,
.afd-pro-form textarea:focus {
    border-color: var(--afd-ink);
    outline: 1px solid var(--afd-ink);
}

.afd-pro-consent {
    margin: 10px 0 28px;
    color: var(--afd-muted);
    font-size: 13px;
    line-height: 1.6;
}

.afd-pro-consent label {
    display: inline !important;
    font-weight: 400 !important;
}

.afd-pro-consent a {
    margin-left: 8px;
    text-decoration: underline;
}

.afd-pro-submit,
.afd-pro-account-cta .button {
    min-height: 50px;
    padding: 14px 24px !important;
    border: 1px solid var(--afd-accent) !important;
    border-radius: 0 !important;
    background: var(--afd-accent) !important;
    color: #fff !important;
    font-size: 14px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.afd-pro-form > p:last-child {
    margin: 38px 0 0;
}

.afd-pro-notice {
    margin: 0 0 30px;
    padding: 22px 24px;
    border-left: 3px solid var(--afd-ink);
    background: var(--afd-paper);
}

.afd-pro-notice--error {
    border-left-color: #a12d24;
}

.afd-pro-notice--success {
    border-left-color: #356b45;
}

.afd-pro-notice h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.afd-pro-notice p:last-child,
.afd-pro-notice ul {
    margin-bottom: 0;
}

.afd-pro-account-cta {
    margin-top: 42px;
    padding: 34px;
    background: var(--afd-paper);
}

.afd-pro-account-cta h2 {
    margin-top: 0;
}

.afd-pro-honeypot {
    position: absolute !important;
    left: -9999px !important;
}

@media (max-width: 680px) {
    .afd-pro-registration {
        width: min(100% - 28px, 960px);
        margin-top: 42px;
    }

    .afd-pro-profile-choice,
    .afd-pro-form__grid {
        grid-template-columns: 1fr;
    }

    .afd-pro-form__wide {
        grid-column: auto;
    }
}
