@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Medium.ttf');
}

.how_we_work_container {
    width: 100%;
    height: 100%;
    padding-bottom: 20vh;
    margin-bottom: 0;
    background-color: rgb(26, 24, 27);
}

.step.two form {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    font-family: Montserrat;
}

.gradient-button {
    position: relative;
    background: linear-gradient(90deg, rgb(39, 30, 20), rgb(0, 156, 240));
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    overflow: hidden; /* Скрываем псевдоэлемент за пределами кнопки */
    margin-bottom: 5px;
}

/* Псевдоэлемент для градиента */
.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 30, 20, 0.289);
    opacity: 0; /* Начальная прозрачность */
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Текст кнопки */
.gradient-button span {
    position: relative;
    z-index: 2; /* Поднимаем текст над псевдоэлементом */
}

/* Эффект при наведении */
.gradient-button:hover::before {
    opacity: 1; /* Показываем псевдоэлемент */
}

/* Увеличение тени при наведении */
.gradient-button:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.how_we_work_container h2 {
    margin-top: 0;
    padding-top: 20px;
    margin-bottom: 5vh;
}

.step {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    margin-left: 10vw;
}

.step.two {
    align-self: self-end;
}

.step.two .step-number {
    margin-right: 0;
    margin-left: 10vw;
}

.step.four {
    align-self: self-end;
}

.step.four .step-number {
    margin-right: 0;
    margin-left: 10vw;
}

.step-number {
    font-size: 32px;
    font-weight: bold;
    margin-right: 10vw;
    color: #888;
}

.step-content {
    padding: 0;
    display: flex;
    justify-content: space-between;
    background: #2b2725;
    min-height: 45vh;
    padding-right: 20px;
    border-radius: 10px;
    gap: 1.5rem;
    padding-left: 5px;
}

.step-content p {
    color: rgb(232, 225, 219);
}

.step-content.two, .step-content.four {
    background-color: rgb(23, 93, 131);
    padding-right: 0;
}

.step-content.two {
    padding-left: 10px;
}

.step-content.four {
    padding-left: 15px;
}

.inner_content {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.step-content.three img {
    height: 400px;
}

.step-content img {
    margin-top: 15px;
    margin-bottom: 15px;
    align-self: center;
    width: 290px;
    height: 237px;
    border-radius: 10px;
    margin-left: 20px;
}

.step-content.two img, .step-content.four img {
    margin-left: 0;
    margin-right: 20px;
}

.step-content h3 {
    color: rgb(36, 151, 214);
    font-weight: bold;
    font-size: 30px;
    text-align: left;
    padding-left: 5px;
}

.step-content p {
    font-size: 20px;
    text-align: left;
    padding-left: 5px;
}

.step-content.two h3 {
    color: rgb(15, 14, 14);
    text-align: left;
    padding-left: 5px;
}

.step-content.two p {
    text-align: left;
    padding-left: 5px;
    font-size: 20px;
}

.step-content.four h3 {
    color: rgb(15, 14, 14);
    text-align: left;
    padding-left: 5px;
}

.step-content.four p {
    text-align: left;
    padding-left: 5px;
    font-size: 20px;
}

.line {
    left: 20px;
    width: 10%;
    height: 2px;
    background-color: rgb(36, 151, 214);
}

.line.two, .line.four {
    background-color: #888;
}

.step.two form {
    width: 100%;
}

#phone3 {
    border: 1px solid #d5d5d5;;
    outline: none;
    border-radius: 7px;
    width: 100%;
    font-size: 20px;
    color: black;
    padding: 0.8rem;
    box-shadow: 4px 4px 8px 10px rgba(34, 60, 80, 0.1);
}

.step.two form input {
    height: 55px;
}

@media (max-width: 1058px) {
    .step {
        width: 90%;
        margin-left: 5vw;
    }

}

@media (max-width: 1128px) {
    .step-content h3 {
        font-size: 24px;
    }

    .step-content p {
        font-size: 17px;
        text-align: left;
        padding-left: 5px;
    }

    .step-content.two p {
        text-align: left;
        padding-left: 5px;
        font-size: 17px;
    }

    .step-content.four p {
        text-align: left;
        padding-left: 5px;
        font-size: 17px;
    }

}

@media (max-width: 782px) {
    .step.two form {
        width: 90%;
    }

    .inner_content {
        justify-content: center;
        align-items: center;
    }

    .how_we_work_container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .step-content {
        flex-direction: column;
        width: 50%;
        height: 100%;
        padding-left: 0;
        padding-right: 0;
        padding: 10px;
    }

    .step-content.two, .step-content.four {
        padding-right: 0;
        padding-left: 0;
    }

    .inner_content.one {
        padding-right: 0;
    }

    .inner_content.two {
        padding-left: 0;
    }

    .inner_content.three {
        padding-right: 0;
    }

    .inner_content.four {
        padding-left: 0;
    }

    .step {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        /* height: 100%; */
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .step-content.two, .step-content.four {
        flex-direction: column-reverse;
    }

    .step-number {
        margin: 0;
    }

    .step.two {
        flex-direction: column-reverse;
    }

    .step.four {
        flex-direction: column-reverse;
    }

    .step.two .step-number {
        margin: 0;
    }

    .step.four .step-number {
        margin: 0;
    }

    .step-content h3, .step-content p {
        text-align: center;
        padding-left: 5px;
    }

    .step-content.two h3, .step-content.two p {
        text-align: center;
        padding-left: 5px;
    }

    .step-content.four h3, .step-content.four p {
        text-align: center;
        padding-left: 5px;
    }

    .inner_content.two, .inner_content.three, .inner_content.four {
        padding: 3px;
    }

    .line {
        left: 20px;
        width: 2px;
        height: 20px;
        background-color: rgb(36, 151, 214);
    }

    .step.four, .step.two {
        align-self: center;
    }

    .step-content .phone_img {
        margin-right: 15px;
    }

    .step-content img {
        margin: 0;
        margin-top: 10px;
        width: 250px;
        height: 200px;
    }

    .step-content.two img, .step-content.four img {
        margin: 0;
        margin-top: 10px;
        width: 250px;
        height: 200px;
    }

    .inner_content.one p {
        margin-bottom: 20px;
    }
}

@media (max-width: 520px) {
    .step-content {
        width: 80%;
    }
}

.step-content.two .privacy input[type="checkbox"]:focus,
.step-content.two .privacy input[type="checkbox"]:active,
.step-content.two .privacy input[type="checkbox"]:focus-visible {
    box-shadow: none;
    outline: #0000006d;;
}

.step-content.two .privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #0000006d;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 500ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
  }

  .step-content.two .privacy input[type="checkbox"]::after {
    content: "✓";
    font-size: 25px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 500ms ease;
    line-height: 1;
    margin-top: -2px;
  }

  .step-content.two .privacy input[type="checkbox"]:checked {
    background-color: rgb(36, 151, 214);
    border-color: transparent;
}

.step-content.two .privacy input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

.step-content.two .privacy_text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.step-content.two .privacy_text .inner_priv {
    text-align: left;
    font-size: 14px;
}

.step-content.two .privacy_text .inner_priv button {
    background: transparent;
    border: none;
    text-align: left;
    color: rgb(36, 151, 214);
    text-decoration: underline;
    padding: 0;
    margin: 0;
    height: auto;
}
