.expert-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    visibility: hidden;
}
.expert-popup.active {
    visibility: visible;
}
.expert-popup__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.expert-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(223, 223, 223, 0);
    transition: background 0.45s ease;
}
.expert-popup.active .expert-popup__overlay {
    background: rgba(223, 223, 223, 0.7);
}
.expert-popup.active .expert-popup__overlay::before {
    opacity: 1;
}
.expert-popup__body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 716px;
    margin: auto 0;
    border-radius: 40px;
    will-change: transform, opacity;
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    background: linear-gradient(179deg, rgba(59, 59, 59, 0.9) 0%, rgba(59, 59, 59, 0.9) 98.3%);
    box-shadow: 1.81854px 104.184px 208.4px rgba(11, 11, 11, 0.219), inset -0.541521px -31.0237px 31.0284px #2B2B2B, inset 0.541521px 31.0237px 31.0284px #3D3D3D;
}
.expert-popup.active .expert-popup__body {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.expert-popup__content {
    padding: 60px 40px 40px 40px;
}
.expert-popup__close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 14px;
    height: 14px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: 24px;
    line-height: 0;
    cursor: pointer;
    transition: .2s;
}
.expert-popup__close:hover {
    color: #fff;
}
.expert-popup__title {
    margin: 0 0 12px;
    text-align: center;
    color: #fff;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
}
.expert-popup__steps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.expert-popup__step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-size: 22px;
    line-height: 24px;
    color: #FFFFFF;
}
.expert-popup__step span {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 14px;
    color: #FFFFFF;
    z-index: 1;
}
.expert-popup__step span::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        #3CA0D2 0%,
        #48DCA6 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.expert-form__field {
    margin-bottom: 24px;
}
.expert-form__label {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 29px;
}
.expert-form__label span {
    color: #66F5FF;
}
.wpcf7-form-control-wrap{
    width: 100%;
}
.expert-form__input{
    max-height: 68px;
}
.expert-form__input,
.expert-form__textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #48DCA6;
    outline: none;
    transition: .2s;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-size: 22px;
    line-height: 32px;
    color: #FFFFFF;
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.07), inset 0px 4px 4px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(9.3px);
    border-radius: 15px;
}
.expert-form__input::placeholder,
.expert-form__textarea::placeholder {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-size: 22px;
    line-height: 32px;
    color: rgba(255, 255, 255, 0.9);
}
.expert-form__input:focus,
.expert-form__textarea:focus {
    border-color: #62ffd2;
}
.expert-form__textarea {
    resize: vertical;
    min-height: 68px;
}
.expert-form__policy {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;
    color: #FFFFFF;
    opacity: 0.8;
    margin: 40px auto 0 auto;
    max-width: 406px;
    text-align: center;
}
.expert-form__policy a{
    font-weight: 600;
    color: #FFFFFF;
}
.expert-form__submit {
    margin-top: 40px;
}
.expert-form__button {
    position: relative;
    width: 100%;
    height: 66px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 38px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);
    padding: 14px 0px;
    background: linear-gradient(305.95deg, #48DCA6 11.05%, #3CA0D2 91.72%);
    transition: transform .3s ease, box-shadow .3s ease;
    filter: drop-shadow(12px 18px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0px 0px 22px rgba(255, 255, 255, 0.2));
}
.expert-form__button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
    box-shadow: inset -11px -11px 16px #369B99, inset 11px 11px 16px #61EAE8;
}
.expert-form__button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90.13deg, #3ca0d2 .12%, #48dca6 99.91%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}
.expert-form__button span {
    position: relative;
    z-index: 2;
}
.expert-form__button:hover::after {
    opacity: 1;
    box-shadow: inset 11px 11px 16px #369B99, inset -11px -11px 16px #61EAE8;
    filter: drop-shadow(12px 18px 12px rgba(0, 0, 0, 0.3));
}
.wpa-test-msg{
    display: none;
}
.expert-popup__bottom-text {
    margin-top: 24px;
    text-align: center;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
}
.expert-form .wpcf7-spinner {
    display: none;
}
.expert-form .wpcf7-not-valid-tip{
    font-size: 0;
    position: absolute;
    right: 10px !important;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('/wp-content/themes/wp-RA/assets/img/alert-triangle.svg');
    width: 23px;
    height: 20px;
    left: initial;
}

@media (max-width: 1023px){
    .expert-popup__title{
        text-align: left;
        margin: 0;
        font-size: 32px;
        line-height: 44px;
    }
    .expert-popup__top{
        display: flex;
        gap: 40px;
        align-items: center;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    .expert-popup__steps{
        flex-direction: column;
        margin: 0;
        width: 100%;
        max-width: fit-content;
        gap: 8px;
    }
    .expert-popup__step{
        font-size: 20px;
        line-height: 26px;
    }
    .expert-popup__step span{
        font-size: 14px;
        line-height: 13px;
    }
    .expert-form__input{
        max-height: 65px;
    }
    .expert-form__input, .expert-form__textarea{
        font-size: 20px;
        line-height: 29px;
        padding: 18px;
    }
    .expert-form__input::placeholder,
    .expert-form__textarea::placeholder {
        font-size: 20px;
        line-height: 29px;
    }
    .expert-form__textarea {
        min-height: 65px;
    }
    .expert-form__button{
        font-size: 26px;
        line-height: 35px;
        letter-spacing: 0.02em;
    }
    .expert-popup__bottom-text{
        font-size: 18px;
        line-height: 22px;
        margin-top: 14px;
    }
}

@media (max-width: 767px) {
    .expert-popup{
        padding: 40px 0;
    }
    .expert-popup__body{
        border-radius: 0;
    }
    .expert-popup__content {
        padding: 60px 36px;
    }
    .expert-popup__top{
        display: block;
        margin-bottom: 0;
        padding: 0;
    }
    .expert-popup__title {
        text-align: center;
        font-size: 34px;
        line-height: 34px;
        margin-bottom: 12px;
    }
    .expert-popup__steps {
        align-items: center;
        gap: 6px;
        margin-bottom: 24px;
        flex-direction: row;
        max-width: 100%;
    }
    .expert-popup__step{
        font-size: 16px;
        line-height: 22px;
        gap: 4px;
    }
    .expert-popup__step span{
        width: 16px;
        height: 16px;
        font-size: 9.33333px;
        line-height: 10px;
    }
    .expert-form__field{
        margin-bottom: 12px;
    }
    .expert-form__input{
        max-height: 51px;
    }
    .expert-form__input, .expert-form__textarea{
        font-size: 16px;
        line-height: 23px;
        padding: 14px 18px;
    }
    .expert-form__textarea {
        min-height: 51px;
    }
    .expert-form__input::placeholder,
    .expert-form__textarea::placeholder {
        font-size: 16px;
        line-height: 23px;
    }
    .expert-form__submit{
        margin-top: 24px;
    }
    .expert-form__button{
        font-size: 22px;
        line-height: 30px;
    }
    .expert-form__policy{
        margin: 24px auto 0 auto;
        max-width: 292px;
    }
    .expert-popup__bottom-text{
        font-size: 16px;
        line-height: 26px;
        margin-top: 12px;
    }
}

@media (max-width: 480px){
    .expert-popup__title{
        max-width: 324px;
        margin: 0 auto 12px auto;
    }
}