div.column.mainContent#registerApp {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100vh;
}

article#adminStructure:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100vh;
    background: linear-gradient(-45deg, #4097fd, #2474d1, #7c73cf, #6884d4);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

div#start.subHeader h2 {
    text-align: left;
    margin: 0;
    padding: 10px 0 10px 20px;
    font-size: 18px;
    font-weight: 300;
    background: linear-gradient(to bottom, #f9f9f9 0%, #f7f7f7 80%, #f2f2f2 100%);
}

div#start.content {
    display: block;
    vertical-align: top;
    padding: 0 20px;
}

.registerApp .step.start .button {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 0;
    text-align: center;
}

.registerApp .step.start .button .next {
    display: block;
    width: 142px;
    height: 40px;
    max-height: 40px;
    margin: 20px calc(50% - 75px);
    padding: 0 10px 0 10px;
    line-height: 22px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #f9f9f9 0%, #f7f7f7 40%, #eaeaea 100%);
    border: 1px solid #9b9b9b;
    text-shadow: 0px 1px 2px #fff;
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.registerApp .step.start .button .next:hover,
.registerApp .step.start .button .next:target {
    background: #3399CC;
    border: 1px solid #3399CC;
    color: #fff;
    text-shadow: none;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.registerApp {
    position: fixed;
    top: 140px;
    left: calc(50% - 320px);
    z-index: 10;
    max-width: 640px;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.registerApp .headerLine {
    display: block;
    width: calc(100% - 20px);
    border-radius: 12px 12px 0 0;
    padding: 10px 0 10px 20px;
}

div.column.mainContent#registerApp h1 {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #fff;
}

.animatedGradient {
    background: linear-gradient(270deg, #50a2ff, #3891fd, #8dccff, #3e83f3);
    background-size: 800% 800%;
    -webkit-animation: animatedGradient 12s ease infinite;
    -moz-animation: animatedGradient 12s ease infinite;
    animation: animatedGradient 12s ease infinite;
}

@keyframes animatedGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.fadeGradient {
    position: fixed;
    z-index: 10;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0.55) 40%, rgba(234, 234, 234, 0.75) 100%);
}

div.registerApp,
.registerApp .formBlock {
    display: block;
    padding-bottom: 0;
}

.registerApp .form {
    border-radius: 0 0 12px 12px;
}

/* Контейнер для шагов формы */
.registerApp .form .formBlock {
    display: block;
    max-width: 600px;
    width: calc(100% - 40px);
    padding: 20px;
    vertical-align: top;
    height: auto;          /* важно: авто */
}

/* Все шаги формы по умолчанию скрыты */
.registerApp .form .formBlock .step {
    display: none;
    position: relative;
    width: 100%;
}

/* Активный шаг */
.registerApp .form .formBlock .step.visible {
    display: block;
}

button.contactUs {
    display: none;
}

main .registerApp .form .formBlock label input#iAgreeRules {
    position: relative;
    top: 3px !important;
    margin-right: 8px !important;
}

.step.start.hidden,
.form.hidden {
    display: none;
}

i.intro {
    display: block;
    width: 320px;
    height: 160px;
    margin: 12px auto;
    background-image: url('/img/sign-page-abstract-concept-illustration.webp');
    background-size: auto 190px;
    background-repeat: no-repeat;
    background-position: center;
}

div#start.content p {
    max-width: 360px;
    margin: 0 auto 10px;
    font-size: 14px;
}

.registerApp .form .formBlock .block.other {
    min-height: 100px;
    margin-bottom: 0;
}

.registerApp .form .formBlock .whatsApp label.small {
    position: relative;
    top: 10px;
    display: block;
    width: 100%;
    height: 30px;
}

.whatsApp label.small input#sameAsPhone {
    width: 14px;
    height: 14px;
    position: relative;
    top: 2px;
}

/* ====== DESKTOP / LARGE ====== */
@media (min-width: 769px) {
    .registerApp .step.start,
    .registerApp .form .formBlock {
        width: 640px;
    }
    .registerApp .form .formBlock {
        min-height: 360px;
        height: auto;
    }
    #two.step.visible {
        min-height: 360px;
    }
    .formBlock div#two .normalizeHeight {
        display: block;
        height: 300px;
        vertical-align: top;
    }
}

/* ====== MOBILE / TABLET ====== */
@media (max-width: 768px) {
    .registerApp {
        position: fixed;
        top: 125px;
        left: 0;
        z-index: 10;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 125px);
        padding: 0;
        background: #fff;
        border-radius: 0;
    }

    .registerApp .headerLine {
        border-radius: 0;
    }
    
    .registerApp .form .formBlock {
        max-width: calc(100% - 5px);
        height: 100%;
        overflow-y: auto;
        padding-bottom: 120px;
    }

    .registerApp .step.visible i.title {
        width: calc(100% + 8px);
        margin-bottom: 20px;
    }

    .registerApp .form .formBlock .block {
        width: 100%;
    }

    .registerApp .form .formBlock textarea.comment {
        display: block;
        width: 100%;
        max-width: calc(100% - 20px);
    }

    .registerApp .step.visible .buttons {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        margin: 0 auto;
        padding: 20px 20px 40px 20px;
        position: fixed;
        left: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(254, 255, 255, 1) 0%, rgba(247, 247, 247, 1) 50%, rgb(248, 247, 247) 100%);
    }
}

@media (min-width: 500px) and (max-width: 768px) {
    .formBlock .step.visible {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px 0 0;
    }

    .block.fullName .firstName,
    .block.contacts .email,
    .block.other .telegram,
    .block.company .company,
    .block.other .appTitle {
        margin-right: 30px;
    }

    .demoRequest.active .wrapper .form .formBlock .block div input,
    .registerApp .form .formBlock .block div input {
        width: 100%;
        max-width: 280px;
        height: 36px;
        padding-left: 10px;
    }
}
@media (max-width: 550px) {
    html, body {
        overflow: hidden;
    }
    .formBlock div#one.visible, 
    .formBlock div#two.visible, 
    .formBlock div#three.visible {
        display: block;
        height: calc(100vh - 100px);
        padding-bottom: 130px;
    }
    .registerApp .form .formBlock .block.rules {
        padding: 5px 0 20px 0;
    }
}

/* Hide WhatsApp input field – leave only checkbox */
.registerApp .form .formBlock .whatsApp input#whatsApp {
    display: none !important;
}