.swipe-form-wrapper {
    width: 100%;
    margin: 0 auto;
}

footer .section .swipe-form-wrapper {
    display: none;
}

.swipe-form {
    max-width: 424px;
}

.swipeform #swipecheckerror{
    margin-top: 5px;
}

.swipeform .swipe-button  {
    position: relative;
    min-height: 44px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.swipeform .btn-loader-spin{
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swipe-form form {
    display: flex;
    align-items: stretch;
    background: var(--color-white);
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    box-shadow: var(--primary-boxshadow);
    flex-direction: column;
}

.swipe-form .field-wrapper {
    margin: 0;
}

.swipe-form .field-wrapper.number-wrapper {
    flex: 1;
    display: flex;
}

.swipe-form .field-wrapper input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px 0 0 6px;
    border: 1px solid var(--color-neutral-200);
    background-color: var(--color-white);
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 16px;
    outline: none;
}

.swipe-form .field-wrapper input[type="number"]::-webkit-outer-spin-button,
.swipe-form .field-wrapper input[type="number"]::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.swipe-form .field-wrapper.submit-wrapper {
    flex-shrink: 0;
    display: flex;
}

.swipe-form .field-wrapper button.button {
    padding: 12px 8px;
    border: none;
    border-radius: 0 6px 6px 0;
    background-color: var(--color-primary);
    box-shadow: var(--primary-boxshadow);
    text-transform: uppercase;
    color: var(--btn-primary-color);
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    cursor: pointer;
    min-height: 42px;
}

.mf-page .swipe-form .field-wrapper button.button {
    text-transform: unset;
}

.swipe-form .error-message {
    padding-left: 4px;
    color: var(--color-error-medium);
    font-size: 12px;
    display: none;
}

.swipe-form .form-fields-wrapper {
    display: flex;
}

.swipeform {
    position: fixed;
    width: 100%;
    inset: 0;
    top: auto;
    bottom: -100%;
    transition: bottom 0.3s ease;
    background: white;
    z-index: 1000;
}

.swipeform.active {
    bottom: 0;
}

.form-fields-wrapper.hidden {
    display: none;
}

.swipeform-close-icon{
    position: absolute;
    right: 5%;
    top: 5%;
}

@media (width <=1024px) {
  .swipeform {
    box-shadow: 0 4px 20px rgb(0 0 0 / 80%);
  }

    main > .section .swipe-form-wrapper,
    footer .section .swipe-form-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        padding: 0;
        z-index: 10;
    }

    footer .section .swipe-form-wrapper {
        display: block;
        z-index: 9;
    }

.strategy-builder footer .section .swipe-form-wrapper {
    z-index: 11;
}

    .strategy-builder main > .section .demat-form-wrapper, .strategy-builder footer .section .demat-form-wrapper {
       display: none;
       opacity: 0;
    }

    main > .section .banner-card .swipe-form-wrapper {
        position: static;
    }

    .swipe-form .field-wrapper input[type="number"] {
        border-radius: 4px 0 0 4px;
    }

    .swipe-form .field-wrapper button.button {
        border-radius: 0 4px 4px 0;
        background-color: var(--color-primary);
        box-shadow: var(--primary-boxshadow);
        color: var(--color-white);
        width: 100%;
    }

    .swipe-form form {
        background: var(--brand-blue-dark);
        border-radius: 8px 8px 0 0;
    }

    .swipe-form {
        max-width: 100%;
    }

    footer.footer-wrapper {
        padding-bottom: 58px;
    }

    .stock-page main > .section .swipe-form-wrapper {
        z-index: 1000;
    }

    .swipe-form .field-wrapper.submit-wrapper {
        flex: 1;
    }

    .learning-centre footer {
        padding-bottom: 0;
    }
}

@media (width <= 768px) {
    .swipe-form .error-message {
        color: var(--color-error-medium);
    }

    .swipe-form .field-wrapper.submit-wrapper {
        flex: unset;
    }

    .mf-page .swipe-form .field-wrapper.submit-wrapper {
        flex: 1;
    }

    .swipeform {
        padding: 20px;
        background: #2B2E8C;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .swipeform .swipe-text {
        font-size: 24px;
        margin: 0 0 10px;
        color: #fff;
        font-family: var(--font-secondary);
        font-weight: var(--font-weight-medium);
        text-transform: capitalize;
        line-height: normal;
        text-align: center;
    }

    .swipeform input{
        font: inherit;
        width: 100%;
        padding: 8px;
        margin: 0;
        border-radius: 4px;
        background: var(--page-bg-color);
        border: 1px solid var(--color-light-gray-24);
        outline: none;
    }

    .swipeform label{
        color: #fff;
        display: flex;
        justify-content: normal;
        gap: 8px;
        font-size: 12px;
        align-items: center;
        margin: 0;
    }

    .swipeform label input{
        width: 20px;
        height: 20px;
        margin: 0;
    }

    button.swipe-button {
        background: #fff;
        color: #0F0F10;
        font-size: 16px;
        font-weight: 600;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}