﻿body {
    direction: rtl;
}

.request-page {
    margin: 30px 0;
}
    /* tiles */

    .request-page .page-header .items {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

        .request-page .page-header .items .item {
            margin-bottom: 30px;
            flex-basis: 35%;
            box-shadow: 0 0 10px #ccc;
            border-radius: 10px;
            text-align: center;
            transition: all .3s ease-in-out;
        }

            .request-page .page-header .items .item a {
                text-decoration: none;
                color: #000;
            }

            .request-page .page-header .items .item:hover {
                transform: scale(1.05);
                box-shadow: 6 6 10px #ccc;
                background: #ececec;
                cursor: pointer;
            }

            .request-page .page-header .items .item .icon {
                width: 80px;
                height: 80px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 200px;
                margin: 16px auto 0;
                box-shadow: 0 0 10px #d6c6c6;
            }

                .request-page .page-header .items .item .icon img {
                    width: 45px;
                }

            .request-page .page-header .items .item h4 {
                font-size: 20px;
                margin-bottom: 25px;
                padding: 15px;
            }

.red {
    background-color: rgb(247, 54, 54);
}

.blue {
    background-color: rgb(80, 91, 252);
}

.green {
    background-color: rgb(64, 247, 103);
}

.orange {
    background-color: rgb(255, 174, 68);
}

.mint {
    background-color: rgb(54, 220, 226);
}

@media (max-width: 991px) {
    .request-page .page-header .items .item {
        flex-basis: 48%;
    }
}

@media (max-width: 768px) {
    .request-page .page-header .items .item {
        flex-basis: 100%;
    }
}



.application-steps *,
.application-steps *::before,
.application-steps *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.request-page h3 {
    margin-bottom: 30px;
}

.application-steps h1 {
    text-align: center;
}

.application-steps ol {
    width: min(60rem, 90%);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    counter-reset: cardnr;
    justify-content: center;
}

.application-steps li {
    --frontColor: white;
    --width: 10em;
    --inlineP: 0.5rem;
    --borderR: 4rem;
    --arrowW: 2rem;
    --arrowH: 1.5rem;
    counter-increment: cardnr;
    width: calc(var(--width) - var(--inlineP) * 2);
    display: grid;
    grid-template:
        "icon" var(--borderR)
        "title"
        "descr" 1fr;
    margin-inline: var(--inlineP);
    margin-bottom: 100px;
    position: relative;
    flex-basis: 27%;
}

    .application-steps li .icon,
    .application-steps li .title,
    .application-steps li .descr {
        background: var(--frontColor);
        padding-inline: 1rem;
        padding-bottom: 1rem;
    }

    .application-steps li .icon,
    .application-steps li .title {
        color: var(--accent-color);
        text-align: center;
        padding-bottom: 0.5rem;
    }

    .application-steps li .title,
    .application-steps li .descr {
        filter: drop-shadow(0.125rem 0.125rem 0.075rem rgba(0, 0, 0, 0.25));
    }

    .application-steps li .icon {
        grid-area: icon;
        font-size: 2rem;
        display: grid;
        place-items: center;
        border-radius: var(--borderR) 0 0 0;
        position: relative;
        background: #faf6f6;
        box-shadow: 0 6px 6px #ccc;
    }

    .application-steps li .title {
        grid-area: title;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .application-steps li .descr {
        grid-area: descr;
        font-size: 0.85rem;
        text-align: right;
        background: #faf6f6;
    }

        .application-steps li .descr::before {
            content: "";
            width: var(--arrowW);
            height: var(--arrowH);
            position: absolute;
            left: 1.5rem;
            top: 100%;
            background: inherit;
            clip-path: polygon(0 0, 100% 0, 50% 100%);
        }

    .application-steps li::after {
        content: counter(cardnr, decimal-leading-zero);
        position: absolute;
        z-index: -1;
        left: calc(var(--inlineP) * -1);
        right: calc(var(--inlineP) * -1);
        top: var(--borderR);
        bottom: calc(var(--borderR) * -1);
        display: flex;
        align-items: flex-end;
        background: var(--accent-color);
        background-image: linear-gradient( 160deg, rgba(255, 255, 255, 0.25), transparent 25% 75%, rgba(0, 0, 0, 0.25) );
        border-radius: 0 0 var(--borderR) 0;
        --pad: 1rem;
        padding: var(--pad);
        font-size: calc(var(--borderR) - var(--pad) * 2);
        color: white;
    }

    .application-steps li::before {
        content: "";
        position: absolute;
        height: var(--borderR);
        top: calc(100% + var(--borderR) - 2px);
        left: calc(var(--inlineP) * -1);
        right: calc(var(--inlineP) * -1);
        border-radius: 0 var(--borderR) 0 0;
        background-image: linear-gradient(var(--accent-color), transparent 60%);
        opacity: 0.5;
        filter: blur(2px);
    }

.application-steps .credits {
    margin-top: 2rem;
    text-align: right;
}

    .application-steps .credits a {
        color: var(--color);
    }
