.ms-form {
    background: linear-gradient(to bottom, #6B60AD 50%, #FFFFFF 50%);
    padding: 40px 0 0 0;
    margin-bottom: 180px;
}

.ms-form.full {
    background: #6B60AD;
}

.multistep-form {
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    outline: none !important;
}

.ms-submit-color {
    text-align: right;
    max-width: 351px;
    background: #F1F1FF;
    border-radius: 30px 80px;
    padding: 65px;
    margin: 75px -80px -70px auto;
}

.ms-submit-color a.bt-submit {
    padding:18px 60px 18px 60px !important;
}

.ms-form h2,
.ms-form h3 {
    font-family: 'Poppins', sans-serif;
}

/* MODAL */

.ms-overlay {
    background: #FFFFFFB3;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
	  position:fixed;
	  top:0;
	  left:0;
	  z-index:20;
	  display:none;
}

.ms-overlay .signup-modal {
    max-width: 1200px;
    margin:0 auto;
    padding:30px 0;
}
	
.ms-overlay .signup-modal .closebt {
    background: #6B60AD;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ms-overlay .form-area {
    font-family: 'Poppins', sans-serif;
    background: #4C498E;
    border-radius: 90px 40px 100px 40px;
    padding: 80px 110px;
    position: relative;
    margin-top:20px;
}

.ms-overlay .signup-header {
    width: 60%;
    padding-bottom: 30px;
}

.ms-overlay h3 {
    font-weight: 600;
    color:#FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    line-height: 50px;
    letter-spacing: 0.02rem;
    margin-bottom: 20px;
}

.ms-overlay .ms-titlepart p {
    font-size: 14px;
    line-height: 23px;
    color: #FFFFFF;
}

.ms-overlay .signup-header h2 span {
    color:#81E5F7;
}

.ms-overlay .close-signup {
    position: absolute;
    background: #7366C1;
    border-radius: 20px;
    padding: 0 10px 0 10px;
    right: 0;
    top: 0;
    transition: all ease .2s;
}
.ms-overlay .close-signup:hover {
    background: #81E5F7;
}

.ms-overlay .signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap:30px;
    margin-bottom: 50px;
}

.ms-overlay .form-area .form-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 290px;
    position: relative;
}

.ms-overlay .form-area .form-item label {
    color:#FFFFFF !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-bottom: 10px !important;
}

.ms-overlay .form-area .form-item input {
    border-radius: 15px;
    padding: 16px 24px;
    background: #FFFFFF;
    border:solid 1px #D3B9FB;
    outline:none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color:#6B60AD;
    width: 100%;
    margin: 2px;
}

.ms-overlay .form-area .form-item input:focus {
    border: solid 3px #81E5F7;
    margin: 0;
}

.ms-overlay .signup-footer {
    display: flex;
    flex-direction: row;
    padding-top: 30px;
    border-top: solid 1px #605B9B;
}

.ms-overlay .signup-footer .left {
    width: 70%;
    font-size: 12px;
}

.ms-overlay .signup-footer .left .item {
    margin-bottom: 10px;
    padding-right: 40px;
}


.ms-overlay .signup-footer .left label {
    color: #FFFFFF;
    font-weight: 500;
}

.ms-overlay .signup-footer .left span {
    font-weight: 400;
    color:#D5D1EC;
}

.ms-overlay .signup-footer .left a {
    color:#D5D1EC;
    text-decoration: underline;
}

.ms-overlay .signup-footer .right {
    width: 30%;
}

.ms-overlay .signup-footer .form-bt {
    background: #A975F8 !important;
    border:none;
    border-radius: 36px;
    width: 100%;
    padding: 20px 31px;
    color: #FFFFFF !important;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition:all ease .2s;
    line-height: 22px;
}

.ms-overlay .signup-footer .form-bt path {
    transition: all ease .2s;
}

.ms-overlay .signup-footer .form-bt:hover {
    background:#86FEFE !important;
    color:#4F4990 !important;
}

.ms-overlay .signup-footer .form-bt:hover path {
    color:#4F4990 !important;
    fill:#4F4990 !important;
}

.ms-overlay .signup-footer .form-bt svg {
    margin: 0 10px 0 0;
}

.ms-overlay .signup-footer .item p {
    color:#D5D1EC;
    font-size: 11px;
    letter-spacing: 0.06rem;
    font-weight: 400;
}

.ms-overlay .ms-buttonarea {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}

.ms-overlay .ms-buttonarea .bt-skip {
    color:#FFFFFF;
    margin-right: 60px;
}
.ms-overlay .ms-buttonarea .bt-skip:hover {
    text-decoration: underline;
    color: #FFFFFF !important;
}

/* SUCCESS MESSAGE */

.ms-overlay #signup-success-message {
    display: none;
    width: 100%;
    height: 100%;
    border-radius:90px 40px 100px 40px;
    position: absolute;
    background: #FFFFFF;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 11;
    text-decoration: none;
		top:0;
		left:0;
}

.ms-overlay #signup-success-message h2 {
    color: #6B60AD;
    font-family:'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 41px;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom:5px;
}

.ms-overlay #signup-success-message p {
    max-width: 300px;
    text-align: center;
    font-size: 13px;
    font-weight:500;
    color: #7c7c7c;
    margin-top: 30px;
}

.ms-content p.minimal-text {
    color: #6B60AD;
    font-size: 11px;
    letter-spacing: 0.02rem;
    font-weight: normal;

    max-width: 68%;
    margin-bottom: -215px;
    margin-top: 60px;
    line-height: 190%;
}

.step-2 input[type=checkbox] + label.agree-sms {
    max-width: 60%;
    line-height: 190%;
}

.step-2 input[type=checkbox] + label.agree-sms a {
    font-weight: 600;
    color: #605B9B;
    text-decoration: underline;
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) { 
    .ms-overlay {
        padding: 60px;
        overflow: auto;
    }
}


/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) { 
    .ms-overlay .signup-header {
        width: 100%;
    }
    .ms-overlay .signup-footer {
        flex-direction: column;
    }
    .ms-overlay .signup-footer .left {
        width: 100%;
    }
    .ms-overlay .signup-footer .right {
        margin-top: 40px;
        width: 50%;
    }
    .ms-content p.minimal-text {
        max-width: 100%;
        margin-bottom: -35px;
        margin-top: 40px;
    }
    .step-2 input[type=checkbox] + label.agree-sms {
        max-width: 90%;
        margin-bottom: 120px;
        line-height: 190%;
    }
}


/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) { 
    .ms-overlay .signup-footer .left,
    .ms-overlay .signup-footer .right {
        width: 100%;
    }
    .ms-overlay .signup-header {
        width: 100%;
    }
    .ms-overlay .signup-grid {
        grid-template-columns: 1fr;
    }

    .ms-overlay .signup-footer .left .item {
        padding: 0;
        margin-bottom: 40px;
    }
    .ms-overlay .signup-footer .right {
        margin-bottom: 40px;
    }
    .ms-overlay .form-area {
        border-radius: 60px 40px 100px 40px;
    }
    .ms-submit-color a.bt-submit {
        padding:18px 50px 18px 50px !important;
    }
    .meeting-message .bt-schedule {
        padding:18px 30px 18px 30px !important;
    }
    .step-2 input[type=checkbox] + label {
        display: inline !important;
    }
    .step-2 .ms-submit-color {
        margin-top: 20px;
    }
    .ms-overlay .ms-buttonarea .bt-skip {
        margin-right: 10px;
    }
    .ms-overlay .ms-buttonarea {
        margin-top: 30px;
    }
}


/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) { 
    .ms-overlay {
        padding: 30px;
    }   
    .ms-overlay .form-area {
        padding:40px 30px;
    }
    .ms-content p.minimal-text {
        max-width: 100%;
        margin-bottom: -35px;
        margin-top: 40px;
    }
}

/* END MODAL */

.step {
    background: #F4F7FF;
    border-radius:30px 120px 30px 120px ;
    padding: 70px 80px;
    margin-bottom: 40px;
    position: relative;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; 
    transform: translateX(0);  
    overflow: hidden; 
}

.ms-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-bottom: 80px;
}

.return {
    font-size: 19px;
    color: #7D7D7D;
    text-decoration: none;
}


.return svg {
    margin-bottom: -1px;
}

.return span {
    display: inline-block;
    line-height: 46px;
    margin-left: 10px;
    padding-bottom: 2px;
}


.navigator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.navigator .num {
    width: 32px;
    height: 32px;
    border-radius: 32px;
    background: #FFFFFF;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    color:#C7C9CB;
    border: solid 1px #F2F4F8;
    font-size: 16px;
    font-weight: 600;
}


.navigator .num.active {
    background: #8F82E8;
    color:#FFFFFF;
    border: solid 1px #8F82E8;
}


.ms-title {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

.ms-title .number {
    color: #81E5F7;
    font-size: 74px;
    line-height: 90px;
    padding-right: 30px;
}

.ms-title h2 {
    font-size: 38px;
    font-weight: 600;
    color:#6B60AD;
    line-height: 48px;
}

.ms-title h2 span {
    color:#009DCE;
}

.ms-content .form-email {
    background: #FFFFFF;
    border-radius: 20px 30px 20px 30px;
    display: flex;
}

.ms-content .form-email label {
    padding: 30px 27px 25px 30px;
    margin: 0 !important;
}


.ms-content .form-email input {
    padding: 25px 25px 25px 0;
    width: 100%;
    border-radius: 0 30px 20px 0;
    border: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color:#676767;
    outline: none !important;
}


.ms-content hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ECEFF7;
    padding: 0;
    margin: 45px 0 !important;
}


.ms-content h3 {
    font-size: 20px;
    line-height: 11px;
    color: #6B60AD;
    margin-bottom: 25px;
    font-weight: 600;
}


.ms-content p {
    color:#7C7C7C;
    font-size: 14px;
    line-height: 23px;
}

.half-width {
    width: 50%;
}

.form-referral {
    padding: 0 40px;
}

.referral-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
}


.referral-grid  .referral-item {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    border-radius: 20px 35px 20px 35px;
    font-size: 15px;
    color:#676767;
    font-weight: 500;
    padding:25px 30px;
    text-decoration: none;
    transition: all ease .2s;
}

.referral-grid .referral-item:hover,
.referral-grid .referral-item.selected {
    color: #FFFFFF !important;
    background: #A975F8;
}

.referral-grid .referral-item:hover path,
.referral-grid .referral-item.selected path {
    stroke: #FFFFFF;
} 

.referral-grid a svg {
    margin-right: 20px;
}

a.bt-submit {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    background-color: #8367C8 !important;
    color: #FFFFFF !important;
    border-style: none !important;
    border-radius: 36px !important;
    box-shadow: 2.78px 2.78px 0px 0px #71C9EC !important;
    padding: 18px 70px 18px 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

a.bt-submit:hover {
    color: #FFFFFF !important;
    background: #A975F8 !important;
}
a.bt-submit:active {
    margin: 2px -2px 0 0;
    box-shadow: none !important;
}

a.bt-schedule {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    background-color: #8367C8 !important;
    color: #FFFFFF !important;
    border-style: none !important;
    border-radius: 36px !important;
    box-shadow: 2.78px 2.78px 0px 0px #71C9EC !important;
    padding: 18px 70px 18px 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

a.bt-schedule:hover {
    color: #FFFFFF !important;
    background: #A975F8 !important;
}
a.bt-schedule:active {
    margin: 2px -2px 0 0;
    box-shadow: none !important;
}

.referral-select {
    display: none;
}


/* STEP 1 */

.step-1 .ms-title {
    margin-bottom: 75px;
}

/* STEP 2 */

.step-2 .ms-title {
    display: block;
}

.step-2 .ms-title h2 {
    margin-bottom: 10px;
}

.step-2 .info-grid {
    margin-bottom: 50px;
}

.step-2 input[type=checkbox] {
    border: solid 2px #A975F8;
    border-radius: 5px;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    outline: none !important;
}
.step-2 input[type=checkbox] + label {
    font-size: 12px;
    line-height: 30px;
    font-weight: 400;
    color:#6B60AD;
}

.step-2 input[type=checkbox] + label span {
    color:#009DCE;
}

.step-2 input[type=checkbox]::after {
    border-color:#009DCE;
    border-radius: 1px;
    width: 9px;
    height: 20px;
    left:10px;
}

.step-2 .form-diagnosed {
    margin-bottom: 50px;
}

.step-2 .ms-submit-color {
    margin-top: -90px;
}

.ms-subtitle {
    font-size: 16px;
    color:#7C7C7C;
}

.rls-title {
    color:#6B60AD;
    font-size:20px;
    font-weight: 500;
    margin-bottom: 30px;
}

.rls-title span {
    color:#009DCE;
}

.diagnosed-grid,
.prescribed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.diagnosed-grid a,
.prescribed-grid a {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    border-radius: 20px 35px 20px 35px;
    font-size: 15px;
    color:#676767;
    font-weight: 500;
    padding:25px 30px;
    text-decoration: none;
    transition: all ease .2s;
}

.diagnosed-grid a svg,
.prescribed-grid a svg {
    margin-right: 20px;
}

.diagnosed-grid a:hover,
.diagnosed-grid a.selected,
.prescribed-grid a:hover,
.prescribed-grid a.selected {
    color: #FFFFFF !important;
    background: #A975F8;
}

.diagnosed-grid a:hover path,
.diagnosed-grid a.selected path,
.prescribed-grid a:hover path,
.prescribed-grid a.selected path {
    stroke: #FFFFFF;
} 

.diagnosed-check,
.prescribed-check {
    display: none;
}

.form-prescribed {
    display: none;
}

.form-prescribed h3 {
    display: flex;
}

.form-prescribed h3 .text {
    margin-left: 30px;
    line-height: 26px;
}

.form-prescribed h3 span {
    color: #A975F8;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ms-item {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px 30px 20px 30px;
    display: flex;
    align-items: center;
    padding-right: 25px;
}


.ms-item label {
    padding: 25px 25px 25px 40px;
    margin: 0 !important;
    display: flex;
}


.ms-item input,
.ms-item select {
    width: 100% !important;
    border: none !important;
    padding: 25px 0 !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    color: #676767 !important;
    font-family: 'Poppins', sans-serif !important;
    border-radius: 20px 30px 20px 30px !important;
    outline: none !important;
}

.ms-item.error {
    border:solid 1px tomato;
    color: tomato;
}

.ms-footer {
    width: 100%;
    text-align: right;
    margin-top:40px;
}

.ms-footer a.bt-submit {
    display: inline-block !important;
}

.ms-question p {
    color: #676767;
}

/* STEP 3 */

.step#form_part3 {
    padding: 0;   
}
.step#form_part3 .ms-right img {
    object-fit: cover;
}

.tks-message {
    max-width: 1200px;
    margin: -30px auto 0 auto;
    padding:0 0 30px 150px;
}

.tks-message p {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.meeting-message {
    display: none;
    margin-top: 10px;
}

.meeting-message p {
    margin-bottom: 10px;
}

.meeting-message p:nth-child(2) {
    margin-bottom: 30px;
}

.active-state .meeting-message {
    display: block;
}
.active-state .ms-header,
.active-state .short-message {
    display: none;
}

.elementor .active-state img {
    height: 100% !important;
    border-radius: 60px 0 0 40px;
}

.step4-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 10;
}

.step-4 {
    padding: 0;
    overflow: visible;
}


.step-4 .ms-header {
    display: block;
    margin-bottom: 40px;
}

.step-4 .ms-title {
    margin-bottom: 40px;
}

.ms-left {
    padding: 60px 80px 40px 110px;
}

.ms-left p {
    color: #676767;
    font-size: 16px;
}

.ms-right {
    text-align: right;
}

.ms-right img {
    margin-bottom: -70px;
}

.step-helper {
    background: #A975F8;
    color: #FFFFFF;
    padding: 77px 0 46px 0;
    font-size: 18px;
    font-weight: 500;
    margin-top: -80px;
    z-index: 0;
}

.ms-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 100px;
}

.step-helper svg {
    margin-right: 20px;
}


#form_part2,
#form_part3,
#form_part4,
.step-helper {
    display: none;
}

.slide-left {
    transform: translateX(-100%); /* Move the element out of view to the left */
}

.slide-right {
    transform: translateX(100%); /* Move the element out of view to the right */
}

.from-left {
    transform: translateX(-100%); /* Immediately place the element out of view on the left */
}



/* Large devices (desktops, less than 1200px) */

@media (max-width: 1199.98px) { 


}

/* Medium devices (tablets, less than 992px) */

@media (max-width: 991.98px) { 
    .ms-form {
        padding: 0 30px;
    }

    .referral-grid,
    .info-grid,
    .step4-grid {
        grid-template-columns: 1fr;
    }

    .diagnosed-grid,
    .prescribed-grid {
        grid-template-columns: 1fr 1fr;
    }

    .half-width {
        width: 100%;
    }

    .ms-right {
        display: none;
    }
}

/* Small devices (landscape phones, less than 768px) */

@media (max-width: 767.98px) { 

    .ms-form {
        padding: 0 20px;
    }

    .referral-grid,
    .diagnosed-grid,
    .prescribed-grid,
    .info-grid,
    .step4-grid {
        grid-template-columns: 1fr;
    }

    .step-4 .ms-header,
    .ms-header,
    .ms-right {
        display: none;
    }

    .ms-title {
        flex-direction: column;
    }

    .step {
        padding: 35px;
    }

    .ms-title h2 {
        font-size: 25px;
        line-height: 33px;
    }

    .ms-item label {
        padding: 25px;
    }

    /* Step 1 Mobile Changes */
    .step-1 .ms-question {
        margin-top:30px;
    }

    .step-1 .form-email,
    .step-1 hr {
        display: none;
    }

    .step-1 .form-referral {
        padding: 0;
    }

    .step-1 .ms-content h3 {
        font-size: 25px;
        line-height: 31px;
    }

    .ms-left {
        padding: 25px;
    }

    .ms-container {
        padding-left: 80px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */

@media (max-width: 575.98px) { 
    .step-2 .ms-submit-color {
        margin-top: 30px;
    }
    .step.step-3 {
        border-radius:30px 40px !important;
    }
    .multistep-form {
        padding-top: 40px;
    }
    .tks-message {
        padding:10px 0 30px 10px;
    }
}