.tgs-banner .d40 {
    flex: 0 0 40%;
    max-width: 40%;
}

.tgs-banner .d60 {
    flex: 0 0 60%;
    max-width: 60%;
}

.tgs-banner .flex-reverse {
    flex-direction: row-reverse;
}

.tgs-banner h1 {
    font-size: var(--f-s-page-title);
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-secondary);
}

.tgs-banner h1 strong {
    background: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: var(--f-s-page-title);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tgs-banner .ulblock ul {
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tgs-banner .ulblock ul li {
    list-style: none;
    position: relative;
    padding-left: 30px;
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 10px;
}

.tgs-banner .ulblock ul li::before {
    content: "";
    background: url("../../icons/tick-square.png") no-repeat;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 3px;
}

.formcontainer {
    display: inline-block;
    border: 1px solid #ececec;
    background: #fdfefe;
    box-shadow: 0 8px 13px 0 rgb(50 77 103 / 15%);
    padding: 8px;
    border-radius: 12px;
    order: 1;
}

.formcontainer input {
    border-radius: 4px 0 0 4px;
    margin-bottom: 0 !important;
    padding: 12px;
    background: #f2f5f9;
    height: 40px;
    border: solid 1px #ddd;
    font-size: 14px;
    width: 250px;
}

.formcontainer .submitcta {
    border-radius: 0 6px 6px 0;
    background: var(--color-primary);
    box-shadow: 0 8px 13px 0 rgb(50 77 103 / 15%);
    height: 40px;
    color: var(--color-white);
    padding: 8px 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

.activeclients p,
.yearssince p {
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1;
}

.activeclients small,
.yearssince small {
    font-size: 12px;
}

.error-message {
    font-size: 12px;
    color: red;
    margin-top: 5px;
}

.formcontainer input:focus-visible,
.formcontrol:focus-visible {
    outline: none;
}

.activeclients {
    order: 2;
    position: relative;
    margin-top: 10px;
}

.activeclients::before {
    content: "";
    position: absolute;
    background: url("../../icons/users-tgs.svg");
    width: 40px;
    height: 40px;
    left: -50px;
}

.yearssince {
    order: 3;
    position: relative;
    margin-top: 10px;
}

.yearssince::before {
    content: "";
    position: absolute;
    background: url("../../icons/years-tgs.svg");
    width: 40px;
    height: 40px;
    left: -50px;
    top: -3px;
}

.flex.innerflex {
    justify-content: space-between;
    margin-top: 10px;
}

.d48 {
    flex: 0 0 48%;
    max-width: 48%;
}

.formcontrol {
    background-color: #f4f5f6;
    color: #5b6471;
    border: none;
    width: 100%;
    height: 36px;
    margin-top: 15px;
    padding: 15px;
    resize: none;
    font-size: 14px;
}

textarea.formcontrol {
    height: 62px;
}

.popupformblock button {
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.popupbody.flex {
    width: 60%;
    position: fixed;
    z-index: 999;
    top: 10px;
    background: #fff;
    padding: 30px 20px 20px;
    border-radius: 8px;
    left: calc(50% - 30%);
    align-items: center;
}

.popupheader {
    font-size: 28px;
    color: var(--text-seaction-heading);
    font-weight: 600;
    padding-right: 15px;
}

.emailid,
.phone {
    position: relative;
    margin-top: 30px;
}

.emailid p,
.phone p {
    margin: 0;
    padding-left: 50px;
    position: relative;
}

.emailid p:first-child,
.phone p:first-child {
    font-weight: 600;
    color: var(--color-text-primary);
}

.emailid p:last-child,
.phone p:last-child {
    color: var(--color-primary);
    font-size: 14px;
}

.emailid::after {
    content: "";
    background: url("../../icons/users-tgs.svg");
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 2px;
}

.phone::after {
    content: "";
    background: url("../../icons/years-tgs.svg");
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 2px;
}

.backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 60%);
    inset: 0;
    z-index: 99;
    overflow: hidden;
    display: none;
}

.closeicon {
    position: absolute;
    right: 20px;
    top: 4px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.closeicon::before,
.closeicon::after {
    content: "";
    box-sizing: border-box;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 3px;
    border-radius: 1px;
    background-color: var(--brand-primary-600);
}

.closeicon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.form-fields-wrapper{
    display: flex;
}

.popupbody.flex .popupformblock{
    height: 430px;
    overflow-y: scroll;
}

.popupbody.flex .popupformblock form{
    padding-right: 10px;
}

.popupbody.flex .popupformblock::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.popupbody.flex .popupformblock::-webkit-scrollbar-thumb{
    background: var(--color-primary);
    border-radius: 3px;
}

.popupbody.flex .popupformblock::-webkit-scrollbar-track{
    background: var(--color-neutral-100);
}

.popupbody.flex .popupformblock p{
    margin-bottom: 0;
    font-size: 14px;
}




@media (width <= 768px) {
    .popupformblock form {
        padding-bottom: 60px;
    }

    .tgs-banner h1 {
        font-size: var(--f-s-page-title);
        margin: 0;
    }

    .tgs-banner .flex.flex-reverse {
        flex-flow: column-reverse wrap;
    }

    .tgs-banner .d40 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tgs-banner .d60 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tgs-banner .ulblock ul li {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .flex.innerflex {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .formcontainer form .form-fields-wrapper{
        display: flex;
        flex-wrap: wrap;
    }

    .formcontainer input {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .formcontainer .submitcta {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .activeclients::before,
    .yearssince::before {
        width: 25px;
        height: 25px;
        background-size: 100%;
        left: -30px;
    }

    .error-message {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .formcontainer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px 8px 0 0;
        z-index: 9999;
    }

    .popupbody {
        flex-wrap: wrap;
    }

    .popupbody .d48 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .popupbody.flex {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        left: 0;
        bottom: 0;
        top: initial;
        border-radius: 8px 8px 0 0;
    }

    .popupheader {
        font-size: 20px;
    }

    .emailid,
    .phone {
        margin-top: 10px;
    }

    .popupformblock {
        height: 300px;
        overflow: scroll;
        padding-bottom: 40px;
    }

    .tgs-banner .ulblock ul li::before {
        top: 1px;
    }
}

.footer .section .demat-form-wrapper{
    display: none;
  }