@keyframes rotate {
    0%   {transform: rotate(0deg)}
    100%   {transform: rotate(360deg)}
}

@keyframes clipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
}

#business-registration-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    padding: 30px;

    @media (max-width: 1024px) {
        padding: 10px;
    }

    .registration-header {
        margin-bottom: 50px;

        span.subtitle {
            text-transform: uppercase;
            color: #ed5210;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 2px;
        }

        h1 {
            font-size: 30px;
            font-weight: 800;
        }
    }

    .registration-form-card {
        width: 600px;
        background-color: #fafafa;
        border-radius: 20px;
        padding: 50px 30px;

        @media (max-width: 1024px) {
            width: 100%;
            padding: 50px 20px;
        }
    }

    .registration-form {
        .form-error {
            margin-bottom: 2px;
            color: red;
        }

        .form-row {
            width: 100%;
            margin-bottom: 20px;

            > label {
                font-weight: 600;
                margin-bottom: 6px;
            }

            .form-row-content {
                .radio-line {
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    gap: 10px;

                    > label {
                        margin-bottom: 0;
                    }
                }

                input[type="text"],
                input[type="email"],
                textarea,
                select {
                    width: 100%;
                    padding: 10px;
                    background-color: #fff;
                    border: 1px solid #eee;
                    border-radius: 5px;
                }

                .custom-file-input-register {
                    margin-top: 10px;

                    label {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: flex-start;
                        align-items: center;
                        gap: 10px;
                        font-weight: 300;
                    }

                    input[type="file"] {
                        display: none;
                    }

                    .file-btn {
                        min-width: 130px;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        gap: 8px;
                        padding: 10px 16px;
                        color: #0964b0;
                        border-radius: 4px;
                        cursor: pointer;
                        background-color: white;
                        border: 1px solid rgba(0, 0, 0, 0.16);
                        box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
                        font-weight: 300;

                        svg {
                            height: 20px;
                            width: auto;
                        }
                    }

                    .file-details {
                        width: 100%;
                        opacity: 0.8;
                        font-style: italic;
                    }
                }
            }
        }

        button[type="submit"] {
            margin-top: 20px;
            background-color: #ed5210;
            color: #fff;
            font-weight: 600;
            padding: 10px 40px;
            font-size: 20px;
            border: none;
            outline: none;
            border-radius: 5px;
        }
    }

    .loading {
        position: relative;

        > .loader-container {
            display: flex;
        }
    }

    .loader-container {
        position: absolute;
        z-index: 10;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background: rgba(255, 255, 255, 0.5);
        display: none;
        justify-content: center;
        align-items: center;

        .loader {
            width: 48px;
            height: 48px;
            margin: 0 auto;
            border-radius: 50%;
            position: relative;
            animation: rotate 1s linear infinite;

            &::before, &::after {
                content: "";
                box-sizing: border-box;
                position: absolute;
                inset: 0;
                border-radius: 50%;
                border: 5px solid #414042;
                animation: clipFix 2s linear infinite ;
            }

            &::after{
                transform: rotate3d(90, 90, 0, 180deg );
                border-color: #ed5210;
            }
        }
    }

    .registration-confirmation {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 60px;
        margin: 50px 0;

        @media (max-width: 1024px) {
            flex-direction: column-reverse;
            width: 100%;
            margin: 0;
        }

        .left {
            @media (max-width: 1024px) {
                width: 100%;
            }

            .contacts {
                .contact-card {
                    padding: 20px;
                    border-radius: 10px;
                    border: 1px solid #ebebeb;
                    background-color: #fafafa;
                    display: flex;
                    align-items: center;
                    gap: 24px;
                    margin-bottom: 24px;

                    .contact-icon {
                        background-color: #ece9f8;
                        height: 50px;
                        width: 50px;
                        padding: 10px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        border-radius: 6px;

                        img {
                            width: 100%;
                        }
                    }

                    .details {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;

                        .data {
                            color: #ed5210;
                        }
                    }
                }
            }

            .socials {
                display: flex;
                justify-content: space-between;
                align-items: center;

                p {
                    margin-bottom: 0;
                    font-weight: bold;
                }

                .listing {
                    display: flex;
                    gap: 20px;

                    a {
                        background-color: #f7f6f6;
                        height: 50px;
                        width: 50px;
                        padding: 10px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        border-radius: 6px;

                        img {
                            width: 100%;
                            height: auto;
                        }
                    }
                }
            }
        }

        .right {
            width: 400px;
            background-color: #fafafa;
            border-radius: 20px;
            padding: 160px 50px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;

            @media (max-width: 1024px) {
                width: 100%;
                padding: 30px;
            }

            img {
                width: 100px;
                height: auto;
                margin-bottom: 30px;
            }

            .h1 {
                font-size: 30px;
            }
        }
    }
}