.page-ajax {
    /* Calculator form */
    .panel {
        border: none;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);
        margin-bottom: 27px;
        border-radius: 4px;

        @media (min-width: 992px) {
            .control-panel {
                padding-right: 0!important;
            }
        }
    }

    .panel-body {
        padding: 25px;
        display: table;
        width: 100%;

        form {
            display: table-row;

            .form-group {
                display: table-cell;
                vertical-align: top;
                padding-right: 10px;
                margin-bottom: 15px;
                white-space: nowrap;

                &:last-child {
                    padding-right: 0;
                    width: 41px;

                    button {
                        width: 41px;
                        height: 41px;
                        background: var(--bs-brand-accent);
                    }
                }

                &.operation-buttons {
                    width: 100px;
                    text-align: center;

                    label {
                        display: inline-block;
                        cursor: pointer;
                        width: 41px;
                        height: 41px;
                        line-height: 41px;
                        position: relative;
                        margin: 0 10px 0 0;
                        vertical-align: top;
                        text-align: center;

                        &:last-child {
                            margin-right: 0;
                        }

                        span {
                            display: block;
                            position: absolute;
                            width: 100%;
                            height: 100%;
                            border-radius: var(--bs-border-radius);
                            background: #ECF0F1;
                        }

                        input {
                            display: none;

                            &:checked + span {
                                background-color: var(--bs-brand-accent);
                                color: white;
                            }
                        }
                    }
                }
            }

            @media (max-width: 767px) {
                .form-group {
                    display: block;
                    padding-right: 0;
                    width: 100%!important;

                    &:last-child button {
                        width: 100%;
                    }
                }
            }
        }

        input.form-control {
            border: none;
            display: block;
            width: 100%;
            background-color: #ECF0F1;
            font-size: 14px;
            text-align: right;
            border: none;
            box-shadow: none;
            height: 41px;
        }
    }

    #result {
        background: var(--bs-brand-accent);
        color: white;
        font-size: 54px;
        padding: 0 15px;

        font-weight: bold;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .explanation {
        background: #f6f2ff;
        padding: 50px 0 70px;
        position: relative;
        overflow: hidden;
        z-index: 1;

        > .container {
            position: relative;
        }

        h3 {
            font-size: 26px;
            margin: 60px 0 20px;
        }

        /* Decorations */
        .explanation-decoration-1,
        .explanation-decoration-2 {
            content: '';
            border-radius: 100%;
            background-color: #F4F7F8;
            display: block;
            position: absolute;
            z-index: -1;
        }

        .explanation-decoration-1 {
            background-color: #fff;
            width: 321px;
            height: 321px;
            left: -140px;
            top: -140px;
            opacity: .5;
        }

        .explanation-decoration-2 {
            background-color: #fff;
            width: 380px;
            height: 380px;
            right: -165px;
            top: -180px;
            opacity: .5;
        }
    }
}
